Made a little compiler of Forth primitives to a 3 stacks pushdown automata virtual machine, because curiosity.
Made a little compiler of Forth primitives to a 3 stacks pushdown automata virtual machine, because curiosity. 2 comments
@monkey1 I was wondering what the primitives would look like if you couldn't peek behind the top item, and how many stacks you'd need to replicate their behaviors. I tried ROT with 4 stacks, and it takes 6 opcodes instead of 7, with 3, and so on. |
@neauoire
Now you got me curious about what you are curious about!