As Dirk mentions, you can save the image in many Lisp implementations. However, although this meets your stated requirements, it is not recommended to store the code only in the image, because it is more difficult or impossible to edit. The ability to get the source code of a function is an optional function (and even if it exists, you lose comments and formatting), and many other types of definitions cannot be restored in standard ways at all.
On the other hand, itβs great to use an image to save and resume work if you have a difficult setup in your REPL or a long compilation time.
(Some systems, in particular Smalltalk, facilitate editing code inside an image, and also have editing and export features to support this, but Common Lisp, as standardized, does not know and does not know any modern CL implementation.)
source share