From: "Drew Adams" <drew.adams@oracle.com>
To: "'Thierry Volpiatto'" <thierry.volpiatto@gmail.com>,
<emacs-devel@gnu.org>
Subject: RE: persistent lisp objects
Date: Wed, 7 Oct 2009 09:53:29 -0700 [thread overview]
Message-ID: <AFBA5C7BFF10496DB227C398021D95E4@us.oracle.com> (raw)
In-Reply-To: <87ljjv5y5b.fsf@tux.homenetwork>
> We can actually save any lisp object in a compiled file:
>
> This is a feature of `eval-when-compile' that is not documented.
> It can be interesting as AFAIK there is no way to save object.
Now that the detour about licensing has died down, perhaps we can return to
this? ;-)
From what I understand, Thierry says that Emacs now has a general
serialization/deserialization feature, in the form of byte-compiling to a file
and then reading that file. I haven't tested it, but if true, this is great
news, and I'm surprised it isn't mentioned as such (that I can tell) in NEWS.
How about adding explicit Lisp functions that capture this feature, as such?
IOW, instead of a few people knowing about this as a nice hack that happens to
work with the (recent) byte-compiler, how about defining `(de)serialize'
functions that make use of this feature, and advertize those functions?
If the functions were standalone (even if they borrowed some of the
byte-compiler code), then they could perhaps even be used in older Emacs
versions.
IOW, how about breaking this part of the byte-compiler code out, as separate
functions (which would also be used by the byte-compiler, of course). (Dunno if
this last part makes sense - maybe it's the whole byte-compiler that would be
needed.)
Anyway, it sounds to me like Thierry's discovery, if general, could be exploited
and made more directly noticeable/usable by users.
And at the very least, how about documenting this existing feature, as Thierry
requested?
next prev parent reply other threads:[~2009-10-07 16:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-29 8:50 persistent lisp objects Thierry Volpiatto
2009-10-01 8:14 ` Thierry Volpiatto
2009-10-07 16:53 ` Drew Adams [this message]
2009-10-07 22:03 ` Stefan Monnier
2009-10-07 22:10 ` Drew Adams
2009-10-08 5:11 ` Stephen J. Turnbull
2009-10-25 10:33 ` Thierry Volpiatto
2009-10-25 10:26 ` Thierry Volpiatto
2009-10-25 15:05 ` Stefan Monnier
2009-10-27 20:18 ` Ted Zlatanov
-- strict thread matches above, loose matches on Subject: below --
2009-10-02 20:55 MON KEY
2009-10-03 3:36 ` Stefan Monnier
2009-10-03 19:19 ` MON KEY
2009-10-03 20:13 ` Richard Stallman
2009-10-04 0:15 ` MON KEY
2009-10-04 21:03 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AFBA5C7BFF10496DB227C398021D95E4@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=thierry.volpiatto@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.