3 ms·
One of the performance advantages of C is the sheer amount of detail that's left to the implementation. By contrast, languages like C# and Java are typically mu
by CurtHagenlocher 15y ago
One of the performance advantages of C is the sheer amount of detail that's left to the implementation. By contrast, languages like C# and Java are typically much more tightly specified, which prevents optimizations that are not provably correct. This is not a matter of JIT vs non-JIT.
- ubernostrum 15y agoThe JVM is quite happy to speculatively apply optimizations that are not provably correct, and has done so for years. Have a look at the link in this comment: http://news.ycombinator.com/item?id=3799975 http://news.ycombinator.com/item?id=3799975
- CurtHagenlocher 15y agoSure, but if not provably correct then they need to be detectably incorrect. That's still a higher bar than a valid C implementation needs to pass.