Hacker News new | ask | show | jobs
by pjmlp 47 days ago
Depends on which one, there have been several options since the mid 2000's, which people that know their Java would know.
1 comments

GraalVM for example places heavy restrictions on reflection usage. It also performs aggressive tree-shaking to include only those classes and methods that are actually going to be executed. Corresponding measures are required for several common libraries to be compatible with GraalVM.

Hotspot's AOT is promising and doesn't have those pitfalls, but has not yet been delivered.