https://kotlinlang.org logo
c

caelum19

08/28/2020, 3:35 PM
Hey guys, in theory how hard would it be to do real-time interpretation of Kotlin code? Is there anyone doing anything like this now? Without safety and performance optimisations of course
h
You can instantiate an engine, feed it your kotlin code as string and execute it, get the result etc...
c

caelum19

08/28/2020, 8:29 PM
Does that just compile it and run it ? That's got like a 2s delay right?
e

efemoney

08/29/2020, 4:41 AM
Are you looking for a REPL?
c

caelum19

08/29/2020, 10:17 AM
Looking for a way to have much faster write code to run code time for quick UI previews
h

Hanno

08/29/2020, 11:06 AM
No, it's interpreted, good response times but worse Performance compared to regular compilation. I think what you search is this one:

https://youtu.be/OEFwnWxoazI

Another alternative would be kotlin js with continuous run in gradle, all depending on what ui you need and so on.
c

caelum19

08/29/2020, 6:38 PM
Oh that's really awesome, thanks for sharing @Hanno. I'll have a play around