3 ms·
The problem with Javascript came when it started to be used server side. Suddenly, comparing with other languages that one can use instead is fair game. Sure,
by tensor 14y ago
The problem with Javascript came when it started to be used server side. Suddenly, comparing with other languages that one can use instead is fair game.
Sure, Javascript may not be as bad as perl or php, but it's got plenty of warts. On the server, why use javascript when you can use a language without warts?
As fast as C? Not remotely close:
http://benchmarksgame.alioth.debian.org/u32/benchmark.php?test=all&lang=v8&lang2=gcc http://benchmarksgame.alioth.debian.org/u32/benchmark.php?te...
Usual disclaimer about micro-benchmarks applies, but I suspect the real picture is even worse. Speaking of compiling down to Javascript, languages like Coffeescript came about because of Javascripts warts, not because it's such a great language.
Again, you can program in straight Javascript, but why? Because it's all you know? I need to forget better solutions exist to like it?
Thanks, but I'll pass.