persistence in lisp

From: Alex Mizrahi (udodenko_at_hotmail.com)
Date: 11/28/04


Date: Sun, 28 Nov 2004 19:36:20 +0200

Hello, All!

i want state of my data to be persistent - system should be able to restore
itself after reboot, but without hassle like keeping data in relational db
(one of reasons i do it in lisp is because i don't want to use relational
db - i just want to use some classes/structs and work with them).
it's not hard to do save and load functions for my data, but since lisp
supports reflection, it would be nice if it will do serialization code
itself.
i've looked through CL-PREVALENCE lib. there is serialization code, but
transaction stuff isn't what i want - i'll have to rewrite lot of code to do
that transactions..

are there better solutions?

i think in following direction - each setter function should work like a
transaction in CL-PREVALENCE - it should write changed value into log
(surely it can be optimized - all changes could be written when system goes
into some consistent state), and sometimes it does full snapshots. after
reboot it could load latest snapshot and apply logged setters.
as for me it looks ok except it doesn't work with direct slot access.
is there anything like this already implemented?

With best regards, Alex Mizrahi.



Relevant Pages

  • Re: persistence in lisp
    ... it would be nice if it will do serialization code ... > transaction stuff isn't what i want - i'll have to rewrite lot of code to do ... > reboot it could load latest snapshot and apply logged setters. ... does not keep the whole db in memory. ...
    (comp.lang.lisp)
  • Re: persistence in lisp
    ... > (one of reasons i do it in lisp is because i don't want to use relational ... it would be nice if it will do serialization code ... > transaction stuff isn't what i want - i'll have to rewrite lot of code to do ... that I then restarts upon reboot, but that may not be what you want. ...
    (comp.lang.lisp)
  • Re: persistence in lisp
    ... > itself after reboot, but without hassle like keeping data in relational db ... > (one of reasons i do it in lisp is because i don't want to use relational ... it would be nice if it will do serialization code ... > transaction stuff isn't what i want - i'll have to rewrite lot of code to do ...
    (comp.lang.lisp)
  • Intermittent TransactionScope communication failures
    ... We get intermittent exceptions with the message "Communication with the ... No firewall is running on either web or database server. ... For the first few transactions after a reboot I get the exception ... Usually the transaction rolls back when this error appears, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: [PATCH] i2c-i801: Fix resume when PEC is used
    ... The BIOS of the Tecra M2 doesn't like it when it has to reboot or ... resume after the i2c-i801 driver has left the SMBus in PEC mode. ... most simple fix is to clear the PEC bit after after every transaction. ...
    (Linux-Kernel)