
Implementing a Forth
created: May 31, 2025, 7:38 a.m. | updated: June 3, 2025, 11:35 p.m.
I think one of the most interesting questions in the Forth universe is how small can its core be?
The Forth-eV Wiki’s page on "Minimal Word Set" is a great place to start:In addition to the word set, you can also constrain the total file weight of your core Forth.
SmithForth https://dacvs.neocities.org/SF/ David Smith’s SmithForth is another 1,000 byte, hand-written machine code Forth that bootstraps a more complete Forth.
"My goal with SmithForth is not to stop writing machine code early, but to start writing Forth early."
The included 01-helloworld.f example is 200 lines of well-commented Forth source which starts with making numbers, implements a core of standard Forth words, and then prints "Hello world".
1 week, 1 day ago: Hacker News