News for hackers. Stuff that matters.
Re:Java 9 Released by shock on Thursday September 21, 2017 @04:02PM (#15306857)
I was pretty excited about AOT compilation⁰, but it seems it doesn't support dynamically generated classes and bytecode i.e.: lambdas and invokedynamic.

⓪ - http://openjdk.java.net/jeps/295

Re:Java 9 Released by pjmlp on Thursday September 21, 2017 @05:05PM (#15307344)
It is work in progress, the Java 10 dev branch already has much better support, including macOS and Windows, according to the Java Languages Summit 2017 talks.

In any case, the other JDK vendors with AOT support are still around.

Re:Java 9 Released by shock on Thursday September 21, 2017 @05:21PM (#15307467)
Are there any free JVMs with AOT besides Eclipse/IBM OpenJ9 (of which I've only learned a couple of days ago)?
Re:Java 9 Released by pjmlp on Thursday September 21, 2017 @05:54PM (#15307688)
RoboVM, https://github.com/MobiVM/robovm

Excelsior JET has a free license for open source projects, https://www.excelsiorjet.com/

But the majority of good ones are commercial. All JDK vendors selling JVMs for embedded devices or real-time deployments, do support AOT compilation.

Re:Java 9 Released by blinkingled on Thursday September 21, 2017 @05:16PM (#15307423)
Really? Reading the document I felt AOT was too much pain for too little gain.

This might benefit IDEs with slightly less startup time but with SSDs even that's questionable. And who besides IDE authors is writing desktop apps in Java anyways?

Re:Java 9 Released by shock on Thursday September 21, 2017 @05:30PM (#15307532)
I'd write desktop apps in Java if AOT was available. I'd much prefer Java with JavaFX/Swing/SWT to C++ with QT for cross platform desktop apps. Maybe we'd see Java used for cross platform desktop apps more, instead of the usual Electron app.
Re:Java 9 Released by praseodym on Thursday September 21, 2017 @05:22PM (#15307480)
It might also be useful for scripts and small CLI utilities where interactive invocation is a lot nicer with short startup times.
Re:Java 9 Released by jcdavis on Thursday September 21, 2017 @05:33PM (#15307557)
The main benefactor of AOT will be the JVM itself - part of the reason for its sluggish startup time is having to interpret and then JIT a bunch of core libraries.