Computerworld
The A-Z of Programming Languages: Forth
Charles H. Moore talks about the origins of Forth and how it shows that a computer language can be simple and powerful.
Naomi Hamilton  27 June, 2008 08:01

Computerworld is undertaking a series of investigations into the most widely-used programming languages. Previously we have spoken to Alfred v. Aho of AWK fame, S. Tucker Taft on the Ada 1995 and 2005 revisions, Microsoft about its server-side script engine ASP, Chet Ramey about his experience maintaining Bash, and Bjarne Stroustrup of C++ fame.

In this article we chat to Charles H. Moore about the design and development of Forth. Moore invented Forth while at the US National Radio Astronomy Observatory to help control radio telescopes and data-collection/reduction systems.

Here he chats about why Forth was invented, as well as why he still works with Forth today.

How did Forth come into existence?

Forth came about when I was faced with a just-released IBM 1130 minicomputer. Compiling a Fortran program was a cumbersome procedure involving multiple card decks. I used Fortran to develop the first Forth, which could use the disk and graphics display that Fortran couldn't. Because it was interactive, my programming was much faster and easier.

Was there a particular problem you were trying to solve?

This computer was at Mohasco Industries. Their main product was carpet and the problem was to determine if the 1130 could help design carpets. Forth was great for programming the 2250 display, but ultimately the lack of color doomed the project.

Did you face any hard decisions in the development of the language?

The hardest decision in developing Forth was whether to do it. Languages were not casually designed. It was reputed to require a brilliant team and man-years of effort. I had my eye on something quick and simple.

I write Forth code every day. It is a joy to write a few simple words and solve a problem. As brain exercise it far surpasses cards, crosswords or Sudoku; and is useful.

How did Forth get its name?

I decided to call it Fourth, as in 4th-generation computer language. But the 1130 file system limited names to 5 characters, so I shortened it to Forth. A fortuitous choice, since Forth has many positive associations.

I have read that Forth was developed from your own personal programming system, which you began to develop in 1958. Can you tell us a little more about this?

My personal programming system was a deck of punch cards, [now] sadly lost. It had a number of Fortran subroutines that did unformatted input/output, arithmetic algorithms and a simple interpreter. It let me customize a program via its input at a time when recompiling was slow and difficult.

Why did you incorporate Reverse Polish notation into the language?

Reverse Polish notation is the simplest way to describe arithmetic expressions. That's how you learn arithmetic in grade school, before advancing to infix notation with Algebra. I've always favored simplicity in the interest of getting the job done.

Computerworld Buyer's Guide - Vendors Matched to this Article

Comments

HP-67 to Forth to Smalltalk

When I was a kid my father taught me to program the HP-67 calculator. This is a stack based, RPN calculator. I can't say that this is a Forth machine, but it prepared me for my serendipitous discovery of Starting Forth at my local library a few years later. I was hooked. Forth is a great language. I didn't really understand what made it great at the time honestly. I was only 15 years old when I first tried it (on a VIC-20 with HES Forth). I still did most of my programming in BASIC then, and a little 6502 assembler.

Later on the book Thinking Forth really gave my brain a shot. Then I was exposed to Smalltalk which I consider to be Forth on steroids. I've been Smalltalking ever since, but I still pay attention to what's going on in the world of Forth. Thanks to HP, Charles Moore, Leo Brodie, and Alan Kay!

I have been using Forth since

I have been using Forth since around 1977 just after a Forth Interest Group (FIG) was formed in the San Francisco bay area. Every year at the National Forth Day meeting in November the genius of Chuck Moore has continued to impress us during his "fireside chat" about some great new innovation using the Forth approach to software. Various Forth interest groups scattered around the globe are still active, although nowhere near the peak activity level during the 1980's. Forth Inc http://forth.com is still commercially distributing programming environments for various platforms. There are free downloads for Windows, Mac, Linux, and other platforms, e.g. Win32Forth, MOPS.
http://tech.groups.yahoo.com/group/win32forth/
http://apps.sourceforge.net/mediawiki/powermops/index.php?title=Main_Page
http://www.thefreecountry.com/compilers/forth.shtml

I think that I can learn

I think that I can learn Forth at our school.

MikeCrabe

Post new comment

Login or register to link comments to your user profile, or you may also post a comment without being logged in.
The content of this field is kept private and will not be shown publicly.
Enter the fully qualified URL, eg. http://www.example.com/
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Charles H. Moore
Charles H. Moore
Add to Google
Computerworld Buyer's Guide - Vendors Matched to this Article
Zones
Zone logoZones provide focussed content from Computerworld and leading technology partners.
Newsletter Subscription
Newsletter Subscription
Sign up for our Computerworld newsletters!
Syndicate content Syndicate content
 

Computerworld Webinar

Thursday, June 11th, 2009
10:30am EST (Sydney, Australia)
Screening at your PC

Computerworld is hosting a 30 minute live webinar to help you to learn how unified communications can save you money, foster innovation and business agility by making it easier for people to find, reach and collaborate with one another.

Register Now

Computerworld Community Comments
Whitepaper

Technology Requirements for a Successful Master Data Exchange

A master data exchange provides a mechanism for delivering substantial business value to ecosystems of organisations interested in sharing selected information for mutual benefit. Want to learn how? Read this white paper.

Enterprise IT Buyer's Guide
Find Technology Vendors Fast
 
Find vendors by name | Find by category
Sponsored Links
 
Send Us E-mail | Privacy Policy
Features List | Media Kit | Advertising | Contact Us

Copyright 2009 IDG Communications. ABN 14 001 592 650. All rights reserved.
Reproduction in whole or in part in any form or medium without express written permission of IDG Communications is prohibited.