News for hackers. Stuff that matters.
Re:JDK 28 by jiggawatts on Saturday October 17, 2026 @07:19PM (#50136090)
Every time I try, I keep going back to .NET, which has been optimising for faster startup time.

Almost all Java benchmarks are for the "steady state" after half an hour of warm up time.

Re:JDK 28 by kg on Saturday October 17, 2026 @07:33PM (#50136212)
Doesn't Java have an AOT solution too? Is it not ready for prime time?
Re:JDK 28 by miroljub on Saturday October 17, 2026 @07:43PM (#50136277)
It is, but people like to bash Java ;)
Re:JDK 28 by samus on Sunday October 18, 2026 @01:34AM (#50138195)
It requires heavy trade-offs.
Re:JDK 28 by pjmlp on Sunday October 18, 2026 @03:00AM (#50138598)
Depends on which one, there have been several options since the Mac 2000's, which people that know their Java would know.
Re:JDK 28 by samus on Tuesday October 20, 2026 @03:23PM (#50171393)
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.

Re:JDK 28 by invalidname on Saturday October 17, 2026 @09:32PM (#50136946)
Other posters here seem to misunderstand what AOT means in today's Java. It just means caching some state. There's still a JIT involved, it's just warmer.

There are other solutions that give you MUCH faster startup with lower memory e.g.: https://foojay.io/today/java-server-work-before-startup/

Edit: it seems I missed that 28 added the actual native code compilation phase so it will probably be closer to the GraalVM numbers in the link above.

Re:JDK 28 by pjmlp on Sunday October 18, 2026 @03:01AM (#50138607)
Like yourself, because depending on which JVM we are talking about there are various kinds of AOT options.

OpenJDK, OpenJ9, Azul, PTC, Aicas, microEJ, ART (even if not Java TM), GraalVM, Bluesoft,..