Kotlin JSR223 Support
LemmaEOF opened this issue · 11 comments
Kotlin has a library called kotlin-scripting-jsr223-embeddable
. This allows it to be run from JSR-223 contexts, like the ones used for LibCD and Cotton Scripting. Would it be possible to add jsr223 kotlin scripting to Fabric Language Kotlin?
I Don’t think this is related to this project. A separate mod is more suitable.
The embeddable lib is 23 KB. Any separate mod would need to depend on FLK, and it adds no bloat if nothing calls it, so no reason not to have it here.
I think a separate Kotlin scripting library would be fine to avoid bundling the compiler with FLK.
FLK only has the stdlib, kotlin-reflect, kotlinx.coroutines, jetbrains annotations and the language adapter.
Ah, yeah. Guess a separate mod would be worth it then. I'll talk to Nikky about it sometime, since I don't know nearly enough about kotlin.
That depends on kotlin-compiler-embeddable which is a 35MB dependency.
Hmm. That changes things
Yeah 35MB is a lot, the scala plug-in is 20MB so it’s doable but seems a bit excessive for one or two mods.