caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anthony Tavener <anthony.tavener@gmail.com>
To: Francois Berenger <berenger@riken.jp>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Stability of order between polymorphic variants
Date: Wed, 4 Sep 2013 20:31:57 -0600	[thread overview]
Message-ID: <CAN=ouMSuJFPnx71v0O0T2uHmB9rt=LJGqGZXJdAqPcJSAa4MOw@mail.gmail.com> (raw)
In-Reply-To: <5227E9FA.1020301@riken.jp>

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

On Wed, Sep 4, 2013 at 8:18 PM, Francois Berenger <berenger@riken.jp> wrote:

> On 09/05/2013 11:11 AM, Anthony Tavener wrote:
>
>> Addendum: On a 32b arch, those names will wrap.
>>
>
> Why not write a to_int for your type
> and then a specialized comparator using it?
>

A sane suggestion. :) Daniel might not want to write an explicit mapping to
int if these
weight types grow in number?

And I need to correct my addendum. I now realize the multiplier of 223
would still fit a
4-character name in 30bits, given that the first char must be a capital
letter. So I'm
guessing you're already aware of all this, Daniel, and just wanted to know
if there is
likelihood of the calculation changing. That I know nothing about. Sorry
for the noise!

[-- Attachment #2: Type: text/html, Size: 1323 bytes --]

  reply	other threads:[~2013-09-05  2:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05  0:17 Daniel Bünzli
2013-09-05  2:06 ` Anthony Tavener
2013-09-05  2:11   ` Anthony Tavener
2013-09-05  2:18     ` Francois Berenger
2013-09-05  2:31       ` Anthony Tavener [this message]
2013-09-05  7:47         ` Stéphane Glondu
2013-09-05  8:24 ` Jacques Garrigue
2013-09-05  8:39   ` Mark Shinwell
2013-09-05  9:26 ` Jeremy Yallop
2013-09-05 14:46   ` Goswin von Brederlow

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='CAN=ouMSuJFPnx71v0O0T2uHmB9rt=LJGqGZXJdAqPcJSAa4MOw@mail.gmail.com' \
    --to=anthony.tavener@gmail.com \
    --cc=berenger@riken.jp \
    --cc=caml-list@inria.fr \
    /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.
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 NNTP newsgroup(s).