Slashdot Mirror


Oracle Formally Proposes That Java Adopt Ahead-of-Time Compilation (infoworld.com)

An anonymous Slashdot reader quotes InfoWorld: Java applications will get faster startup times thanks to a formal proposal to include ahead-of-time compilation in the platform. The draft Java Development Kit proposal, authored by Vladimir Kozlov, principal technical staff member at Oracle, is targeted for inclusion in Java 9, which is expected to be available next summer. "We would love to see this make it into JDK 9, but that will of course depend on the outcome of the OpenJDK process for this JDK Enhancement Proposal," said Georges Saab, vice president of software development in the Java platform group at Oracle, on Thursday. Ahead-of-time compilation has been a stated goal for Java 9 to address the issue of slow startup...

The proposal summary notes that Java classes would be compiled to native code prior to launching the virtual machine. The ultimate goal is to improve the startup time of small or large Java applications while having "at most" a limited impact on peak performance and minimizing changes to the user workflow.

Tests indicates some applications perform better while some actually perform worse, so it's being proposed as an opt-in feature where dissatisfied users "can just rebuild a new JDK without ahead-of-time libraries."

4 of 104 comments (clear)

  1. Great, now I need a new Java joke by Anonymous Coward · · Score: 4, Funny

    I guess this means my favorite Java joke won't work anymore:
    Knock knock.
    Who's there?
    .
    .
    .
    .
    .
    .
    Java

  2. Re:Only makes sense for niches by lgw · · Score: 4, Funny

    Reading comprehension skills, do you have them?

    He uses Aspect Oriented Programming, so code is impossible to read and thus he doesn't practice reading comprehension much. (Also, Kirk could kick Picard's ass, and EMACS > VI).

    --
    Socialism: a lie told by totalitarians and believed by fools.
  3. Ahead of time compiling? by Anonymous Coward · · Score: 2, Funny

    I've been trying out this new ahead of time compiling thing in an obscure language - 'C' This 'C' is like java, but without most of the "java.io.foo.bar.wibble.set(42)" syntactic bullshit and overall just feels less bloated. And 'C' doesn't require a multi-GB runtime. I only have to compile ahead of time once, not on every load, and best of all, I haven't *ever* had any exceptions thrown. It is like Java without the pain.

  4. Java 16 by thinkwaitfast · · Score: 4, Funny

    Java 16 will will be written entirely in executable machine code and will compile to source code.