logoalt Hacker News

looperhackstoday at 2:57 PM3 repliesview on HN

You can create a native executable with GraalVM. Alternatively, if you want to keep the JVM: With the ongoing project Leyden, you can already "pre-train" some parts of the JVM warm-up, with full AoT code compilation coming some time in the future.


Replies

Thaxlltoday at 4:20 PM

GraalVM has a lot of limitations, some popular lib don't work with it. From what I remember anything using reflection is painful to use.

senkoratoday at 3:03 PM

And going the other direction, if you want your C++ binaries to benefit from statistics about how to optimize the steady-state behavior of a long-running process, the analogous technique is profile-guided optimization (PGO).

vbezhenartoday at 4:23 PM

GraalVM is terrible. Eats gigabytes of memory to compile super simple application. Spends minutes doing that. If you need compiled native app, just use Golang.

show 1 reply