Re:JavaScript: It’s Not Just for Browsers Any More
by cageface on Saturday March 06, 2010 @10:50AM
(#1171647)
I think you're reading the shootout wrong. V8 is faster in most cases than Lua in those benchmarks. Often by a fairly large margin. The gap between V8 and Ruby and Python is even larger.
Re:JavaScript: It’s Not Just for Browsers Any More
by igouy on Saturday March 06, 2010 @11:51AM
(#1171739)
Compare LuaJIT, PLT, V8, Lua, JRuby, Python 3, Ruby 1.8, Perl, PHP -
http://shootout.alioth.debian.org/u32/which-programming-lang...
http://shootout.alioth.debian.org/u32/benchmark.php?test=all...
By definition they are flawed benchmarks, but you will have a hard time writing faster JavaScript code than equivalent code in most other platforms. In the case of Lua (and Python, and Perl, and many many others) the equivalent JavaScript code will also be as long or longer, and not as clean.
I'm not going to get mad at anyone for their choice to use JavaScript, but the uncritical repetition of sentences like "Thanks to V8 and other modern engines, JavaScript has become fast compared to optimized language/platform X" or "JavaScript offers these N features you won't find anywhere else" will not fly.