Hacker News new | ask | show | jobs
by RodgerTheGreat 2589 days ago
It's also important to observe that Forth's approach to metaprogramming is very powerful, but completely different from Lisp's approach. It's not just another retread of the same ideas. CREATE...DOES>, immediate words, parsing words, fancy tricks with the rstack and other fun Forth stuff has at best very loose analogs in Lisp macros.
1 comments

Where could I get a good tutorial on Forth metaprogramming?
I think the late J.V. Noble's "A Beginner's Guide to Forth" does a good job introducing the language and touching on some metaprogramming features. Near the end he demonstrates a library which extends the language to support infix math expressions (a "FORTRAN") to make scientific computing more convenient.

https://www.taygeta.com/fsl/docs/551.jvn.fall01/primer.htm#c...