Implementing DOES> in Forth, the entire reason I started this mess

18 points by spc476


snej

I remember struggling through the FIG Forth Z80 implementation of <BUILDS and DOES> in high school. (Why did ANSI rename the former but leave the angle-bracket on the latter?) It’s the FORTH equivalent of Lisp macros, or Zig’s comptime. I think I had that same insight that there are three distinct times to understand.

dkl

So, how does one write DOES> on modern CPUs that make memory write XOR executable?