<?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="2002/07/f6328280394c716e75cbf3c329c29266"
  from="William D. Neumann &lt;wneumann@c...&gt;"
  author="William D. Neumann"
  date="2002-07-10T20:35:07"
  subject="[Caml-list] Re: Sieve of Eratosthenes Performance: various languages (Re: [Caml-list] productivity improvement)"
  prev="2002/07/c4a8748a39ae0126371591198f3cad7f"
  next="2002/07/dc97940a12634dbb2f7b445f2568a34a"
  prev-in-thread="2002/07/b0ad76e198460fbb28b7a7b0fc66bb84"
  next-in-thread="2002/07/dc97940a12634dbb2f7b445f2568a34a"
  prev-thread="2002/07/d84193189834bb0b419bebbe8b34fe34"
  next-thread="2002/07/8b94f1e91a98058c74260c4ff5bb58fd"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] productivity improvement">
<msg 
  url="2002/07/41955c135ff961fc69a8edb83b7357d5"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-08T19:52:40"
  subject="[Caml-list] productivity improvement">
<msg 
  url="2002/07/10d2b9f2947903b720d0c0dcc39193fa"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-09T04:42:57"
  subject="[Caml-list] Universal Serializer (was: productivity improvement)">
<msg 
  url="2002/07/7ae49431519b712c99113a031db822d2"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2002-07-09T07:57:00"
  subject="Re: [Caml-list] Universal Serializer (was: productivity improvement)">
</msg>
<msg 
  url="2002/07/8e28b973560f9213a16bcaeb75b6d09c"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2002-07-09T07:59:58"
  subject="Re: [Caml-list] Universal Serializer (was: productivity improvement)">
<msg 
  url="2002/07/11b1a5f9fa6e81a32f1a80d6832d4514"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-10T16:06:31"
  subject="Re: [Caml-list] Universal Serializer (was: productivity improvement)">
<msg 
  url="2002/07/b880db58d08ebf9cb095c180792a116d"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-07-11T17:02:43"
  subject="Re: [Caml-list] Universal Serializer (was: productivity improvement)">
<msg 
  url="2002/07/31e01dacd328d86e7055d1f56758a78b"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2002-07-11T08:14:31"
  subject="Re: [Caml-list] Universal Serializer (was: productivity improvement)">
</msg>
<msg 
  url="2002/07/fa31c3e21f30d1d49387b8135813c2c3"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-12T12:41:43"
  subject="Re: [Caml-list] Universal Serializer (was: productivity improvement)">
<msg 
  url="2002/07/87d7f80c3899fa405e1be1603555fb02"
  from="Berke Durak &lt;berke@a...&gt;"
  author="Berke Durak"
  date="2002-07-14T12:27:09"
  subject="[Caml-list] Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
<msg 
  url="2002/07/f44bf8d23d897cca45f7aefaf87e70a7"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-14T13:17:06"
  subject="Re: [Caml-list] Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
<msg 
  url="2002/07/dcd284c79534a353c36303b9cc302afe"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2002-07-15T08:23:25"
  subject="Re: [Caml-list] Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
</msg>
<msg 
  url="2002/07/9a687ad070011724873fe56086b999a8"
  from="Noel Welsh &lt;noelwelsh@y...&gt;"
  author="Noel Welsh"
  date="2002-07-15T19:32:20"
  subject="Re: [Caml-list] Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
<msg 
  url="2002/07/895cd63e4a2de517e299e871590aa4ee"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-15T21:22:23"
  subject="Re: [Caml-list] Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
<msg 
  url="2002/07/2566e8fca11985284fc23a3afc3f86e1"
  from="Florian Hars &lt;florian@h...&gt;"
  author="Florian Hars"
  date="2002-07-16T06:44:01"
  subject="Re: [Caml-list] Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
</msg>
<msg 
  url="2002/07/cc062fa54b78609497f3080c5331c9a1"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-07-20T13:46:05"
  subject="Re: [Caml-list] Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/07/7d6af3026c1d83eb42a91534597223f1"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-16T20:22:43"
  subject="[Caml-list] Re: Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
<msg 
  url="2002/07/6bcc4253e5a87e6a40f9683a9fea754d"
  from="Johan Baltié &lt;johan.baltie@w...&gt;"
  author="Johan Baltié"
  date="2002-07-16T20:36:22"
  subject="Re: [Caml-list] Re: Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
<msg 
  url="2002/07/11864c2d92abb2e8748e428b51845110"
  from="Noel Welsh &lt;noelwelsh@y...&gt;"
  author="Noel Welsh"
  date="2002-07-17T08:25:28"
  subject="Re: [Caml-list] Re: Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
