also, what about kotlin scripting without any jvm?
# scripting
e
also, what about kotlin scripting without any jvm?
s
m
e
@smallshen quite sexy project indeed ­čÖé Let me guess though, on native I can't depend on jvm libs, am I right?
@mbonnin interesting, have you already tried one of those two options?
m
Nope, I'm happy wasting 500ms of my time everytime I run the scripts ­čśů
on native I can't depend on jvm libs, am I right?
Both links point at the same solution of using GraalVM. So you can use JVM libs and they will be "packaged" as a native image
It's like shipping a mini-JVM included in your script that only has the parts that your script needs
And runs natively of course
s
@elect you can, compile to native is handled by GraalVM
e
@smallshen sorry but I dont get what you mean here, can you elaborate please?
s
correct
but you are on linux, you might need to change some code
e
ah, you tested everything on windows?
s
change the jointoString from ";" to ":", cause it is on linux https://github.com/SexyTeam/Kts2Native/blob/master/src/main/kotlin/script2native.kts#L18
e
apparently the errors may be fixed with a simple flag, but I have no idea where to put it for scripts
s
you can compilt the script it self
e
use
Copy code
File.pathSeparator
here the flag
s
https://github.com/SexyTeam/Kts2Native/blob/master/src/main/kotlin/script2native.kts#L103 and for this idk what will the extension be on linux, you can test it yourself
e
I'll pull
I'm fixing the errors manually
this is gonna be interesting, but I'll continue tomorrow. I'll let you know
one thing I do need to know though is: what's
native-image.cmd
?
GraalVM? What did you install on Win exactly?
Version?
cya
s
native-image.cmd is something inside of graalvm