[CM] Saving LISP objects to disk

Bret Battey BBattey at dmu.ac.uk
Tue, 25 Mar 2008 11:19:05 -0000


This is a multi-part message in MIME format.

------_=_NextPart_001_01C88E6A.09952435
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

One thing that has cropped up as I am trying to resurrect my PICACS code =
in SBCL is that the code I developed to save objects (and any =
subobjects) to disk is broken, because of all of the CCL calls I used.=20

I there a standard LISP way of writing objects to disk (and later =
restoring them), including all subobjects?=20

As it was, I solved it three years ago by writing code that determines =
the slots of any object, traverses the whole object and subobject tree =
of a given object and writes out to disk the code needed to recreate the =
objects.

Surely there is a better way, and one that doesn't require =
system-specific calls (?) -- and three days of hunting poor =
documentation to figure out how to translate my CCL implementation to =
SBCL?

Cheers,
-=3DBret


------_=_NextPart_001_01C88E6A.09952435
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7638.1">
<TITLE>Saving LISP objects to disk</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>One thing that has cropped up as I am trying to =
resurrect my PICACS code in SBCL is that the code I developed to save =
objects (and any subobjects) to disk is broken, because of all of the =
CCL calls I used.<BR>
<BR>
I there a standard LISP way of writing objects to disk (and later =
restoring them), including all subobjects?<BR>
<BR>
As it was, I solved it three years ago by writing code that determines =
the slots of any object, traverses the whole object and subobject tree =
of a given object and writes out to disk the code needed to recreate the =
objects.<BR>
<BR>
Surely there is a better way, and one that doesn't require =
system-specific calls (?) -- and three days of hunting poor =
documentation to figure out how to translate my CCL implementation to =
SBCL?<BR>
<BR>
Cheers,<BR>
-=3DBret<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C88E6A.09952435--