Lisp HUG Maillist Archive

Saving a running Lisp program

I'm running LWW.  I have a program that learns from experience.  I'd like to save the program and all the variables when it's time to shut down so that when I start the program again it starts exactly where it left off.  This isn't exactly "SAVE-IMAGE" - but is there something similar that I could use?
 
Bruce.
 

Re: Saving a running Lisp program

Unable to parse email body. Email id is 8279

Re: Saving a running Lisp program

Unable to parse email body. Email id is 8280

Re: Saving a running Lisp program

Hello,

you can simulate continuations in Common LISP
using the cl-cont package. http://common-lisp.net/project/cl-cont/
But you will have to use some macros to write your code
in Continuation passing style (CPS) and they don't 
work very fast in LispWorks.

Cheers,

Mauricio

2008/6/27 Dr Nicholas Walton <nwalton@mac.com>:
Bruce,

To achieve that you'd have to capture the current continuation as well, and Common LISP doesn't support such. Scheme is the only language I know of which will do such and serialise out the continuation so you can reload and restart as if nothing had happened.

If IIRC Jo Marks (ex founder of Harlequin) had the dream of implementing this in Common LISP back in the 1980's so he could move LISP closures around a net but machines were just too inefficient to do it then. Chameleon was the project name IIRC. It has now being achieved using the Termite package on top of the Gambit-C implementation of Scheme.

Dr Nicholas Walton

Skype:  amateuracademic
Myspace:        http://www.myspace.com/amateuracademic


Made for spirituality, we wallow in introspection. Made for joy, we settle for pleasure. Made for justice, we clamour for vengeance. Made for relationship, we insist on our own way. Made for beauty, we are satisfied with sentiment. But new creation has already begun. The sun has begun to rise.

Tom Wright, The Bishop of Durham
from Simply Christian

On 27 Jun 2008, at 16:35, John Thingstad wrote:


På Fri, 27 Jun 2008 16:19:01 +0200, skrev Bruce J Weimer MD <bjweimer@charter.net>:

I'm running LWW.  I have a program that learns from experience.  I'd like to save the program and all the variables when it's time to shut down so that when I start the program again it starts exactly where it left off.  This isn't exactly "SAVE-IMAGE" - but is there something similar that I could use?

Bruce.

Well you could use a CLOS persistence library like Rugsack.
http://www.weitz.de/eclm2006/rucksack-eclm2006.txt
constains more info.

--------------
John Thingstad




--
Mauricio Toro Bermudez
Estudiante de Ingeniería de Sistemas
Pontificia Universidad Javeriana, Colombia

Stagiare à l'Ircam
1, place Igor-Stravinsky 75004 Paris,
France de 2008 à 2009

Re: Saving a running Lisp program

Unable to parse email body. Email id is 8313

Updated at: 2020-12-10 08:42 UTC