</msg>
<msg 
  url="2002/07/9a963490c21609d7d83588ce4832767b"
  from="hao-yang_wang@f..."
  author="hao-yang_wang@f..."
  date="2002-07-20T14:33:40"
  subject="Re: [Caml-list] Re: Statically detecting arrays bound exceptions ?? (was: Universal Serializer)">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/07/0da4aa869a6e04848c53aefa92f12971"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-07-12T01:47:33"
  subject="Re: [Caml-list] Universal Serializer (was: productivity improvement)">
<msg 
  url="2002/07/b478d48348e94b48aec35cdd804b9018"
  from="Stefano Zacchiroli &lt;zack@c...&gt;"
  author="Stefano Zacchiroli"
  date="2002-07-12T08:10:58"
  subject="[Caml-list] OCaml QT bindings">
<msg 
  url="2002/07/ec941d45fbcb12af8cd5c4ab9db95b56"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-07-12T17:36:37"
  subject="Re: [Caml-list] OCaml QT bindings">
</msg>
</msg>
</msg>
<msg 
  url="2002/07/02e5015ec568f3999975b1e92d08b1c3"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-12T10:35:43"
  subject="[Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/f8694f9b51a525f39634a46c321db621"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-07-12T11:23:09"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/6e447fc7b0dbc5bbf4d705e36ff6a605"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-12T11:33:19"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/014cd5241d2c2dda3f462a54b81e29ba"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-07-12T11:43:16"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/90df793bdad16fc73f4187a70dcd27f5"
  from="Pierre Weis &lt;pierre.weis@i...&gt;"
  author="Pierre Weis"
  date="2002-07-12T12:59:10"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/126953c02dfc22b41397d85d97d9f4b5"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-07-12T16:42:22"
  subject="Re: [Caml-list] Re: productivity improvement">
</msg>
</msg>
<msg 
  url="2002/07/c1144d4f15886a836bcd43b36c6a888b"
  from="Dave Berry &lt;daveb@t...&gt;"
  author="Dave Berry"
  date="2002-07-14T20:47:27"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/63a8c863c675db0bd20af57b394e48da"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-07-14T22:18:57"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/873b748069a397a4d4473a9c160fe422"
  from="Alwyn Goodloe &lt;agoodloe@g...&gt;"
  author="Alwyn Goodloe"
  date="2002-07-15T16:43:50"
  subject="Re: [Caml-list] Re: productivity improvement">
</msg>
<msg 
  url="2002/07/a1ca4da67b523a553308e8fc7edcb776"
  from="Dave Berry &lt;daveb@t...&gt;"
  author="Dave Berry"
  date="2002-07-16T20:11:28"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/30f01411c409ed781c4bc76264d690f4"
  from="Eric Merritt &lt;cyberlync@y...&gt;"
  author="Eric Merritt"
  date="2002-07-17T03:21:43"
  subject="Re: [Caml-list] Re: productivity improvement">
</msg>
</msg>
</msg>
<msg 
  url="2002/07/0b3b47e0634faa28e483cc3e08503429"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-15T09:32:46"
  subject="Re: [Caml-list] Re: productivity improvement">
</msg>
<msg 
  url="2002/10/0e2dbdcb5f459459c330b41b94d3974f"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-10-15T10:34:50"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/10/4bdc289a83c4787bae3868bc7fd6f7df"
  from="Dave Berry &lt;daveb@t...&gt;"
  author="Dave Berry"
  date="2002-10-17T21:23:44"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/10/dd173c0860095e4a41141d1ffe23c0d6"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-10-18T08:30:49"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/10/9f3f4e66354656645b21ce815c8fbd34"
  from="Dave Berry &lt;daveb@t...&gt;"
  author="Dave Berry"
  date="2002-10-20T12:52:05"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2003/05/7a0888c90e62be9a2eb04e676e66714b"
  from="Eray Ozkural &lt;exa@k...&gt;"
  author="Eray Ozkural"
  date="2003-05-10T20:42:48"
  subject="Re: [Caml-list] Re: productivity improvement">
</msg>
<msg 
  url="2002/10/4fd479c72c4a4db3467181e89da6852a"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-10-21T06:45:35"
  subject="Re: [Caml-list] Re: productivity improvement">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/07/22354a5138f33986acc03da2f7a587ee"
  from="Noel Welsh &lt;noelwelsh@y...&gt;"
  author="Noel Welsh"
  date="2002-07-12T11:43:54"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/11e083d8461d96e4d4f626796f98a696"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-07-12T12:10:57"
  subject="Re: [Caml-list] Re: productivity improvement">
