Fun with Forth

This website is a list of miscellaneous Forth tricks that I have encountered.


Intro

Forth is a programming language from the 70's, a stack-based "reverse Polish" enhanced version of Assembly. Yipee! The comfort of Assembly with the ease of reverse Polish syntax, it's really a mystery why it's not more popular today.

It is actually used as the interpreter language for the OpenBoot PROM (OBP) used on Sun and Apple computers, so it's not uncommon to run into Forth now and then.


Examples

The following are worked examples of programming in Forth,

Back to Brendan Gregg's Homepage


Created: 02-May-2005
Last updated: 02-May-2005
Copyright (c) 2005 Brendan Gregg