zig-wasm/zorth
FORTH in Zig
refsf724af6f533ee30e1d39e5cd085e1cd50f0573e8Forth 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.