Hacker News new | ask | show | jobs
by crustycoder 452 days ago
> And if you want portability, you can compile a Scala program with GraalVM's native-image and statically link everything with musl libc

Getting the musl stuff to work can be tricky, mostly-static (only libc dynamically linked) is an easier option.

I've built a CLI diagnostics app with Scala & NativeImage and I've embedded the Graal Python interpreter inside it to allow extension scripts to be written. The result is a zero-install executable that provides an n entire Python environment. I think that's a good showcase for one of Scala's strengths, it's interoperability with the Java ecosystem.