</msg>
</msg>
</msg>
<msg 
  url="2002/07/a68a163692614058fa86e820512e0aa4"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-12T13:44:34"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/dc31983ea9e3dc0d8ba9ec3871f0ad01"
  from="Alan Schmitt &lt;alan.schmitt@i...&gt;"
  author="Alan Schmitt"
  date="2002-07-12T16:20:23"
  subject="Re: [Caml-list] Re: productivity improvement">
</msg>
<msg 
  url="2002/07/a5f54befb8b5f019ee8568f9515c57f0"
  from="John Carr &lt;jfc@M...&gt;"
  author="John Carr"
  date="2002-07-12T20:44:09"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/07/16a52c3939322f56dcef5d72389a2bc0"
  from="Pierre Weis &lt;pierre.weis@i...&gt;"
  author="Pierre Weis"
  date="2002-07-13T21:19:44"
  subject="Re: [Caml-list] Re: productivity improvementu">
</msg>
</msg>
<msg 
  url="2002/07/2ac9d58aa16c8368308e1957e6724b77"
  from="Brian Smith &lt;brian-l-smith@u...&gt;"
  author="Brian Smith"
  date="2002-07-12T21:24:13"
  subject="Re: [Caml-list] Re: productivity improvement">
</msg>
<msg 
  url="2002/10/a4db029aff874e3bc8e015eecfcf9b18"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-10-15T11:00:00"
  subject="Re: [Caml-list] Re: productivity improvement">
<msg 
  url="2002/10/92dc621fd768c9f373ee87f16084858f"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-10-15T11:39:40"
  subject="Re: [Caml-list] eproductivity improvement">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/07/bbea67f660adb16d35c333b062290831"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-07-09T07:53:22"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/07/4a0778124c02166f564ad9d80365a214"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-10T15:50:22"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/07/8e7005490e1561b0df593379f2c9d508"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-10T18:50:17"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/07/ceaa555e5debf47c6247ec3f9cc78892"
  from="Jun P.FURUSE &lt;Jun.Furuse@i...&gt;"
  author="Jun P.FURUSE"
  date="2002-07-10T19:09:04"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/07/a21a051c2bda69072eb264609e3ff056"
  from="Pierre Weis &lt;pierre.weis@i...&gt;"
  author="Pierre Weis"
  date="2002-07-11T23:45:40"
  subject="Re: [Caml-list] productivity improvement">
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/07/086268fbbe8e02b0a0ba309f45dfef2d"
  from="Basile STARYNKEVITCH &lt;basile.starynkevitch@c...&gt;"
  author="Basile STARYNKEVITCH"
  date="2002-07-09T12:46:03"
  subject="[Caml-list] productivity improvement">
<msg 
  url="2002/07/57f457b1527d90274fc9e026a3aa0711"
  from="Shannon --jj Behrens &lt;jjinux@y...&gt;"
  author="Shannon --jj Behrens"
  date="2002-07-09T18:20:26"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/07/b1d76aaf4dbcd88832968eca5998a85b"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-09T19:15:37"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/07/892807020cb1f5aa502f745413e9a8b7"
  from="Shannon --jj Behrens &lt;jjinux@y...&gt;"
  author="Shannon --jj Behrens"
  date="2002-07-09T20:31:24"
  subject="Re: [Caml-list] productivity improvement">
</msg>
</msg>
<msg 
  url="2002/07/d67469340433a2b4d210619b31e43cef"
  from="sebastien FURIC &lt;sebastien.furic@t...&gt;"
  author="sebastien FURIC"
  date="2002-07-10T10:17:25"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/07/aeb5c6d3824a3cc18c25593c803c0248"
  from="Dave Mason &lt;dmason@s...&gt;"
  author="Dave Mason"
  date="2002-07-10T13:07:56"
  subject="Re: [Caml-list] productivity improvement ">
<msg 
  url="2002/07/c60bb6acf298fbf9be8593a5ab57b908"
  from="sebastien FURIC &lt;sebastien.furic@t...&gt;"
  author="sebastien FURIC"
  date="2002-07-10T13:12:38"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/07/a9017dbc397459d42ad7ab5abe874b6d"
  from="nadji@n..."
  author="nadji@n..."
  date="2002-07-10T19:22:51"
  subject="Re: [Caml-list] productivity improvement">
