tarlekon
07/05/2017, 2:26 PMK2JVMCompiler
?orangy
tarlekon
07/05/2017, 2:30 PMnfrankel
07/05/2017, 2:31 PMtarlekon
07/05/2017, 2:34 PMtarlekon
07/05/2017, 2:34 PMtarlekon
07/05/2017, 2:34 PMtarlekon
07/05/2017, 2:34 PMtarlekon
07/05/2017, 2:34 PMtarlekon
07/05/2017, 2:35 PMK2JVMCompiler
orangy
tarlekon
07/05/2017, 2:36 PMtarlekon
07/05/2017, 2:37 PMnfrankel
07/05/2017, 2:37 PMtarlekon
07/05/2017, 2:37 PMtarlekon
07/05/2017, 2:38 PMkotlinHome
tarlekon
07/05/2017, 2:39 PMtarlekon
07/05/2017, 2:39 PMtarlekon
07/05/2017, 2:45 PMtarlekon
07/05/2017, 2:53 PMorangy
tarlekon
07/05/2017, 2:58 PMilya.chernikov
07/05/2017, 3:30 PMK2JVMCompiler
is designed for command-line usage in the standard environment.
If youâll choose to âfixâ K2JVMCompiler
, you may meet the compatibility problem right on the next release, since we cannot guarantee compatibility for the internal classes. So, I wouldnât recommend that.
The âofficial wayâ (well, still with some reservations) to embed kotlin now is via JSR223 interface (see e.g. an example here - https://github.com/JetBrains/kotlin/tree/master/libraries/examples/kotlin-jsr223-local-example).
The alternative would be to adapt aforementioned https://github.com/ligee/kotlin-jupyter for your needs. And while it also uses some compiler internals, these are the same used for the official JSR223 interface and therefore have more chances to remain as is.
These variants are suitable for the script/REPL types of usages.
We are thinking about providing more general âcompiler APIâ, but there is nothing yet to rely on.tarlekon
07/05/2017, 3:52 PMK2JVMCompiler
?tarlekon
07/05/2017, 3:52 PMilya.chernikov
07/06/2017, 6:59 AM