freenode/lisp - IRC Chatlog
Search
4:09:39
emaczen
Can someone point me to or give me an overview of how object persistence works, maybe even beyond the MOP?
4:35:04
beach
emaczen: I am guessing it is pretty messy in a system (OS + Common Lisp implementation) that was not meant for it in the first place.
4:36:54
beach
emaczen: You may consider looking at this one: https://github.com/robert-strandh/Clobber
4:49:15
White_Flame
emaczen: the biggest issues to deal with are serializing function objects and dealing with multiple references to shared objects
4:49:49
White_Flame
different libraries deal with such things in different ways. The only "standard" way persistence happens is saving your lisp image, which isn't even in the spec
4:54:21
beach
emaczen: If you can describe your needs, that might make it easier to give you advice.
7:22:24
jackdaniel
emaczen: cl-store is a very versatile and complete library for serialization, reading its sources may be beneficial
10:19:55
rk[ghost]
that brings up an interesting thought.. what do you all use for serialization of function objects?
11:08:25
_death
generally you avoid serializing those.. but see http://www.discontinuity.info/~pkhuong/common-cold/
11:40:26
phoe
generally you serialize those by (if at all) capturing their source code at compile time and storing the source code, then compiling it again during deserialization