</msg>
</msg>
</msg>
<msg 
  url="2002/07/b0ad76e198460fbb28b7a7b0fc66bb84"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-10T20:14:27"
  subject="Sieve of Eratosthenes Performance: various languages (Re: [Caml-list] productivity improvement)">
<msg 
  url="2002/07/f6328280394c716e75cbf3c329c29266"
  from="William D. Neumann &lt;wneumann@c...&gt;"
  author="William D. Neumann"
  date="2002-07-10T20:35:07"
  subject="[Caml-list] Re: Sieve of Eratosthenes Performance: various languages (Re: [Caml-list] productivity improvement)">
<msg 
  url="2002/07/dc97940a12634dbb2f7b445f2568a34a"
  from="William D. Neumann &lt;wneumann@c...&gt;"
  author="William D. Neumann"
  date="2002-07-10T20:49:17"
  subject="Re: [Caml-list] Re: Sieve of Eratosthenes Performance: various languages (Re: [Caml-list] productivity improvement)">
</msg>
<msg 
  url="2002/07/fbd5d655b496d63df6cee4a769f3c2a0"
  from="Alexander V.Voinov &lt;avv@q...&gt;"
  author="Alexander V.Voinov"
  date="2002-07-10T20:51:31"
  subject="Re: [Caml-list] Re: Sieve of Eratosthenes Performance: various languages">
<msg 
  url="2002/07/db6c75a6becfd0e480fa7eca4da97d06"
  from="William D. Neumann &lt;wneumann@c...&gt;"
  author="William D. Neumann"
  date="2002-07-10T21:16:05"
  subject="Re: [Caml-list] Re: Sieve of Eratosthenes Performance: various languages">
</msg>
</msg>
<msg 
  url="2002/07/cec759fdc2791111e1494ebdb8b43f20"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-11T22:28:56"
  subject="[Caml-list] Array.resize ?">
<msg 
  url="2002/07/0b6774ae5ccce9a1c538d87231639134"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-11T23:00:12"
  subject="Re: [Caml-list] Array.resize ?">
<msg 
  url="2002/07/b6d9ecbc103c33a84bd5e8d8aec09995"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-12T13:01:56"
  subject="Re: [Caml-list] Array.resize ?">
<msg 
  url="2002/07/f0d255e6bc740fc08b762069188bca51"
  from="Shawn Wagner &lt;shawnw@s...&gt;"
  author="Shawn Wagner"
  date="2002-07-12T18:21:27"
  subject="Re: [Caml-list] Array.resize ?">
</msg>
</msg>
</msg>
<msg 
  url="2002/07/d962c94344b3081dcd1305d9409fef6f"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-07-11T23:31:41"
  subject="Re: [Caml-list] Array.resize ?">
</msg>
<msg 
  url="2002/07/feb9ba978351fb6755b0ac839d0b3512"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-12T12:54:54"
  subject="Re: [Caml-list] Array.resize ?">
<msg 
  url="2002/07/7855b27bc335084ddfab207def619738"
  from="Olivier Andrieu &lt;andrieu@i...&gt;"
  author="Olivier Andrieu"
  date="2002-07-12T13:22:52"
  subject="Re: [Caml-list] Array.resize ?">
<msg 
  url="2002/07/fc32eacf2820e4f8b42e0fb963319390"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-12T14:05:48"
  subject="Re: [Caml-list] Array.resize ?">
</msg>
</msg>
<msg 
  url="2002/07/87e514bff5591c52225a6b00874ef8b1"
  from="Brian Rogoff &lt;bpr@a...&gt;"
  author="Brian Rogoff"
  date="2002-07-12T16:09:07"
  subject="Re: [Caml-list] Array.resize ?">
<msg 
  url="2002/10/07237d2a4f854bc19df5a39b815da79c"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-10-19T19:01:31"
  subject="Re: [Caml-list] Array.resize ?">
<msg 
  url="2002/10/83a93700e6a104dfc4c8ad444f4a2967"
  from="Lex Stein &lt;stein@e...&gt;"
  author="Lex Stein"
  date="2002-10-19T22:15:18"
  subject="[Caml-list] debugger losing contact with debuggee process">
<msg 
  url="2002/10/45ef432bc5385c5956f7968cf5201fd4"
  from="Pierre Weis &lt;pierre.weis@i...&gt;"
  author="Pierre Weis"
  date="2002-10-20T10:06:38"
  subject="Re: [Caml-list] debugger losing contact with debuggee process">
