Luaz - Zero-cost Luau wrapper for Zig

Hi there! I’m coming from Go and Rust, which I’ve used for the last 7ish years in my career, so I decided to try something new and give Zig a try. And I don’t regret it!

I wrote a Luau wrapper in Zig that aims to provide zero-cost abstractions while focusing on Luau’s unique features. Unlike other libraries, this one is built specifically for Luau rather than generic Lua. For example, it provides luau-compile (bytecode compiler) and luau-analyze (linter/checker) out of the box via Zig’s build system.

Check it out: GitHub - mxpv/luaz: Zig bindings for Luau

Happy to get feedback (also feel free to throw tomatoes :slight_smile: )

10 Likes

This looks fantastic. I would not have guessed either that it’s someone’s first Zig project, or that the codebase is ~1 week old. :open_mouth:

3 Likes