2 ms·
Exactly the same question ocurred to me as I was reading. In a lisp the is certainly possible, the environment exists as a giant sexp (possibly with some small
by Y_Y 8y ago
Exactly the same question ocurred to me as I was reading. In a lisp the is certainly possible, the environment exists as a giant sexp (possibly with some small compiled components). No idea how smalltalk works though.
I've tried something like this with ipython, since you can save the session's input as a .py file. As long as you don't depend on the outside world you can recreate your image by using the bare repl as your "base image" and just load the (gittable) previous sessions input (which itself possibly loads older and older sessions).
- mikelevins 8y agoA Smalltalk system has data structures that record a comprehensive inventory of every memory object. If anything, Smalltalk makes it even easier than Lisp to keep track of all the objects in memory.