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.

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


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

    * Generators and iterators (i.e. yield)
    * "let" (i.e. proper lexical scoping)
    * destructuring assignment - (i.e. assignment and return of multiple
    * 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.