From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: ocaml-core@googlegroups.com, Alain Frisch <alain@frisch.fr>,
Jeremie Dimino <jdimino@janestreet.com>,
caml-list@inria.fr
Subject: Re: [Caml-list] [ANN] Core Suite 109.11.00 released + ocaml_plugin
Date: Fri, 1 Mar 2013 16:41:51 +0100 [thread overview]
Message-ID: <66F3A9513D1E49B8AB50EC9005C7C6BD@erratique.ch> (raw)
In-Reply-To: <A8BD8AAF-DB07-4ED7-88E7-5B78588342C5@recoil.org>
Le vendredi, 1 mars 2013 à 16:15, Anil Madhavapeddy a écrit :
> Objects aren't a problem in js_of_ocaml, but the general principle
> of staying away from them in a core library seems to what everyone
> wants anyway.
I agree but there's one exception, the thread-safe generation of program uid. I used this more than once to implement the keys of heterogenous dictionaries (à la http://mlton.org/PropertyList). And it's also used in cmdliner here [1].
I would really like to have that in Sys to avoid linking against Oo. There's a way to do it yourself but it does rely on implementation details of the runtime system, see discussion here [2]. As such for now I prefered to use the Oo.id trick.
Best,
Daniel
[1] https://github.com/dbuenzli/cmdliner/blob/master/src/cmdliner.ml#L156
[2] http://caml.inria.fr/mantis/view.php?id=5436#c6549
prev parent reply other threads:[~2013-03-01 15:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-28 16:37 Jeremie Dimino
2013-03-01 8:45 ` Alain Frisch
2013-03-01 11:22 ` Yaron Minsky
2013-03-01 15:15 ` Anil Madhavapeddy
2013-03-01 15:41 ` 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=66F3A9513D1E49B8AB50EC9005C7C6BD@erratique.ch \
--to=daniel.buenzli@erratique.ch \
--cc=alain@frisch.fr \
--cc=anil@recoil.org \
--cc=caml-list@inria.fr \
--cc=jdimino@janestreet.com \
--cc=ocaml-core@googlegroups.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).