[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches |
Date: |
Wed, 22 Aug 2018 16:45:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> As for `eq' and `eql', what I thought Stefan proposed was to keep a
> hash value in struct Lisp_Bignum, which is calculated lazily the first
> time the bignum is compared to another bignum with `eq', at which
> point we might as well point out to the user that portable code would
> require `eql'. That sounds to me like it would be much cheaper than a
> hash table, but if there are objections to it we can still implement
> it without guaranteeing it for the future in the documentation.
No, that's definitely not what I was proposing. I was proposing an
actual hash-table. What you're suggesting is problematic in that it
assumes `eq` will do something special for bignums, which implies `eq`
is not just `==` in C.
Stefan
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches, Pip Cet, 2018/08/22
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches, Ken Brown, 2018/08/22
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches,
Stefan Monnier <=
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches, Pip Cet, 2018/08/23
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches, Stefan Monnier, 2018/08/23
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches, Pip Cet, 2018/08/24
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches, Paul Eggert, 2018/08/24
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches, Pip Cet, 2018/08/25
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches, Stefan Monnier, 2018/08/25
- Re: [Emacs-diffs] master f18af6c: Audit use of lsh and fix glitches, Paul Eggert, 2018/08/25
- hash-consing bignums and eq==eql, Stefan Monnier, 2018/08/28
- Re: hash-consing bignums and eq==eql, Pip Cet, 2018/08/29
- Re: hash-consing bignums and eq==eql, Stefan Monnier, 2018/08/29