From: no-spam@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: bool-vector implementation in the Emacs core
Date: 27 Jan 2004 02:32:57 +0100 [thread overview]
Message-ID: <m3smi2b2gm.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1AlCKM-0005ba-Tn@fencepost.gnu.org>
Richard Stallman <rms@gnu.org> writes:
> I am not sure this is useful in general and worth adding to the C code.
Well, we already have support for (dense) bool-vectors of fixed length
in the core, so his proposal to extend that to support sparse (unlimited) bool
vectors sounds sensible to me.
However I think that--contrary to the dense bool vectors--the
inversion lists can just as well be implemented in Lisp, so I agree
that it is not worth adding to the C code just to extend the aref/aset
API to cover sparse bool-vectors.
Actually, looking at the code of aref and aset, I think it may very well
make sense to keep them separate.
BTW, the code I posted a few days ago had a bug in make-bool-vector.
Here is a fixed version, renamed not to collide with the built-in
make-bool-vector:
(defun make-sparse-bool-vector ()
"Create an empty bool vector."
(cons -1 nil))
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2004-01-27 1:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-21 16:52 bool-vector implementation in the Emacs core Ted Zlatanov
2004-01-21 17:06 ` Paul Jarc
2004-01-21 18:35 ` Ted Zlatanov
2004-01-23 0:16 ` Kim F. Storm
2004-01-23 0:37 ` Kenichi Handa
2004-01-23 2:19 ` Stefan Monnier
2004-01-23 20:26 ` Ted Zlatanov
2004-01-24 21:40 ` Richard Stallman
2004-01-25 2:59 ` Ted Zlatanov
2004-01-26 19:23 ` Richard Stallman
2004-01-27 1:32 ` Kim F. Storm [this message]
2004-01-23 20:18 ` Ted Zlatanov
2004-01-24 2:11 ` Kim F. Storm
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=m3smi2b2gm.fsf@kfs-l.imdomain.dk \
--to=no-spam@cua.dk \
--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.