A reoccurring theme on SE I’ve noticed in many questions is the ongoing argument that C++ is faster and/or more efficient than higher level languages like Java. The counter-argument is that modern JVM or CLR can be just as efficient thanks to JIT and so on for a growing number of tasks and that C++ is only ever more efficient if you know what you’re doing and why doing things a certain way will merit performance increases. That’s obvious and makes perfect sense.
I’d like to know a basic explanation (if there is such a thing…) with practical examples as to why and how certain tasks are faster in C++ than the JVM or CLR? Is it simply because C++ is compiled into machine code whereas the JVM or CLR still have the processing overhead of JIT compilation at run time?
When I try to research the topic, all I find is the same arguments I’ve outlined above without any detailed information as to understanding exactly how C++ can be utilized for high-performance computing.