Linked by ebasconp on Fri 10th Jun 2011 22:22 UTC
Benchmarks "Google has released a research paper that suggests C++ is the best-performing programming language in the market. The internet giant implemented a compact algorithm in four languages - C++, Java, Scala and its own programming language Go - and then benchmarked results to find 'factors of difference'."
Permalink for comment 477164
To read all comments associated with this story, please click here.
RE[6]: GCC isn't all that great
by Alfman on Tue 14th Jun 2011 09:36 UTC in reply to "RE[5]: GCC isn't all that great"
Member since:


"Are you saying that GCC should have turned the code you wrote into the code by @acobar? Or that it should
magically guess the intentions in some code section?"

Not exactly, no.

It should have recognized that it would achieve the exact same logic semantics had it precomputed the number of iterations up front instead of testing array bounds on each iteration. This is a fairly common optimization for many use cases.

Reply Parent Score: 2