From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: persistent lisp objects
Date: Sun, 25 Oct 2009 11:26:50 +0100 [thread overview]
Message-ID: <87hbtn6a6t.fsf@tux.homenetwork> (raw)
In-Reply-To: jwvd44yvp4w.fsf-monnier+emacs@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I have no idea what he thinks as novel, but such functions have been
> available for ages. Called print and read.
There is nothing new.
I just show a feature of the CL version of `eval-when-compile'.
Thus since we have a new representation of hash-table in emacs-cvs, this
allow to save hash-tables to a compiled file.
But other lisp objects (e.g lists) can be saved in the same way in
inferior emacs versions.
I just provide a basic function to demonstrate this feature.(see
precedent posts)
The emacs manual say that about eval-when-compile:
,----
| -- Special Form: eval-when-compile forms...
| The FORMS are evaluated at compile-time; at execution time, this
| form acts like a quoted constant of the resulting value. Used at
| top-level, `eval-when-compile' is just like `eval-when (compile
| eval)'. In other contexts, `eval-when-compile' allows code to be
| evaluated once at compile-time for efficiency or other reasons.
|
| This form is similar to the `#.' syntax of true Common Lisp.
`----
Please read that about the `#.' feature of CL:
http://www.cs.cmu.edu/Groups/AI/html/faqs/lang/lisp/part5/faq-doc-5.html
That is surely not the best way to serialize objects, but that is better
than nothing until somebody write something to save hash-table, lists,
etc... in a data base.
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
next prev parent reply other threads:[~2009-10-25 10:26 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
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 [this message]
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=87hbtn6a6t.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--cc=emacs-devel@gnu.org \
/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.