[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Package for data serialization?

From: Phillip Lord
Subject: Re: Package for data serialization?
Date: Tue, 13 Jun 2006 17:02:11 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

>>>>> "anon" == spamfilteraccount  <> writes:

  anon> Is there a package for de/serializing an arbitrary elisp data
  anon> structure, so that it can be read/written in binary format
  anon> from/to disk?

  anon> I know about prin1 and co., but they create a printed
  anon> representation and I want binary for speed and size.

As far as I know, this doesn't work in general. Not all lisp objects
have an output representation that can then by eval'd back in; the
most obvious one for me is the hash-table which is a pain. I can
understand why objects such as a frame or a window can't be
serialised, but not a hash. 

However, as far as I can tell Emacs does the have the ability to store
arbitrary elisp data items -- this is what `dump-emacs' does for
example. I wonder how hard it would be to extend this system so that
it could cope with arbitrary bits of the current state. It would be
quite useful. 

Incidentally, the printed representation is not bad. Emacs is pretty
quick at parsing lisp code, even large data structures, for purposes
of an eval.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]