Login







Sign Up
Google Search:

FreeBSD man pages:
Previous Story
Next Story

FORTH on the Atari
By isax on 2007-10-26

This is the best thing I've seen today
FORTH


(Login to post comments)
Follow up
By isax on Tue Oct 30 15:22:59 +0000 2007

Why no games in FORTH?
Also, In case you didn't figure it out, the image to which the Original post refers is here.

Oh man, that's bad
By on Wed Oct 31 00:31:11 +0000 2007

I can totally imagine that happening though.  The address space for a process usually looks something like this:

[STACK ----            ---HEAP],

where the stack grows from the left and the heap from the right.

So, if the memory is unprotected and the video RAM is after some fixed stack size, it makes sense that would happen.  Brings new meaning to the phrase "blow the stack."

FORTH is poetry
By on Mon Nov 05 00:12:15 +0000 2007

I found this in the XKCD forums, which cites http://www.albany.net/~hello/life.htm. ; From Conway's Game of Life in FORTH:

\ history
: Goes-On  ( -- )
  BEGIN  Everything Passes
          Dreams Action Meditation
          Escape = UNTIL ;

\ a vision
: Life  ( -- )  Creation Goes-On ;

Life

More FORTH nonsense
By on Mon Nov 05 03:20:41 +0000 2007

As a side note, FORTH is stack based, like a reverse polish calculator.  So if you want to do x + 2 * y with standard precedence rules, you write
x 2 y * +
which pushes x, 2, and y on the stack.  * pops the y and 2, pushing the result back on.  That result gets popped with x and the result is added and pushed back on.

The Java VM is pretty similar to this, except that it also has an unlimited number of registers.  So there.  That's your random tidbit of the day.