I happen to read a great article by Joel Webber where he benchmarks the real-world performance of the Box2D library in C++, Java and Javascript. Note that the benchmark only evaluates the “physical performance”, excluding the time spent on rendering the animation.
The take-home message is that C++ is about 20 times faster than Chrome’s V8 Javascript engine. I guess rendering is also much slower in browsers. No wonder Angry Bird, which uses Box2D, is sluggish in Chrome. The more I think, the more I feel Google’s Dart is technically correct, though it may turn out to be a vaporware in the end.
One of these days I’ll start the “Do you really want to…” website 🙂
with inside something like this:
– Do you really want to build the entire web 2/3/4.0 foundations using a crappy language like javascript?
or , about C++
– Do you really want me to use in real code something like this:
template
struct GetLargerType {
typedef typename LargerType<T1, T2, CompTypeSize::value >::larger_type larger_type;
};
the “you” is a generic plural form that stands as the “IT industry”
—
Or as an alternative: “I’m the only one who thinks that… ”
– Javascript is not suitable to do such complex things?
– C++/STL coding style and design sucks?
the list could grow very long 🙂
Byee
Qb
(sorry for my bad English)