IT lexicon › Programming › Forth

Forth

Programming På svenska → Updated: 2026-11-12

Stack-based language from 1970, designed for efficiency and introspection on resource-constrained systems.

Forth was created by Charles H. Moore in 1970 to control a radio telescope. Instead of conventional syntax, Forth uses a stack to pass values between operations—writing 5 3 + pushes 5, then 3, then pops both to perform addition and push the result. The language is extremely minimal: the core interpreter often fits in less than 2 KB, and new functionality is built by defining new words (functions) on top of primitives.

Forth was widely used in embedded systems, scientific instruments, and later in some high-frequency trading environments. It spawned an entire philosophy around stack-oriented programming and was prescient about code-as-data concepts. Though never mainstream, Forth proved remarkably practical for hardware control and remains one of the most minimal Turing-complete languages actually used in production. Its discipline appeals to programmers who value simplicity and direct hardware access.

← Back to the lexicon