<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/69ecf29a7a4b470c82efbd9670ae271b"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-08T22:13:44"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml"
  prev="2006/02/824d8233647c2ff564bcd55a138f5a35"
  next="2006/02/7bdea4caa181776d4c2dc27c6d233e19"
  prev-in-thread="2006/02/13560aa4b6441de8642a3cc923b5bdb2"
  next-in-thread="2006/02/58e39975dccbb2d8104ae347f9080a44"
  prev-thread="2006/02/e8e061a36eebffc17c3ac923c74535fc"
  next-thread="2006/02/38106d71003e52b2286dfdcb5936de4f"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/2858f1e4532daae90d5b0762e3fff3cd"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-07T23:15:58"
  subject="How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/8d4fd8575d33db86ab919dcb9d92ceb0"
  from="Erik de Castro Lopo &lt;ocaml-erikd@m...&gt;"
  author="Erik de Castro Lopo"
  date="2006-02-08T08:21:25"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/ba69e3f637900ed5b9a81ab36432302a"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-08T14:38:22"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/dab51431550d81c48172d697ed6abd7f"
  from="Xavier Leroy &lt;Xavier.Leroy@i...&gt;"
  author="Xavier Leroy"
  date="2006-02-08T15:17:40"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/13560aa4b6441de8642a3cc923b5bdb2"
  from="Matthieu Dubuget &lt;matthieu.dubuget@l...&gt;"
  author="Matthieu Dubuget"
  date="2006-02-08T16:55:15"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
</msg>
<msg 
  url="2006/02/69ecf29a7a4b470c82efbd9670ae271b"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-08T22:13:44"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/58e39975dccbb2d8104ae347f9080a44"
  from="Alessandro Baretta &lt;a.baretta@b...&gt;"
  author="Alessandro Baretta"
  date="2006-02-09T17:49:04"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/778886ccf985c5e4118a759b4642a6fd"
  from="Matthew Hannigan &lt;mlh@z...&gt;"
  author="Matthew Hannigan"
  date="2006-02-09T23:24:32"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2006/02/f6d6dd723dfe60f938c19fe88ed24c99"
  from="Florian Weimer &lt;fw@d...&gt;"
  author="Florian Weimer"
  date="2006-02-13T10:28:49"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
<msg 
  url="2006/02/4cc1ecf5ea45bb6b9d9360127dbcac9e"
  from="Christophe TROESTLER &lt;Christophe.Troestler@u...&gt;"
  author="Christophe TROESTLER"
  date="2006-02-16T18:11:17"
  subject="Re: [Caml-list] How to write efficient threaded programs on OCaml">
</msg>
</msg>
</msg>
</thread>

<contents>
On Wed, 08 Feb 2006, Xavier Leroy &lt;Xavier.Leroy@inria.fr&gt; wrote:
&gt; 
&gt; Could you please tell us where to find the OCaml code you're
&gt; 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&amp;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&amp;lang=ocaml&amp;id=0

The one similar to C code:
http://shootout.alioth.debian.org/gp4/benchmark.php?test=chameneos&amp;lang=ocaml&amp;id=3

&gt; 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.

&gt; My feelings at this point (without having seen the code nor the task
&gt; spec) is that you don't want to use threads at all, rather something
&gt; like CPS.

Possibly.  I will investigate what I can do in that direction
(pointers are welcome :).

Thanks,
ChriS

</contents>

</message>

