3 ms·
LuaJIT is probably faster than the modern JavaScript engines. I don't know how it compares to something like SBCL, but as a JIT for dynamic languages it's pret
by bjoli 9y ago
LuaJIT is probably faster than the modern JavaScript engines. I don't know how it compares to something like SBCL, but as a JIT for dynamic languages it's pretty much the bee's knees. I have had it beat carefully written PyPy code by an order of magnitude several times
- pjmlp 9y agoActually when I think in Common Lisp compilers, I think about Allegro Common Lisp and LispWorks. As for JavaScript, it is really hard to envision how it can beat the money spent by Mozilla, Apple, Google and Microsoft, including universities sponsored by them, in JavaScript JIT optimization research.
- marmaduke 9y agoI think it’s not so much that the effort invested is better (though Pall has strong reputation) but in large part that Lua’s semantics make for easier JIT.
- bjoli 9y agoIt was beating v8 JavaScript hands down when it was still a part of the computer language shootout. I can't find other things than one off microbenchmarks now (maybe my Google fu is off), but in those LuaJIT is still king.
- jashmatthews 9y agoLua only has 5 types: boolean, float, int, string and table, so that helped offset the fact that basically only one person (Mike Pall) worked on LuaJIT. The kind of complex prototypical inheritance that V8 has to deal with is a totally different issue to the goal of having a minimal, embeddable, C friendly scripting language like Lua.