Forth

A low-level functional programming language, mostly concatenative, with imperative features, for a stack-based VM model, invented by Chuck Moore. It is a very interesting language to study, both for its achievements and its shortcomings. The writer won't list those shortcomings of Forth here, and he doesn't list any of its achievements either. You'll just have to guess what he must have been thinking. -- A N Other

Central to Forth is the notion of a "word", corresponding to a function in other languages. A Forth program, after parsing, is nothing but a list of words, executed consecutively by the "inner interpreter", the core of Forth.

Forth is fully reflective and self-containing; the Forth parser (the so-called "outer interpreter") is written in Forth and can be modified at any time. It has also a set of words to access the input buffer (see for example the word PARSE). Thus, at least potentially, Forth can have any syntax.

Forth is usually untyped, much in the same way that Assembly is (though see strongForth below). More generally, Forth is a very low-level language, with manual management of memory, fixed-size buffers, pointer manipulation; but reflection makes it a remarkably powerful language among low-level languages.

See also Forth OSes, Forth is NOT intrinsically slow.


Pages in this topic: Flua   Forth OSes   Kevo  


Also linked from: Block Editor   Charles Childers   Chuck Moore   CoSy   Credits   False   Forth is NOT intrinsically slow   Joy   Object-Oriented   OJOS   Open Firmware   Parsing   PostScript   Reflective Programming Languages   Retro   RPL   Scheme   SED   Small C   Stacker   The True Story of Ada   Tom Novelli