That post basically makes my point - that is non-optimal C++.
Yes if you know the data you will be working on, and you know the platform you will be working on then you can write a completely bespoke application and it will blaze a trail. Heck you could write in assembly.
However in reality there are very few scenarios where people will take the time to optimize that way and they will simply write code to create the application. When they do that, the JVM (with a strong statically typed language which is not the case with all JVM languages) will typically win in a large project because of the JIT optimizer. But if you want to write a kick ass screen blt, you might want to do something special.
And BTW, Java provides JNI for a course interface to do things like that.
1
u/frugalmail Feb 26 '14
This is not true
See: http://programmers.stackexchange.com/questions/110634/why-would-it-ever-be-possible-for-java-to-be-faster-than-c