Hacker News new | ask | show | jobs
by danellis 3721 days ago
That comes with a big memory cost, though. Also huge startup time, so not suitable for command line tools.
3 comments

Just get an AOT compiler, plenty to choose from.

Also since Java 8 with tiered compilation, I wouldn't consider a few ms a huge startup time.

I don't think startup time is an issue, and memory is definitely manageable - check out LMAX Disruptor (https://lmax-exchange.github.io/disruptor/)
Java startup time is ~50msec, which for command line tools is fine.
Unless you run them in a loop, which is not that uncommon.