So the ideas are: - the only data type is a stack of stacks of stacks of ... - a while loop can be as "loop while the top of the stack is not empty" - pushing the stack at the top of the stack to the stack below it, popping an element from the (main) stack, swapping the two stacks on top - some two-stack operations that move the top element between them (to simulate a tape for TC) - recurse into top stack
It just works in theory because any stack and its element have the same type, so you can run the same kind of code on any stack, treating it as the main stack. I haven't thought of its usefulness yet
How about an operation to pop all elements from the main stack and push them into a new stack, then push that new stack onto the main stack? (basically, enclose the main stack into another stack)
@user It's a common model of making a stack-based language TC, especially "two stacks with infinite implicit zeros at the bottom", which makes simulating Brainfxxk trivial
All right, I have a page for syntax now. Nothing's concrete yet, so feel free to propose syntax changes, different names for commands, add explanations, etc.
The main principle behind Stack Exchange must be the exchanging of stacks.
And also "Stacks all the way down," just because it's somewhat catchy.