Hacker News new | ask | show | jobs
by vintermann 812 days ago
> Also Java jar files give you the same benefit.

You have to explain that one a bit more.

1 comments

You can compile a jar to include all dependencies (like statically compiling C code), then you can just run `java -jar myprogram.jar` and it will work as long as the Java runtime is the same major version or newer than the version you compiled for.
That’s different from the runtime-free binaries produced by Rust and Go (binaries ship with tiny runtime) though. These are truly dependency-free, requiring only that you can execute ELF files.