Sealed by design
A Wax script can reach nothing outside itself except the doors its host opens: no files, no network, no clock, unless the program embedding it says so. Steps and memory are capped per call.
Learn more →Implemented in Rust.
The top level runs once, when the script is loaded. After that the host calls the script's procedures, here on_hit, whenever its own events happen.
show_msg is a door: it exists only because the host opened it. A script can't reach anything else.
mut hp = 30
show_msg("loaded")
proc on_hit[amount: Whole]
hp = max(_ - amount, 0)
show_msg("hit for {amount}, {hp} left")
endA Wax script can reach nothing outside itself except the doors its host opens: no files, no network, no clock, unless the program embedding it says so. Steps and memory are capped per call.
Learn more →Ngin1, the first official interpreter, has good performance for its class. It has no garbage collector, so it has no pauses either.
Learn more →Load a script, give it doors, call its procedures when your game's events happen. From Rust, or from C and anything that speaks it.
Learn more →Compile scripts once with wax build into .waxc files, verified every time they load and optionally signed, so a game ships only what you built.
Normal benchmarks, written plainly · Apple M5, macOS 27.2.1 · release build · mean of 10 timed runs after warming up · every answer checked first · lower is faster