</msg>
<msg 
  url="2002/10/dcd8a8c7636a16f08762bc7b6587315b"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2002-10-21T09:11:10"
  subject="Re: [Caml-list] debugger losing contact with debuggee process">
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/10/d0560a3d386b0933451917558471372d"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-10-18T08:35:33"
  subject="Re: [Caml-list] Array.resize ?">
<msg 
  url="2002/10/32d77fae2ac49e1d5b59cd098e26d677"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-10-19T01:50:59"
  subject="Re: [Caml-list] Array.resize ?">
<msg 
  url="2003/05/56f7cec0aa75e52fb30f6924723a5b22"
  from="Eray Ozkural &lt;exa@k...&gt;"
  author="Eray Ozkural"
  date="2003-05-10T20:25:35"
  subject="Re: [Caml-list] Array.resize ?">
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/07/1bcb179aadddedca9812baa7f17d6403"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-07-10T20:49:08"
  subject="Re: Sieve of Eratosthenes Performance: various languages (Re: [Caml-list] productivity improvement)">
<msg 
  url="2002/07/67c3e1b292abd2bfc2e340fb5f8af4d1"
  from="Anton E. Moscal &lt;msk@m...&gt;"
  author="Anton E. Moscal"
  date="2002-07-11T17:03:26"
  subject="Re: Sieve of Eratosthenes Performance: various languages (Re: [Caml-list] productivity improvement)">
</msg>
<msg 
  url="2002/10/2a82f3c7a7152cf40411f0f34e4055fa"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-10-18T08:35:56"
  subject="Re: Sieve of Eratosthenes Performance: various languages (Re: [Caml-list] productivity improvement)">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2002/07/683767de68a46b4da200a6e261d12e89"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-10T15:39:49"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/07/0b03c32f7c8d4d644e111573f3311537"
  from="Nicolas barnier &lt;barnier@r...&gt;"
  author="Nicolas barnier"
  date="2002-07-11T08:57:10"
  subject="Re: [Caml-list] productivity improvement">
</msg>
<msg 
  url="2002/07/b802813d2c7d950957fa291bf3aaf35f"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-12T12:16:49"
  subject="[Caml-list] Is this a bug?">
<msg 
  url="2002/07/be1e817a1135498da08c6b86bb8b587b"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2002-07-12T14:05:11"
  subject="Re: [Caml-list] Is this a bug?">
</msg>
</msg>
<msg 
  url="2002/07/732a42cc8a2fac38a48afc22b2ed4be4"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-07-16T03:34:03"
  subject="Re: [Caml-list] productivity improvement">
<msg 
  url="2002/10/810cd5a8d6ef91878704c983300cf591"
  from="Eray Ozkural &lt;erayo@c...&gt;"
  author="Eray Ozkural"
  date="2002-10-18T08:36:36"
  subject="Re: [Caml-list] productivity improvement">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
Gah!!! You guys are making me nuts!

