Hacker News new | ask | show | jobs
by nocoment 4471 days ago
It looks like an introduction to FORTH via Kafka..

There is a nice browser interpreter here: http://forthfreak.net/jsforth80x25.html

you can start with: 1 1 + . (+ adds, . prints and this is clearly reverse polish notation)

FORTH is in essence an accumulator CPU like the 68000, except it has an easier abstraction to define new instructions (aka "Words") to act like the + or . above.

1 comments

Is that another term for a stack machine? I haven't heard of an accumulator cpu before ...
A CPU with an accumulator register (default locations that accepts the result for each instruction and is usually one of the operands in each new instruction.)

I guess that is a bit less capable than an actual stack machine like FORTH but sort of the starting point of this programming mentality (at least as I think of it.)