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 476882
To read all comments associated with this story, please click here.
RE: Really?
by MacMan on Sat 11th Jun 2011 01:06 UTC in reply to "Really?"
MacMan
Member since:
2006-11-19

faster than programs coded in, say, assembly? I kind of find that hard to believe.

Very few people can write code as good as a modern C++ compiler.

I work with a guy who kept bragging about how great his LU factorization that he hand-coded directly in assembler is. Well, turns out this clown wrote it using the ancient x87 FP stack, he never heard of SSE (this was a few months ago).

So, I through together a quick and dirty LU factorization in C++ (OK, copied it out of numerical recipes), compiled it with gcc 4.4, enable SSE, and it was about 20 freaking times faster than his "hand tuned assembler"

And when the next great SSE 4,5,6... comes out, all I do is re-compile:)

Unless they have a really really good reason for doing it, when someone tells you they want to write something in assembler, you should probably back hand them.

Reply Parent Score: 4