News for hackers. Stuff that matters.
Re:Lua, a Misunderstood Language by monocasa on Friday January 15, 2021 @05:10PM (#25797214)
I count around 100 opcodes for luajit as well.

http://wiki.luajit.org/Bytecode-2.0

Not sure why reducing the number of ops by an under of magnitude would make it go faster.

Re:Lua, a Misunderstood Language by lrossi on Friday January 15, 2021 @05:41PM (#25797511)
Empirically, it is much faster than Python, but I don’t know either if the opcodes have anything to do with it.
Re:Lua, a Misunderstood Language by monocasa on Friday January 15, 2021 @05:48PM (#25797567)
Right, but reducing the number of ops wouldn't get you there, that just adds more branches in the critical path as the same amount of functionality needs to be overloaded.