News for hackers. Stuff that matters.
Re:A JVM Does That? (2011) [pdf] by Arnt on Friday July 08, 2016 @06:39AM (#12054601)
This mixes two questions: Can java be compiled faster than C++, and can a JIT compiler outperform an AOT compiler. Both java and C++ have problems, C++'s aliasing restrictions are nasty and I'd be surprised if anything java has is as bad.

The second is more dubious... sure, a JIT compiler has information if it spends RAM and cycles on collecting that, but it also has to run quickly and fit in the runtime environment, and an AOT compiler can run arbitrarily slowly, use a whole rackful of servers, and can use PGO without incurring any profile collection costs at (normal) runtime.

Re:A JVM Does That? (2011) [pdf] by vitalyd on Friday July 08, 2016 @08:25AM (#12054964)
Tiered JITs are meant to allow slower and more aggressive optimizations to be done on truly hot code. However, you're right in that they still cannot spend as much time or resources as an AOT compiler.
Re:A JVM Does That? (2011) [pdf] by sa_su_ke_75 on Friday July 08, 2016 @09:03AM (#12055161)
The jit must be rerunned every time the process is loaded. In image based language like smalltalk the jit state can be saved in the image with performance optimizations. So next time the image is reloaded the jit status is hot.
Re:A JVM Does That? (2011) [pdf] by vitalyd on Friday July 08, 2016 @09:26AM (#12055292)
Yes, Azul has a similar feature (ReadyNow).

This is nontrivial because lots of optimizations depend on class load ordering and runtime profile information.