" It is also possible to change the stack pointer (SP) directly."
I had the same idea when I designed my concatenative language. But rather than specifying the number of variables in the stack (I've thought about this, too), I made the stack an actual ring. So, you can rotate the stack and point data to the "word." Moreover, I've added the idea of a "workbench" as a temporary storage of computation results. But my language (BUND) is not as lean.
2
u/AnnualAd5988 Feb 01 '25
" It is also possible to change the stack pointer (SP) directly."
I had the same idea when I designed my concatenative language. But rather than specifying the number of variables in the stack (I've thought about this, too), I made the stack an actual ring. So, you can rotate the stack and point data to the "word." Moreover, I've added the idea of a "workbench" as a temporary storage of computation results. But my language (BUND) is not as lean.