5 ms·
A long time ago I wrote a tutorial for FORTH. It's in two parts, a part written in i386 assembly: https://github.com/nornagon/jonesforth/blob/master/jonesforth
by rwmj 7y ago
A long time ago I wrote a tutorial for FORTH. It's in two parts, a part written in i386 assembly: https://github.com/nornagon/jonesforth/blob/master/jonesforth.S https://github.com/nornagon/jonesforth/blob/master/jonesfort...
followed by a part written in FORTH: https://github.com/nornagon/jonesforth/blob/master/jonesforth.f https://github.com/nornagon/jonesforth/blob/master/jonesfort...
It builds gradually from asm primitives into a somewhat sophisticated language with features like exceptions, function inlining and a decompiler.
The major strength, probably unique amongst programming languages, is that you can keep the entire system in your head (by "system", I mean both language and the simple operating system that it implements). The downside is that the code is write-only.
- 4e1a 7y agoI just wanted to say "Thank You!" For jonesforth. I don't know how many times i've read it. It's probably what made everything "click" for me, so "thanx"
- co_dh 7y agoI'd like to say thank you too. I've studied your code many times, and it helps me understand forth finally. I was attracted by colorforth first, which is harder.
- jsymolon 7y agoAnother big thank you. I've used that to build a FORTH interpreter on an AVR micro.
- tieze 7y agoI wanna thank you fourth! Such a great tutorial, and I used it to build a little Forth for the GBA. It was such a great experience.