Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

stack based languages

Name: Anonymous 2007-09-10 0:18 ID:JdAHaYKN

Hello, i am interested in learning a stack oriented language, so i started learning Forth. (from http://www.amresearch.com/starting_forth/)
Some alternatives i heard of are cat and factor.

What is best to learn from those? And suggest a good tutorial

Name: Anonymous 2007-09-18 20:48 ID:sYOGj6Gb

FORTH:

: NEXT-FIBS OVER + SWAP ;
: FIB 0 1 0 2SWAP DO NEXT-FIBS LOOP DROP ;

I have to say I like Lua better though:

function fib(x)
  local a,b = 0,1
  for i = 1,x do
    a,b = b,a+b
  end
  return b
end

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List