Building Universes from Code: The Illusion of Reversibility
- Tim Ellis
- Feb 6
- 2 min read
Updated: Feb 7
The Physics of the Undo: Building Universes from Code

In the physical universe, time moves in one direction. Entropy increases. A star that collapses cannot be un-collapsed; a glass that shatters on a stone floor does not spontaneously reassemble. The arrow of time is the ultimate, non-negotiable constraint of our existence.
Yet, in the digital worlds we build, we have created a miracle that defies the very nature of reality: The Undo.
We have cultivated a modern expectation that every action, every brushstroke, every line of code, every deleted file can be rescinded. We treat the digital world as a place where consequences are temporary. But for the engineer, "Undo" is not a simple deletion of a mistake. It is a monumental feat of architectural record-keeping. It is the attempt to build a system that can move backward through its own history without losing its mind.
To implement an Undo feature is to challenge the entropy of the system. It requires us to capture the state of the universe at a specific moment in time, the exact position of every vertex, the value of every variable, the intent of every command and store it in a way that can be perfectly reconstructed.
We take it for granted because, when it’s done well, it feels like magic. But beneath that "Ctrl+Z" lies a rigorous, silent struggle against the arrow of time. In our next post, we’ll look at the actual mechanics of this struggle: the Command Pattern and the heavy burden of total recall.
In our next post, we'll look at the 'The Burden of Total Recall' in Building Universes from Code
Join our waitlist for early access to the Red Nought Engine
What’s the most complex system you’ve ever had to make "reversible"? I’d love to hear about your experiences with managing state in the comments below.




Comments