News for hackers. Stuff that matters.
Re:Adventures of developing an MP3 decoder in Python by acqq on Sunday October 03, 2010 @06:20PM (#1753790)
If you refer to http://shootout.alioth.debian.org/u32/luajit.php my answer is: maybe. As far as I understand the JavaScript benchmarks there were made before the most recent speed improvements (JaegerMonkey, present in Firefox 4 beta). In my simple tests, the speed in some loops can reach the speed of C, with the times better than LuaJIT.

Still, LuaJIT is easier to obtain and run, as far as I know.

Re:Adventures of developing an MP3 decoder in Python by igouy on Sunday October 03, 2010 @11:33PM (#1754517)
Downloaded, installed and re-measured today. http://shootout.alioth.debian.org/u32/benchmark.php?test=all...
Re:Adventures of developing an MP3 decoder in Python by acqq on Monday October 04, 2010 @03:09AM (#1754869)
Thanks! LuaJIT really rules in the shootout.

The tests I've done were only inside of Firefox 4 Beta and I've got 3.4 sec for 5M n-body on my slightly (30%) faster computer. I remember that traditionally the standalone builds of Mozilla JS were not giving the same results as the one in the browser.

A message for Mozilla devs, in case anybody reads: be aware that people do try to measure how fast JS is from the command line and let them get the really last results! And use http://shootout.alioth.debian.org if you want to fundamentally improve your implementation of JS.

Re:Adventures of developing an MP3 decoder in Python by igouy on Monday October 04, 2010 @11:02AM (#1755844)
Note the main n-body measurement is N=50,000,000. The source code was downloaded from the tracemonkey branch https://wiki.mozilla.org/JavaScript:New_to_SpiderMonkey.

They can do better than use the benchmarks game - Kraken is one attempt they are making to do better. http://krakenbenchmark.mozilla.com/index.html

Re:Adventures of developing an MP3 decoder in Python by acqq on Monday October 04, 2010 @12:46PM (#1756328)
Regarding sources, I know this:

http://news.ycombinator.com/item?id=1754881

The benefits of the benchmarks game: allows comparison with other languages (like Lua) whereas as far as I understand their Kraken is JS only and browser only. Thanks a lot for your good work!

Re:Adventures of developing an MP3 decoder in Python by igouy on Sunday October 03, 2010 @07:44PM (#1754014)
You can help by providing clear instructions on how to build the latest JavaScript engine.
Re:Adventures of developing an MP3 decoder in Python by acqq on Monday October 04, 2010 @03:16AM (#1754881)
I'd also like to know. At the time as first JIT functioned in the browser I wasn't able to download the sources which really did JIT on Linux in the command line. I wouldn't be surprised that now again the latest speedup in the browser is not repeatable in the command line for most of the people.