Making live repls behave

from blog Scattered Thoughts, | ↗ original
I like to make live repls that evaluate as you type. Here is an example for a silly little stack language with singleton sets (0 and 1), set union (|), set product (*) and dup (^, makes an extra copy of the top value on the stack). Limit memory usage to 2^ bytes Am I broken? Try changing the numbers and seeing how that affects the...