Java was a terrible resource pig when I last used it extensively, over a decade ago. Has that changed? Took lots of memory, and yes, it was slow.
Carefully optimized C++ will blow away Java,
Ok, seems that has not changed much.
As for that optimization benefit you extol, what's stopping the C++ compiler from querying the machine and making optimizations based on platform? Isn't that the whole point of a source code Linux distro like Gentoo?
Yeah, this story smells like Slashvertising. If, as claimed in another recent Slashvertisement for Java, it is such a simple language to understand, an easy language to program, one that lets programmers "get things done", why do employers strongly prefer programmers who have 5 or 10 or more years of experience in Java? It's a curly brace OOP language with tons and tons of its own libraries. It doesn't play nice with libraries written in other languages, it mostly ignores them. A lot of resources have been poured into enabling Java to inhabit a world of its own, and it seems now with hindsight that was not the best direction to go. One of the biggest improvements over C++ was the propaganda that unlike C++, Java doesn't use pointers. That's a misrepresentation. What they really mean is that Java ditched the ugly C pointer syntax. That, and this object code that is supposed to run on any platform, making Java super portable, especially designed for browsers, were the main selling points of Java. But that was 15 plus years ago. What has Java done lately? Stagnated while other languages press ahead with advances?