Fabric Language Kotlin

Fabric Language Kotlin

32M Downloads

Kotlin JSR223 Support

LemmaEOF opened this issue · 11 comments

commented

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?

commented

I Don’t think this is related to this project. A separate mod is more suitable.

commented

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.

commented

Ok, I support this then.

commented

I think a separate Kotlin scripting library would be fine to avoid bundling the compiler with FLK.

commented

That depends on kotlin-compiler-embeddable which is a 35MB dependency.

commented

Huh. Thought that FLK already included that.

commented

FLK only has the stdlib, kotlin-reflect, kotlinx.coroutines, jetbrains annotations and the language adapter.

commented

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.

commented

That depends on kotlin-compiler-embeddable which is a 35MB dependency.

Hmm. That changes things

commented

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.

commented

I'll look into getting that done. This issue isn't really needed anymore.