3 ms·
Ruby 1.9+ uses the YARV VM which is a "direct threaded" VM and on a similar level to the standard Lua 5.3 interpreter. It's obviously not as fast as the hand ro
by jashmatthews 9y ago
Ruby 1.9+ uses the YARV VM which is a "direct threaded" VM and on a similar level to the standard Lua 5.3 interpreter. It's obviously not as fast as the hand rolled assembly of the LuaJIT interpreter but Mike Pall basically designed Lua from scratch to be easily optimised. Ruby does not have that luxury.
- jhoechtl 9y agoMike Pall never designed Lua - Lua was designed many years ago https://www.lua.org/history.html https://www.lua.org/history.html but Mike Pall did an extraordenary job to optimise his Jit
- jashmatthews 9y agoThanks for the correction. I meant to say that the LuaJIT implementation was designed from the start to be fast. Even with the JIT disabled the interpreter, GC etc is far ahead of PUC Lua.