3 comments

  • SillyUsername8 minutes ago
    So we&#x27;ve gone full circle again?<p>I suppose write once run anywhere is no longer a goal either.<p>&quot;It is not a goal to support all CPU architectures currently supported by HotSpot.&quot;<p>This pretty much validates the point of view that VM design is now baggage, as a sandbox it has been flawed, for performance it&#x27;s been prohibitive, and cross platform portability by virtue of being virtual, was just a convenient byproduct.<p>AI now handles the portability, sandbox security hasn&#x27;t changed (cf. docker still has sandbox problems, LLMs have sandbox problems, it&#x27;s always an ongoing concern) and that just leaves Java, as always, chasing performance.
  • cyberax19 minutes ago
    Excelsior JET did that 25 years ago: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Excelsior_JET" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Excelsior_JET</a><p>It&#x27;s a shame that Sun&#x2F;Oracle never partnered with them to bring native apps. This could have saved Java on the desktop.
    • patwolf18 minutes ago
      IBM&#x27;s J9 had AOT for a long time too. I wonder how JEP 544 compares.
  • java-man39 minutes ago
    I hope at some point we&#x27;ll get AOT-only mode (or compile to native) and maybe even cross-compilation.
    • nirvdrum2 minutes ago
      If you haven&#x27;t checked it out yet, GraalVM&#x27;s Native Image [1] already let&#x27;s do AOT compilation suitable for distribution. You have to do some configuration to deal with reflection and dynamic class loading since there&#x27;s no JVM in the produced build, but it comes with tooling to simplify that. And that restriction is being addressed by Project Crema [2].<p>[1] -- <a href="https:&#x2F;&#x2F;www.graalvm.org&#x2F;latest&#x2F;reference-manual&#x2F;native-image&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.graalvm.org&#x2F;latest&#x2F;reference-manual&#x2F;native-image...</a> [2] -- <a href="https:&#x2F;&#x2F;github.com&#x2F;oracle&#x2F;graal&#x2F;issues&#x2F;11327" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;oracle&#x2F;graal&#x2F;issues&#x2F;11327</a>
    • invalidname25 minutes ago
      We have that in Codename One, yes it&#x27;s not really &quot;Java&quot; but it compiles bytecode AOT and cross compiles to some of the platforms.