by pjmlp · 6y ago · 0 comments
GraalVM native compilation works really well. Many projects will compile to native out of the box. Many more with a bit of reflection config that's autogenerated. The native executables are slim, statically linked so they "just work", and startup instantly as one would expect.
Scala is now a great choice for CLI tools.
I'm hoping in the future the native-image friction can be lowered, but as of now it's not trivial like other languages.
If I remember correctly you have to redistribute some .dll (VC something) file alongside your .exe on Windows since fresh Windows installations don't have the .dll. Did that change?
What's the size of hello_world.exe?
Last I looked (a couple of months ago) the executable produced linked dynamically but there was a flag to link statically.