by tehologist · 3y ago · 0 comments
https://github.com/tehologist/forthkit
Managed to write a compiler/interpreter that could understand enough forth to implement the entire system. Less than 500 lines and only uses stdio.h and compiles using TCC
That was so much fun I built a second one in under 300 lines of javascript for experimenting with canvas api in web browser. Single file doesn't require a server, you can drag and drop code onto text window.
https://github.com/tehologist/ecma6-forth
Runs standalone, I want to get back to it again.
https://www.youtube.com/watch?v=8QP2fDBIxjM&list=PLpM-Dvs8t0...
I met the creator Charles Moore a few times. When I lived in the bay area and used to go to the svfig (silicon valley forth interest group) meeting. He would often talk about forth was like solving a puzzle, likened it to sudoku. It is a good exercise for the brain and I highly recommend it.
I still have a tshirt that reads “Be Moore Like Chuck”…
Not an embedded device programmer, but mostly deals with frontend apps, and occasionally backend, so those are very relevant to me.
Or perhaps use "non-traditional" Forths like 8th (https://8th-dev.com) or Factor (https://factorcode.org)?
8th is a great not-Forth. Highly recommended because of how practical is.