From: Christophe TROESTLER <Christophe.Troestler@umh.ac.be>
To: Xavier.Leroy@inria.fr
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] How to write efficient threaded programs on OCaml
Date: Wed, 08 Feb 2006 23:13:35 +0100 (CET) [thread overview]
Message-ID: <20060208.231335.161803011.Christophe.Troestler@umh.ac.be> (raw)
In-Reply-To: <43EA0B8D.6090906@inria.fr>
On Wed, 08 Feb 2006, Xavier Leroy <Xavier.Leroy@inria.fr> wrote:
>
> Could you please tell us where to find the OCaml code you're
> discussing? I haven't seen it anywhere on the Web page you posted.
Sorry. You get the code by clicking on the language name:
http://shootout.alioth.debian.org/gp4/benchmark.php?test=chameneos&lang=all
The task description is at the bottom of the page.
The one similar to MLton is:
http://shootout.alioth.debian.org/gp4/benchmark.php?test=chameneos&lang=ocaml&id=0
The one similar to C code:
http://shootout.alioth.debian.org/gp4/benchmark.php?test=chameneos&lang=ocaml&id=3
> You're really testing threading libraries, not language implementations.
Point taken. After a more careful investigation, MLton does not use
OS threads so it is not really a valid comparison. The GCC one (which
uses pthreads and semaphores) still seems to hold -- maybe I
overlooked something.
> My feelings at this point (without having seen the code nor the task
> spec) is that you don't want to use threads at all, rather something
> like CPS.
Possibly. I will investigate what I can do in that direction
(pointers are welcome :).
Thanks,
ChriS
next prev parent reply other threads:[~2006-02-08 22:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-07 23:15 Christophe TROESTLER
2006-02-08 8:21 ` [Caml-list] " Erik de Castro Lopo
2006-02-08 14:38 ` Christophe TROESTLER
2006-02-08 15:17 ` Xavier Leroy
2006-02-08 16:58 ` Matthieu Dubuget
2006-02-08 22:13 ` Christophe TROESTLER [this message]
2006-02-09 17:39 ` Alessandro Baretta
2006-02-09 22:26 ` Matthew Hannigan
2006-02-13 10:25 ` Florian Weimer
2006-02-16 18:11 ` Christophe TROESTLER
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=20060208.231335.161803011.Christophe.Troestler@umh.ac.be \
--to=christophe.troestler@umh.ac.be \
--cc=Xavier.Leroy@inria.fr \
--cc=caml-list@yquem.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