4 ms·
There is a decent amount of Forth publications out there, but nothing that really takes you from A->Z in building your own Forth based off of Assembly or C. Jon
by throwaway7645 10y ago
There is a decent amount of Forth publications out there, but nothing that really takes you from A->Z in building your own Forth based off of Assembly or C. JonesForth helped me conceptually understand parts of Forth, but there is a lot missing there for me to be able to start from scratch. I would pay $ for a real book in the vein of "Land of Lisp" that shows you how to build a Forth compiler/editor and how to extend it...the pros/cons of different design decisions like direct/indirect threading.
- qwertyuiop924 10y agotLoL doesn't really do that. I think you might be thinking of Build Your Own Lisp (And Learn C), another excellent book.
- throwaway7645 10y agoNo I'm thinking of LoL, but I meant the irreverence and comical simplicity like Leo Brodie's Starting Forth, but also focusing on how to write one from scratch (you are correct LoL doesn't do this).
- tzs 10y agoYou might find R. G. Loeliger's book "Threaded Interpretive Languages: Their Design and Implementation" [1] interesting. Here's a review [2]. The comments on that review list some online resources that might also be useful. It's long out of print, but used copies are cheap, and scans are readily findable on the net. I wrote a comment a while back outlining how to do a FORTH-like language from scratch by starting with a simple calculator and expanding it, writing in C with optional assembly optimizations. This was aimed at people who have less knowledge of FORTH-like systems than you do, I think, but if you are curious here it is [3]. [1] https://www.amazon.com/Threaded-Interpretive-Languages-Design-Implementation/dp/007038360X https://www.amazon.com/Threaded-Interpretive-Languages-Desig... [2] http://www.retroprogramming.com/2010/03/threaded-interpretive-languages-by-r-g.html http://www.retroprogramming.com/2010/03/threaded-interpretiv... [3] https://news.ycombinator.com/item?id=13082825 https://news.ycombinator.com/item?id=13082825
- throwaway7645 10y agoThank you!