caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: Yaron Minsky <yminsky@janestreet.com>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] [ANN] Hmap 0.8.0
Date: Tue, 8 Mar 2016 15:24:10 +0100	[thread overview]
Message-ID: <D7C79914D7A246CB9C42885C5FD02DC1@erratique.ch> (raw)
In-Reply-To: <CACLX4jTiLGbCTeMwT0gnms4dx7mVvXNtVr1-kMYSDon3MhU+pg@mail.gmail.com>

Le mardi, 8 mars 2016 à 13:44, Yaron Minsky a écrit :
> I'm curious if you've looked at Core_kernel's Univ_map?
No, I just abstracted code I've been c&p around in a lot of projects.

> Our type witnesses are a little interesting in that you can derive new witnesses from old ones (e.g., if a equals a', and b equals b', then a * b equals a' * b'). That said, I'm not sure that this is relevant for the heterogenous map use case.
The type identifiers are an implementation detail. I used to implement this using a universal type, see e.g. [1], but the type identifier implementation allocates less and should be more efficient (but the latter I didn't measure).  

Best,  

Daniel

[1] http://alan.petitepomme.net/cwn/2010.02.09.html#1

      reply	other threads:[~2016-03-08 14:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-08  9:42 Daniel Bünzli
2016-03-08 12:44 ` Yaron Minsky
2016-03-08 14:24   ` Daniel Bünzli [this message]

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=D7C79914D7A246CB9C42885C5FD02DC1@erratique.ch \
    --to=daniel.buenzli@erratique.ch \
    --cc=caml-list@inria.fr \
    --cc=yminsky@janestreet.com \
    /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).