lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi there,
I took a look at the article but couldn't understand the essence of what makes it faster than LuaJIT -- is it possible to give a short (maybe a few sentences) description of how one runs a Lua program with this new interpreter and the basic steps that happen in the process?  That might help to clarify.
David

On Tue, Nov 22, 2022 at 12:59 PM Haoran Xu <haoranxu510@gmail.com> wrote:
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.

You can read the post here: https://sillycross.github.io/2022/11/22/2022-11-22/
You can find the code repository here (it is currently only an interpreter, but it will be more than that in the future): https://github.com/luajit-remake/luajit-remake

Please feel free to let me know any comments and feedbacks!

Best,
Haoran