News for hackers. Stuff that matters.
Re:Ahead-of-Time Compilation by johnydepp on Saturday October 01, 2016 @12:15AM (#12616488)
That's great! Won't it make the compiled executable platform specific?
Re:Ahead-of-Time Compilation by mike_hearn on Saturday October 01, 2016 @06:53AM (#12617342)
You're intended to use it like this: either you distribute JARs and the recipient triggers the AOT compilation if they want it, or you distribute a "jlinked" JRE image that's inherently OS specific because it includes a bundled JVM. It's also possible that a future Java module format will allow the AOT compiled code images to come along for the ride next to the classfiles.
Re:Ahead-of-Time Compilation by Sanddancer on Saturday October 01, 2016 @12:38AM (#12616536)
There are other JVMs that already do AOT compilation. This just brings an AOT compilation option to Java. It also looks like the contained file will include both the compiled version and the normal bytecode, so that the code can be recompiled if/when necessary.
Re:Ahead-of-Time Compilation by copperx on Saturday October 01, 2016 @12:36AM (#12616533)
I believe that's the whole point.

From what I could gather, this is the process one would follow to get native code:

.java -> javac -> .class (still cross-platform bytecode) -> jaotc -> .so native code

Re:Ahead-of-Time Compilation by jcdavis on Saturday October 01, 2016 @12:34AM (#12616530)
the generated .so file will be platform specific, but it seems like the class files will still be needed as usual
Re:Ahead-of-Time Compilation by rcaught on Saturday October 01, 2016 @12:27AM (#12616511)
Write once, run anywhere... you've compiled it to.