RAK's box Flag: fi Suomeksi
2011-01-17
This page has been moved to the attic, as it is considered being too old or otherwise outdated.
Nevertheless, if this is useful to you, be my guest.

About Forth

Forth is one of my favorits. Fast way to write working code. Why? Maybe because of it's simple syntax. Surely because there is less to type when using Forth. An extract from "Tonkin's First Computer Dictionary" I found from the Net:

Forth: (n.) a stack-oriented programming language written right to left and read from bottom to top. It runs efficently on no common computers and is written effectively by no common programmers.

Naturally Forth can be used to code large programs. But, having simple structure and being stack oriented, it seems to fit especially well as the language for embedded systems or other small programs. Working code can be quickly written using Forth. During the DOS era, I usually coded the small PC programs with Forth. It was the fastest method to get the job done.

I haven't used Forth much in Windows / Linux world. There are interpreters and compilers available, I have tried one or two, but currently I don't have any Windows or Linux Forths installed in my PCs.

Typical programming example - "Hello world"-subroutine:

     : HELLO
       " Hello World!" TYPE ;

It is a pity Forth isn't spread out into wider usage. It has its potential. Lack of Forth coders hinder using Forth. Very often the business world says that Forth can not be used in a production software, because there wouldn't be others to maintain & update the code. Well, other programming languages are very usable, too.

Links to some Forth pages:

Free Forth compilers are out there. Also for many different processors for embedded systems. Free Forth system means usually also less documentation and less support, but having used some of them, it has not been a problem for me. I am sure there are also well documented Forths out there. Commercial Forth systems are listed in the FAQ.