Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need examples of implementing persistence via the MOP

1 view
Skip to first unread message

Scott Alexander

unread,
Jan 8, 1999, 3:00:00 AM1/8/99
to
Hello -

I have heard that it is possible to implement persistency using the
meta-object protocol (MOP).

Does anyone know where I might find an example of how to do this?

I would like to be able to use CLOS with persistent objects, but I
cannot afford to pay $2,000 at the moment for AllegroStore, and at the
moment PLOB will not run on Windows 95/98.

Thanks for any help.

- Scott Alexander
sco...@bellsouth.net

Sunil Mishra

unread,
Jan 9, 1999, 3:00:00 AM1/9/99
to
Scott Alexander <sco...@bellsouth.net> writes:

Scott,

I believe the source code for PLOB is available. If so, your best bet would
be to download the package, and see how it as used the MOP. That would
probably be your best starting point.

Sunil

Kelly Murray

unread,
Jan 11, 1999, 3:00:00 AM1/11/99
to
Implementing persistent has about 10% to do with getting access
to class implementation internals and slot accessors, which
is what the MOP gets you.

Persistent can be had very easily but very very inefficiently
by saving the entire lisp image, as in dumplisp or save-image
under ACL. This is useful for small applications, or to just
test code using a persistent model.
I've used this method in the past. See the link below to
get the source code which adds the AllegroStore API functionality
to ACL. Note it doesn't use the MOP, it uses a macro
define-persistent-class intead of a defclass w/metaclass,
which defines the slot-accessors, which must be used to write
new slot values instead of (setf (slot-value ..)..)

http://www.intellimarket.com/oodb/astore5.cl

Hope that helps,
-Kelly

0 new messages