zig-wasm/zorth
FORTH in Zig
refs
Forth is a prehistoric esolang. It has little to no syntax and blurs the boundary between interpreted and compiled. Its implementations often rely on either indirect branches or tail calls. Structured programming languages use labels as values to represent indirect branches and we all know these are considered harmful so let us explore tail calls instead.
As luck would have it, Zig specifies .always_tail
in the
language itself. That makes it an ideal modern implementation target.