cl-store is an asdf-installable portable library for serializing and deserializing Common Lisp objects to and from streams. It currently runs on SBCL, CMUCL, CLISP, ACL, OpenMCL and Lispworks.
|Source code repository||http://common-lisp.net/cgi-bin/viewcvs.cgi/cl-store/?cvsroot=cl-store|
CL-STORE is a package written by Sean Ross for serializing and deserializing CL objects from streamsIt has been tested and works on
CL-STORE currently supports serialization of
Example: ;; Store a class and instance cl-user(1): (defclass foo () ((bar :accessor bar :initarg :bar))) cl-user(2): (cl-store:store (list (find-class 'foo) #'bar (make-instance 'foo :bar "bar")) "test.out") ;; Then restore them in a fresh lisp session cl-user(1): (let ((vals (cl-store:restore "test.out"))) (funcall (second vals) (third vals))) => "bar"
You must be logged to add a note
You must be logged to add a comment