Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
How to write efficient threaded programs on OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-02-08 (22:13)
From: Christophe TROESTLER <Christophe.Troestler@u...>
Subject: Re: [Caml-list] How to write efficient threaded programs on OCaml
On Wed, 08 Feb 2006, Xavier Leroy <> 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:
The task description is at the bottom of the page.

The one similar to MLton is:

The one similar to C code:

> 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 :).