Closed aaditmshah closed 2 years ago
I learned that we only need six concatenative combinators for Turing completeness.
dup
- To use items on the stack more than once.drop
- To ignore items on the stack.swap
- To rearrange items on the stack.quote
- To convert code into data.unquote
- To convert data into code.append
- To merge multiple quoted items.
We need the theory of concatenative combinators in order to implement a VM for typecasting.