unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Pogonyshev <pogonyshev@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: expose XHASH [patch]
Date: Fri, 8 Apr 2016 18:08:41 +0200	[thread overview]
Message-ID: <CAG7Bpaqk1CjM_qM-q1xPaNPaGNvXf5h7bQ_CPf-8XhH_h6fB-g@mail.gmail.com> (raw)
In-Reply-To: <CAG7BpaoG74fxFb5JJQTfcasPBVacPq_7P1xUxNt=tqy7Zvcdcw@mail.gmail.com>

Ping about the patch. I have no write access to the repository, so I
cannot install it myself.

Also, would be nice if someone installed maphash documentation patch.

Paul

On 2 April 2016 at 13:52, Paul Pogonyshev <pogonyshev@gmail.com> wrote:
> Second patch iteration, taking into account all comments by Paul Eggert.
>
> Paul
>
>
>
>
> * src/fns.c (Fsxhash_eq, Fsxhash_eql): New functions.
>
> * doc/lispref/hash.texi (Defining Hash): Document 'sxhash-eq' and 'sxhash-eql'.
>
> * etc/NEWS: Mention 'sxhash-eq' and 'sxhash-eql'.
>
> On 1 April 2016 at 11:44, Paul Pogonyshev <pogonyshev@gmail.com> wrote:
>> Paul Eggert wrote:
>>> The documentation for the new function should be next to the documentation for sxhash.
>>
>> I just skipped all the examples related to 'sxhash'. But I don't mind.
>>
>>> Shouldn't we expose hashfn_eq, not XHASH? After all, (make-hash-table :test 'eq ...) uses hashfn_eq, not XHASH.
>>
>> Probably you are right. I don't know the internal details well enough
>> to comment on this.
>>
>>> Should we also expose hashfn_eql, which is what make-hash-table uses by default? Or is that a waste of time since hashfn_eql is the default?
>>
>> I'd say expose it too, at least for the cases of composite hashing as
>> in my example.
>>
>>> Not sure I like the name xhash. Maybe sxhash-eq instead? That would let us use the name sxhash-eql for hashfn_eql.
>>
>> I tried to keep familiar names (at least for those who work on C
>> code), but if we change that to 'hashfn_eq' and additionally expose
>> something for 'eql', I guess your idea is better.
>>
>> I'll wait if more comments on these points appear before creating next
>> patch iteration.
>>
>> Paul



  reply	other threads:[~2016-04-08 16:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-31 19:29 expose XHASH [patch] Paul Pogonyshev
2016-03-31 21:52 ` Stefan Monnier
2016-03-31 22:43 ` Paul Eggert
2016-04-01  9:44   ` Paul Pogonyshev
2016-04-02 11:52     ` Paul Pogonyshev
2016-04-08 16:08       ` Paul Pogonyshev [this message]
2016-04-08 18:10         ` Stefan Monnier
2016-04-08 18:37           ` Paul Pogonyshev
2016-04-08 18:44             ` Stefan Monnier
2016-04-08 19:24               ` Paul Pogonyshev
2016-04-08 20:51                 ` Stefan Monnier
2016-04-08 22:37                 ` Paul Eggert

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG7Bpaqk1CjM_qM-q1xPaNPaGNvXf5h7bQ_CPf-8XhH_h6fB-g@mail.gmail.com \
    --to=pogonyshev@gmail.com \
    --cc=eggert@cs.ucla.edu \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).