An interpretation of Lua

Moonquakes imagines Lua as moonlight at night — still on the surface, quietly trembling beneath as time moves on. It reflects the sunlight, forever.

GitHub - keix/moonquakes: A clean Zig implementation of Lua

Lua 5.4 Reference Manual

https://www.lua.org/manual/5.4/

What is Moonquakes

Moonquakes is a clean-room implementation of the Lua 5.4 virtual machine and runtime.

It exists to unravel its architecture.

Who created this

Moonquakes is created by Kei Sawamura. A systems programmer who defines memory — and where it stops.

Why Zig

Moonquakes is written in Zig to make memory, lifetimes, and control flow explicit. Zig allows Moonquakes to be written like C — but structured, readable, and honest about ownership.

When to use Moonquakes

Moonquakes is not designed to replace the reference Lua implementation. It exists for those who want to read a Lua runtime — not just use one.

Moonquakes makes no attempt to hide complexity.