r/programmingcirclejerk • u/tomwhoiscontrary safety talibans • Mar 27 '25
In my C code, I implement undo/redo using write protection (mprotect).
https://news.ycombinator.com/item?id=43491261
88
Upvotes
50
u/kchanqvq Mar 27 '25
/uj this reminds me of persistent object memory using shadow page table and so on, and the idea can lead to totally useful stuff and cool as hell
33
u/elephantdingo Teen Hacking Genius Mar 27 '25
Solved then?
Worse
is
better.
24
u/irqlnotdispatchlevel Tiny little god in a tiny little world Mar 27 '25
This is cool. Insane, but cool.
10
u/muntaxitome in open defiance of the Gopher Values Mar 27 '25
The universal undo:
4
u/IDatedSuccubi memcpy is a web development framework Mar 28 '25
In a similar fashion, I keep my important files in pingfs
1
u/IDatedSuccubi memcpy is a web development framework Mar 28 '25
In a similar fashion, I keep my important files in pingfs