Re:How to Grow Software Architecture out of Jupyter Notebooks
by detaro on Wednesday December 12, 2018 @06:09AM
(#18662895)
A basic way of getting that on Unix systems is forking - you get a copy of the process with the same memory state, and likely relatively small interfaces would suffice to manage which process is currently receiving input from e.g. a REPL. (Sockets, open files, ... are more complex, but I guess many REPL workflows could do without that). Sadly you can't easily save much memory for the snapshots from copy-on-write (which otherwise is a neat trick with forking to keep old state) due to the way Python manages memory, at least not without modifying the interpreter.
[ Parent
| on HN ]
Re:How to Grow Software Architecture out of Jupyter Notebooks
by thomasballinger on Wednesday December 12, 2018 @11:54AM
(#18665447)
If anyone wants to walk through these ideas more 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 state was more efficient and all external resources had amenable interfaces http://dalsegno.ballingt.com/
Re:How to Grow Software Architecture out of Jupyter Notebooks
by malux85 on Wednesday December 12, 2018 @12:22PM
(#18665724)
Will you marry me?
this is really cool, I'm going to give deeper into the code tonight. Awesome work
Re:How to Grow Software Architecture out of Jupyter Notebooks
by detaro on Wednesday December 12, 2018 @01:12PM
(#18666215)
hooking into readline is a clever idea!
Re:How to Grow Software Architecture out of Jupyter Notebooks
by CMCDragonkai on Wednesday December 12, 2018 @07:20AM
(#18663273)
Interesting COW for whole process images and a tree like interface to jump between them. Could work if well if the process image itself had structured interfaces for everything important. Otherwise you'd end up with black box images everywhere.