16 points · by davidsantoro · 17y ago · 26 comments
There might be a case to be made to eliminate C++, but it's best made by somebody who knows more than this guy.
This is really a terrible submission.
http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...
http://shootout.alioth.debian.org/u32q/benchmark.php?test=al...
The lessons to draw from this, if any, are that C++ code isn't automatically faster than Java or C# code: you have to make it so; and that Java/C# have some useful high-quality libraries which save you the need to roll your own solution.
Also note that C++'s memory model is "single threaded" new must grab a global lock where as C#'s memory allocator is designed with threads in mind so no locking overhead.
Isn't that the case for any programing language?
Anyway, just a curiosity :)
But if my team have to build such app with cross-platform requirement, I still think C++ would be the choice. [with the similar arguments the author uses at the end of his rant]
Obviously the author has not heard of boost::python -- it provides an extremely easy way to interface Python and C++, including classes in one language that inherit from classes in the other.
EDIT: Oh, yeah, and SWIG.