Hacker News new | ask | show | jobs
by cbdfghh 3482 days ago
What I would personally like (and I'm kind of surprised all projects which tried to implement it died) is a Java -> static exe/elf compiler (sort of like Go) or at least java -> exe/elf +libjava.so .

I hate that deploying Java requires that everything has to be configured _exactly_ right, and write once run anywhere turns into write once debug everywhere.

4 comments

IntelliJ or maven can at least create a fat runnable jar that includes all dependencies. So once you have a JVM on the target machine that jar is all you need to deploy.

But I agree with you that an entirely static compilation target that includes the JVM and excludes everything that isn't necessary would be very desirable.

> Java -> static exe/elf compiler (sort of like Go)

The ones that died where the open source ones, most commercial JVMs do support AOT compilation since the early 2000's.

Other languages don't do much better once you start to have a few dependencies.