Daily Thought - 2024-04-19
Hey, I'm Hanno! These are my daily thoughts on Crosscut, the programming language I'm creating. If you have any questions, comments, or feedback, please get in touch!
This thought was published before Crosscut was called Crosscut! If it refers to "Caterpillar", that is the old name, just so you know.
Yesterday, I talked about stepping backwards in a debugger. There is an inherent overhead to this. Not only do you need to generate the instructions to do this on the fly, you also need to store them. And computers can execute a lot of instructions in a short time, so such an "undo instruction" buffer might get quite long.
I'm not too worried about the performance overhead of logging the undo instructions. For now, performance is not a priority anyway. And I have ideas on how to alleviate, and in many cases completely eliminate, the overhead. Maybe I'm being too optimistic, but either way, that's a topic for another day.
I'm currently more worried about the length of the undo buffer. It would need to be limited, and on memory-restricted platforms (consider microcontrollers), it might have to be quite short. This restricts the usefulness of this feature, but I have ideas on how to get around that too.
Hey, you! Want to subscribe to my daily thoughts? Just let me know (maybe include a nice message, if you're up for it), and I'll send you an email whenever I post a new one.