This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

Retrieving code from implementation

3 posts · 1032 views

I had an accident and a lost a file I had loaded into SBCL from my editor :cry: .
Is it possible to retrieve the code from the still running implementation and dribble it back to a text file?

Thanks!

Re: Retrieving code from implementation

I don't think so. SBCL in particular does a lot of optimizations. With a less optimizing lisp, the debug info can be more helpful.

You can save the SBCL image though. Then you can reload it multiple times, incrementally trying to replace the lost code or query sbcl's memory.

Does your editor use any *~ or #*# files for backups?

For real-time help, you can query the guys on #lisp (irc.freenode.net); sbcl-devel would have better answers but a longer lag.

Re: Retrieving code from implementation

nuntius wrote:Does your editor use any *~ or #*# files for backups?


Why yes it does. :oops:

Thanks Nuntis