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

Moonquakes Architecture

Moonquakes Architecture

Moonquakes References

Moonquakes Opcode

Moonquakes Standard Libraries

Moonquakes C Interface

Moonquakes Syntax Support

What is Moonquakes

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

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.