thomasballinger/rlundo
View on GitHub ↗ ★ 163 Python
undo in any program that uses readline
9 mentions on Hacker News by 5 people: 2 stories, 7 comments · first 2015-05-31 · latest 2025-03-17
20082026
-
A crazy, but cool idea to implement this is using fork: https://github.com/thomasballinger/rlundo
comment by olejorgenb · 2025-03-17 · in Show HN: Localscope–Limit scope of Python functions for reproducible execution -
…above, it forks on each invocation of readline to provide undo for interactive interpreters. https://github.com/thomasballinger/rlundo
comment by thomasballinger · 2021-05-29 · in Unfork: The Inverse of Fork(2) -
I've played with prototypes of this by calling fork on IPython to take snapshots of interpreter state https://github.com/thomasballinger/rlundo/blob/master/readme... but if you can't serialize state fully, rerunning from the top (bpython's…
comment by thomasballinger · 2020-01-28 · in What’s wrong with computational notebooks? -
…slowly I write about them in http://ballingt.com/interactive-interpreter-undo and implement this in https://github.com/thomasballinger/rlundo but as you say, eventually decided I had to implement an interpreter for which serialization of…
comment by thomasballinger · 2018-12-12 · in How to Grow Software Architecture out of Jupyter Notebooks -
…kernel is used in Jupyter) you could do something like this. We tried plugging in the rlundo tool https://github.com/thomasballinger/rlundo to IPython, it works ok, see http://ballingt.com/interactive-interpreter-undo/ for the long story.…
comment by thomasballinger · 2018-11-21 · in D compilation is too slow and I am forking the compiler -
…continously relying on the system provided copy on write mechanism - I have also found this: https://github.com/thomasballinger/rlundo - It overwrites readline library to get undo function in any REPL using it Other examples?
comment by szemet · 2018-11-21 · in D compilation is too slow and I am forking the compiler -
…readline with version that forks on each input. Kill the forked child process and you have undo! https://github.com/thomasballinger/rlundo post: http://ballingt.com/interactive-interpreter-undo/#hacking-fo...
comment by thomasballinger · 2017-12-04 · in Using LD_PRELOAD to cheat, inject features and investigate programs (2013)