I think this post deserves more attention. It models basic physics from a programmer’s perspective: find the “state” and the “update function” of the universe, and write each theory as a game loop. It built up from Newtonian gravity to waves to Maxwell’s equations, and gave me a lot of aha moments. For example, seeing Newtonian gravity as an update that has to read the entire global state made “Newtonian mechanics uses instant action at a distance” click, in contrast to fields that only talk to their neighbours. It ends with a double-slit cliffhanger, I wish there was a part 2.
I think this post deserves more attention. It models basic physics from a programmer’s perspective: find the “state” and the “update function” of the universe, and write each theory as a game loop. It built up from Newtonian gravity to waves to Maxwell’s equations, and gave me a lot of aha moments. For example, seeing Newtonian gravity as an update that has to read the entire global state made “Newtonian mechanics uses instant action at a distance” click, in contrast to fields that only talk to their neighbours. It ends with a double-slit cliffhanger, I wish there was a part 2.