Comment by gwu78
12 years ago
djb once wrote a FORTH-like interpreter.
Anyone get that old code to run today?
I have always thought think LISP/Scheme's "best" use is to write code generators (e.g., that output C or asm). I know there's at least one LISP/Scheme project that outputs C, so I know I'm not alone in thinking this can be useful.
FORTH has always seemed better suited to driving hardware than any LISP/Scheme.
This is some sort of bias perhaps. These are both very flexible languages.
What if historically programmers tried to use FORTH for "AI" and LISP as a "portable assembler"?
Bigloo Scheme (among others) generates C code. I've used it on a few projects to process, reformat, and visualize some meteorology data and was pleased with the result. I know some other people that used it for other scientific application development (including 3D graphics) and it performed beautifully. One of my friends used Chicken Scheme to write some interesting web scraping tools. It also has the ability to compile to C.
> What if historically programmers tried to use FORTH for "AI" and LISP as a "portable assembler"?
Then I guess the Burroughs B5000 and its ilk might have become a popular machine for AI research. We would have had Stack Machines instead of LISP Machines.
I'll just throw that in here, as I always do, in case people want a nice historical overview (yet detailed) of stack machines : http://www.eecg.toronto.edu/~laforest/Second-Generation_Stac...
Lisp Machines were mostly stack machines.
I have in fact written a Forth dialect, but I'm guessing you mean some other djb. :)
Well done. What language did you use to write it?
C. I know, booorring; I just hate dealing with the x86 and haven't had occasion to work with ARM, etc.
https://github.com/darius/tusl
P.S. If Dan Bernstein did write a Forth, I'd like to see it.
1 reply →