[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Kickstarter for Emacs
From: |
Stefan Monnier |
Subject: |
Re: Kickstarter for Emacs |
Date: |
Fri, 20 Apr 2012 22:46:28 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
>>> I'd happily contribute money to the development of the concurrency
>>> branch, the xembed work, or immutable strings/data structures.
>> Curious: what do you expect "immutable strings/data structures"
>> to provide?
> I have been thinking about implementing egal from Henry Baker's famous
> equality paper[1] in Emacs Lisp, but it is not very practical unless
> you can make certain guarantees of immutability.
My own local hacked version of Emacs has aset signal an error when
called on a string (and subst-char-in-string also signals as error when
called with `inplace'). I rarely bump into problems because of
this change.
But note that strings include text-properties, and I still allow those
to be changed. Making them immutable would break more code (since
until `propertize' was added, all the text-properties were manipulated
by side-effects).
Now, `equal' does not pay attention to strings's text-properties, so
maybe my limited immutability would be good enough for `egal' (which is
really what we call `eql' if you think about it).
For `cons' cells, side-effects are used much too often in Elisp,
I wouldn't hold much hope for making them immutable. So immutable cells
would have to be a new type (and car/cdr could be made to work with
them as well) with a new constructor (maybe named `icons' or `pair').
The problem still remains: what would be the benefit?
Stefan
- Re: Kickstarter for Emacs, (continued)
- Re: Kickstarter for Emacs, Tassilo Horn, 2012/04/18
- Re: Kickstarter for Emacs, Tom, 2012/04/18
- Re: Kickstarter for Emacs, Nikodemus Siivola, 2012/04/18
- Re: Kickstarter for Emacs, Tom, 2012/04/18
- Re: Kickstarter for Emacs, Phil Hagelberg, 2012/04/18
- Re: Kickstarter for Emacs, Stefan Monnier, 2012/04/19
- Re: Kickstarter for Emacs, Phil Hagelberg, 2012/04/20
- Re: Kickstarter for Emacs,
Stefan Monnier <=
- Re: Kickstarter for Emacs, Phil Hagelberg, 2012/04/23
- Guile based Elisp faster? (was Re: Kickstarter for Emacs), Thorsten, 2012/04/23
- Re: Guile based Elisp faster?, Andy Wingo, 2012/04/24
- Re: Guile based Elisp faster?, Thorsten Jolitz, 2012/04/24
- Re: Kickstarter for Emacs, Stefan Monnier, 2012/04/23
- Re: Kickstarter for Emacs, Phil Hagelberg, 2012/04/25
- Re: Kickstarter for Emacs, Richard Stallman, 2012/04/18
- [PROPOSAL] GSoC-like campaingn for FSF/GNU projects, Jambunathan K, 2012/04/19
- Re: [PROPOSAL] GSoC-like campaingn for FSF/GNU projects, Bastien, 2012/04/19
- Re: [PROPOSAL] GSoC-like campaingn for FSF/GNU projects, Richard Stallman, 2012/04/19