News for hackers. Stuff that matters.
Re:Immer is a library of persistent and immutable data struc... by corysama on Thursday September 12, 2019 @01:55AM (#20948442)
Immutable data structures are great for undo-redo.

Sean Parent has a conference video out there about how undo in Photoshop is implemented by breaking the image into tiles then making a list of the history of each tile. This allows the “History Brush” to reach into the past and paint old pixels over new ones.

There are no comments on this comment yet.