lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Lua has a lot of catching up to do if it wants to be as big and as slow as JavaScript.

http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=javascript&lang2=lua

Any guess why the one benchmark that Lua does badly on (using lots of memory, but not running slowly) is fannkuch?

http://shootout.alioth.debian.org/gp4/benchmark.php?test=fannkuch&lang=lua&id=0
http://shootout.alioth.debian.org/gp4/benchmark.php?test=fannkuch&lang=javascript&id=0

   -Don

John Belmonte wrote:
Since I wasn't able to cause any controversy at the workshop...

JavaScript is playing catch-up with Lua.  New features from
<http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7>:

    * Generators and iterators (i.e. yield)
    * "let" (i.e. proper lexical scoping)
    * destructuring assignment - (i.e. assignment and return of multiple
values)
    * array comprehensions - (i.e. "{f()}" for those afraid of
functional programming)

I predict these new features will add (NUM_LUA_MANUAL_PAGES * 3) pages
to the JavaScript specification.

--John