View Single Post
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#122
Originally Posted by zimon View Post
Even with LLVM, you will suffer if you have used pointers in C++/C program. You just have to throw many of the optimization techniques down the drain when there is a pointer inside some basic block.
Again, these are the little 'a-ha !' type of rhetorical battles. You say that, I say yeah, but C++ can do stack allocations which eat Java's heap allocation for breakfast, what about casting... And so forth. Each platform has a set of "I do this better than the other one !" and that's why it's so difficult (=impossible) to do a proper comparison. It's like comparing whether car A is faster than car B, when A corners better and has better aerodynamics, but B has a stronger engine and better brakes. It will depend on the course, of course a.k.a. real life.

Originally Posted by Capt'n Corrupt View Post
Where is this obvious in the post?

The post links to academic papers, rather than pure anecdote.
Huh ? The guy explains fairly solidly in what way were the original C++ benchmarks inferior in terms of unoptimal code, i.e. things not done as one would if he was thinking with a 'C++ head' instead of just porting the Java code to C++.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc