Skip to content

zig-wasm/zorth

Repository files navigation

zorth

Forth in Zig and WebAssembly

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.

✨ Try it in your browser ✨

➡️ https://zigwasm.org/zorth

About

FORTH in Zig

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages