3 ms·
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 r
by RodgerTheGreat 7y 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.
- DennisP 7y agoWhere could I get a good tutorial on Forth metaprogramming?
- RodgerTheGreat 7y agoI 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#create https://www.taygeta.com/fsl/docs/551.jvn.fall01/primer.htm#c...