Help What is WAFER & how it works click to open
WAFER (WebAssembly Forth Engine in Rust) is an optimizing Forth 2012
compiler. Programs in Forth are built from words — small named
definitions that compose into bigger ones — and WAFER compiles every word you
define into its own WebAssembly module, on the fly, right here in
your browser. Type : SQUARE DUP * ; and a fresh WASM module exists a
millisecond later; type 7 SQUARE . and it runs at near-native speed.
Nothing leaves your device. The compiler itself is compiled to WebAssembly and runs locally. There is no server-side evaluation, no account, no tracking. Once the page has loaded, it makes no network requests at all.
The shell
A classic Forth REPL: type a line, press Enter. > means WAFER is
interpreting; ] means you are mid-definition (compile mode).
Arrow keys walk the command history. WORDS lists the whole
dictionary; HELP <word> explains any of them;
SEE <word> shows its source; PAGE clears the
screen; .S shows the stack. The full button
gives the shell the whole window (Esc brings the page back); on a phone,
tapping inside the terminal does the same.
The engine
300+ words across 12 standard word sets at 100% Forth 2012 compliance, 2–10× faster than gforth on every benchmark we run, and past SwiftForth — a Forth that compiles to native code — on four of five, because definitions are not interpreted, they are compiled. The demo chips above the terminal show it live: BENCH times a recursive Fibonacci JIT-compiled on the spot. Source, benchmarks, and the compliance table are on GitHub.
Second entry in the Kaizenkodo tools lineup, after LesS/KEY — same principle: real tools that run on your device and keep your data there.