Revisited Forth: Two Implementations and Reflections on a Quirky Language
The author revisited Forth, a language first encountered 20 years ago. Over two months, they implemented two Forth interpreters: goforth (in Go) and ctil (in C). goforth, a pure interpreter, is simple but lacks advanced features. ctil, closer to a traditional Forth implementation, allows extending the language using Forth itself, showcasing its power. The author argues that Forth's unique strengths lay in its early hardware context. However, its stack-based model makes it less readable and less practical in modern contexts, best suited as a learning project to understand compiler principles and virtual machines.
Read more