Closed LemmaEOF closed 5 years ago
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.
Ok, I support this then.
That depends on kotlin-compiler-embeddable
which is a 35MB dependency.
Huh. Thought that FLK already included that.
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.
I think a separate Kotlin scripting library would be fine to avoid bundling the compiler with FLK.
I'll look into getting that done. This issue isn't really needed anymore.
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?