3 ms·
People have described Forth as Lisp without the parentheses. Definitely some interesting parallels.
by macintux 8y ago
People have described Forth as Lisp without the parentheses.
Definitely some interesting parallels.
- arethuza 8y agoI toy with the idea occasionally of writing a Lispish language (probably a whitespace lisp) that transforms itself down to a Forth/PostScript style engine for execution - one of many things on my ToDo list ;-)
- kazinator 8y agoStack-based byte code machines for Lisps are not uncommon. Emacs Lisp has one, CLISP too, I think. It keeps the instructions small, since operand references are implicit.
- arethuza 8y agoI was more thinking about a runtime conversion from a Lisp style AST to RPN primitives rather than a more traditional compiling stuff down to a separate VM - but clearly not something I've thought through in that much detail!
- sctb 8y agoYou can have both! https://github.com/sctb/woe/blob/master/boot.w https://github.com/sctb/woe/blob/master/boot.w
- kazinator 8y agoThose people were horribly misinformed.
- macintux 8y agoSure, they're very different languages, but they nonetheless have a lot in common. http://wiki.c2.com/?ForthVsLisp http://wiki.c2.com/?ForthVsLisp is quite an interesting read.