persistence in lisp
From: Alex Mizrahi (udodenko_at_hotmail.com)
Date: 11/28/04
- Next message: Wade Humeniuk: "Re: C++ sucks for games.... oh really?"
- Previous message: Kaz Kylheku: "Re: using function names as variable names? Is it Justified?"
- Next in thread: Gisle Sælensminde: "Re: persistence in lisp"
- Reply: Gisle Sælensminde: "Re: persistence in lisp"
- Reply: Robert Strandh: "Re: persistence in lisp"
- Reply: Gabor Melis: "Re: persistence in lisp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Wade Humeniuk: "Re: C++ sucks for games.... oh really?"
- Previous message: Kaz Kylheku: "Re: using function names as variable names? Is it Justified?"
- Next in thread: Gisle Sælensminde: "Re: persistence in lisp"
- Reply: Gisle Sælensminde: "Re: persistence in lisp"
- Reply: Robert Strandh: "Re: persistence in lisp"
- Reply: Gabor Melis: "Re: persistence in lisp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|