Comment by DHRicoF
7 days ago
I want to learn Forth. Do you have any good reference or know about some good code examples?
Just learned the stack operations and trying to get used to them, but I have some bigger projects in my personal backlog.
7 days ago
I want to learn Forth. Do you have any good reference or know about some good code examples?
Just learned the stack operations and trying to get used to them, but I have some bigger projects in my personal backlog.
Oh, also "Programming A Problem Oriented Language: Forth - how the internals work" by Charles Moore, the inventor of Forth. It conveys his design philosophy: simplicity. Time and again he makes the point "You don't need it." Where a simple solution fits 90% of use cases.
Where I think Forth falls short: it encourages you to "write your own language" or vocabulary, where that can superficially resemble "noun [adjective] verb" syntax, but doesn't have polymorphism. Then, there are N+1 versions of message-passing object-oriented Forth, where N is us.
Still good:
Lee Brodie:
1. Starting Forth. Somewhat dated (1979 FIG-Forth dialect)
2. Thinking Forth. Has software design lessons that go far beyond Forth.
These are free in pdf.
Elizabeth Rather, of Forth Inc:
3. Forth Programming Handbook. What I keep on my desk for Standard Forth.
4. Forth Application Techniques.
Dr. Ting has some good books. They're free pdfs now.
I also keep: Texas Instruments: TI Forth, by Leon Tietz, Leslie O'Hagan... and the vastly improved fbForth manual by Lee Stewart.