News for hackers. Stuff that matters.
Re:Ahead-of-Time Compilation by srean on Saturday October 01, 2016 @04:33AM (#12617041)
In theory yes, but sadly i have never seen that promise realized in any consistent fashion. Same goes for Java's escape analysis. Although the principle is sound i think the engineering required is horrendously difficult to make it robust. In a very narrow window of variation it works, but should you step out of that zone it fails pretty badly. I think it will take many more years, till then pgo and metaprogramming it is.
Re:Ahead-of-Time Compilation by pjmlp on Saturday October 01, 2016 @05:22AM (#12617163)
Regarding escape analysis, beware that the OpenJDK is the worst of them all.

IBM J9, Graal are much better at it, and I bet Aonix, Azul and other JDKs targeting high performance deployment scenarios are even better.

Re:Ahead-of-Time Compilation by mike_hearn on Saturday October 01, 2016 @06:43AM (#12617319)
Speculative optimisations yield about a 20% improvement in Java and more for higher level languages like Scala (and for Ruby it's off the charts). HotSpot isn't perfect by any means and C2's EA is not strong enough, but it's on track to be replaced with Graal (which is a part of what AOT is all about - you don't want your VM compiling itself at the same time as compiling your app).