Not because of this topic (I actually find this somewhat interesting --
even if I don't know why), but because every post on the subject has
ignored the two most basic optimizations that should be done for this
small prime generation:
  Doing trial division only up to the square root of the candidate (and)
  Incrementing your candidates by 2 rather than 1 (2 is the only even
  prime -- don't waste your time on even numbers!)

Seriously, why pull out vector libraries, etc. while leaving these pigs in
your pantry?

For what it's worth, here is my naive 10 minute solution that takes about
0.2 seconds to generate the first 5000 primes on my 500MHz G4 (and no
fair laughing at my poor programming chops!):

(* ********************************** *)

type pState = {primes : int array; 
	       mutable top : int; 
	       mutable cur : int;
	       max : int};;

let print_prime op =
  match op with
      None -&gt; ()
    | Some p -&gt; Printf.printf "%d\n" p;;

let next state = state.cur &lt;- state.cur + 2;;
let update state = 
  begin
    Array.set state.primes state.top state.cur;
    state.top &lt;- state.top + 1;
    next state
  end;;

let is_prime state= 
  let b = (int_of_float (sqrt (float_of_int state.cur))) and
    index = ref 1 and
    prime = ref true in
    while ((state.primes.(!index) &lt;= b) &amp; !prime) do
      if (state.cur mod state.primes.(!index) = 0) 
      then prime := false
      else index := (!index + 1)
    done;
    !prime;;

let rec next_prime state =
  if state.top &gt;= state.max then
    None
  else
    if is_prime state then
      (update state; Some state.primes.(state.top - 1))
    else
      (next state; next_prime state);;

let main () =
  let num_primes = (int_of_string Sys.argv.(1)) in
  let state = {primes = Array.make num_primes 2;
	       top = 1;
	       cur = 3;
	       max = num_primes;} in
  let p = ref (next_prime state) in
    while (!p &lt;&gt; None) do
      print_prime !p;
      p := (next_prime state);
    done;;

main ();;

(* ********************************** *)

William D. "Cranky or something" Neumann

On Wed, 10 Jul 2002, Oleg wrote:

&gt; On Wednesday 10 July 2002 06:02 am, sebastien FURIC wrote:
&gt; 
&gt; &lt;snip&gt;
&gt; 
&gt; &gt; &lt;/caml&gt;
&gt; &gt;
&gt; &gt; real    11m9.021s
&gt; &gt; user    0m0.020s
&gt; &gt; sys     0m0.030s
&gt; &gt;
&gt; &gt;  Sebastien.
&gt; 
&gt; I guess this is an example of when very idiomatic C++ shines:
&gt; 
&gt;     1   #include &lt;iostream&gt;
&gt;     2   #include &lt;vector&gt;
&gt;     3
&gt;     4   typedef std::vector&lt;int&gt; vec;
&gt;     5
&gt;     6   void next_prime_candidate(int c, vec&amp; v) {
&gt;     7       for(int i = 0; i &lt; v.size(); ++i) 
&gt;     8           if(c % v[i] == 0) return;
&gt;     9       v.push_back(c);
&gt;    10   }
&gt;    11
&gt;    12   void print_vec(vec&amp; v) {
&gt;    13       for(int i = 0; i &lt; v.size(); ++i)
&gt;    14           std::cout &lt;&lt; ' ' &lt;&lt; v[i];
&gt;    15   }
&gt;    16
&gt;    17   int main() {
&gt;    18       vec v; v.push_back(2);
&gt;    19       for(int i = 3; v.size() &lt; 10000; ++i)
&gt;    20           next_prime_candidate(i, v);
&gt;    21       print_vec(v);
&gt;    22   }   
&gt; 
&gt; Compiled with g++-3.0 -O2 on my aging AMD K6-2 550 MHz, I get
&gt; 
&gt; real    0m4.632s
&gt; user    0m3.290s
&gt; sys     0m0.260s
&gt; 
&gt; while for Sebastien's findprimes_simple.ml, compiled with ocamlopt, I get
&gt; 
&gt; real    0m43.809s
&gt; user    0m41.590s
&gt; sys     0m0.040s
&gt; 
&gt; C++ version does not get faster if I add v.reserve(10000) in the beginning, 
&gt; so its bottleneck is probably not in memory allocation.
&gt; 
&gt; Perhaps O'Caml version can be made faster: here's my shot at it:
&gt; 
&gt;     1   let next_prime_candidate c v = 
&gt;     2   let _ = try 
&gt;     3   Array.iter (fun x -&gt; if c mod x = 0 then failwith "not a prime") !v;
&gt;     4   v := Array.append !v [| c |];
&gt;     5   with Failure "not a prime" -&gt; () in ();;
&gt;     6
&gt;     7   let print_array v = 
&gt;     8   Array.iter (fun i -&gt; print_char ' '; print_int i) v;;
&gt;     9
&gt;    10   let v = ref [| 2 |] in
&gt;    11   let i = ref 2 in
&gt;    12   let _ =
&gt;    13   while Array.length !v &lt; 10000 do
&gt;    14       i := !i + 1;
&gt;    15       next_prime_candidate !i v
&gt;    16   done in
&gt;    17   print_array !v;;
&gt; 
&gt; Timing:
&gt; 
&gt; real    0m11.645s
&gt; user    0m11.370s
&gt; sys     0m0.010s
&gt; 
&gt; Still 3-4 times slower.  Is it because exceptions are used instead of 
&gt; [non-existent ?] early function return or loop break?
&gt; 
&gt; A version of the last program with Lists instead of Arrays is 7-8 times 
&gt; slower than the Array version.
&gt; 
&gt; Oleg
&gt; -------------------
&gt; To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
&gt; Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
&gt; Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
&gt; 


---

"The magnum opus of rms and his Foundation is called 'GNU', a project to
completely rewrite the propritorially soiled Unix operating system. 
(Apparently, 'GNU' stands for "Gnu's Not Unix", and is proudly held to be
the world's first 'recursive acronym'. Which, of course, proves that rms
didn't get out enough in his youth.) 

	-- Nick Roberts


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

