The Forth language is a stack-based language designed for rapid interactive programming in limited-resource environments. Forth is interesting because it can be simple and small, yet it allows for remarkably powerful extensions to be written in Forth itself; most fully-fledged Forth systems are implemented partially in Forth. Forth is most often used to write embedded applications.
Forth emphasizes a number of classic computer ideas, such as
- one pass compilation
- factoring and subroutines
- making an application to get a result greater than the sum of its parts.
Many ritual necessities of other languages and required designer syntax falls away.
Forth is an extensible language, giving the user great flexibility to extend it. This is both a pro and a con. As with modeling clay, in the hands of an architect with a clear philosophy it can work wonders, or it can create a hodgepodge. Much Forth programming consists of "adding words to a dictionary" and learning someone's program, the words they have chosen to create, and their significance is often confused with learning the language itself.
- Core ideas of Forth
- Parsing in Forth, or "What happened to the Compiler"
- Structuring vs. words that actually do something
- Basic Syntax
- Manipulating the Stack
- Control Structures
- Handling Files
- Starting Forth by Leo Brodie, online edition from FORTH, Inc.
- Forth Lessons by Mitch Bradley, the author of Open Firmware
- Retro Forth Main Page
- herkforth wiki
- Quartus Forth Main Page (for PalmOs)
- Forth Freak wiki lists some Forth tutorials
- Thinking in Forth by Leo Brodie.