Hello,
I am glad to share a post on how I built the fastest Lua interpreter to date. My interpreter runs 28% faster than LuaJIT's interpreter on average across 34 Lua and LuaJIT benchmarks, and 171% faster than the official PUC Lua5.1 interpreter.
More importantly, the interpreter is not hand-written. It is automatically generated from a semantical description of the LuaJIT bytecodes using a meta-compiler called Deegen.
Please feel free to let me know any comments and feedbacks!
Best,
Haoran