<?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="2005/05/89c5d0ebb5d4b04ee4930daae8fbfdfe"
  from="Florian Hars &lt;hars@b...&gt;"
  author="Florian Hars"
  date="2005-05-04T06:22:36"
  subject="Re: [Caml-list] Re: Mini ray tracer"
  prev="2005/05/81d5e441fedb0cc10a31a8d898ce6284"
  next="2005/05/ed27a45e7c68868f7f6178d7f035d421"
  prev-in-thread="2005/05/d315d238ef80ffa3e6f6bd7774cd1fbd"
  next-in-thread="2005/05/2e3229b2a6177a2463d57e2fec258450"
  prev-thread="2005/04/0cb1293570b0f1fd9d36e904eeee929e"
  next-thread="2005/04/677f99f4fc250f84c4b36c7594f137a9"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Mini ray tracer">
<msg 
  url="2005/04/d22b1761efb27d7b182cb9eabf245e1c"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-04-28T09:37:52"
  subject="Mini ray tracer">
<msg 
  url="2005/05/2f3324c744b03045d65ca814cfa338e4"
  from="Julian Brown &lt;brown@c...&gt;"
  author="Julian Brown"
  date="2005-05-02T19:57:41"
  subject="Re: Mini ray tracer">
<msg 
  url="2005/05/d315d238ef80ffa3e6f6bd7774cd1fbd"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-03T22:47:32"
  subject="Re: [Caml-list] Re: Mini ray tracer">
</msg>
<msg 
  url="2005/05/89c5d0ebb5d4b04ee4930daae8fbfdfe"
  from="Florian Hars &lt;hars@b...&gt;"
  author="Florian Hars"
  date="2005-05-04T06:22:36"
  subject="Re: [Caml-list] Re: Mini ray tracer">
<msg 
  url="2005/05/2e3229b2a6177a2463d57e2fec258450"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-04T07:27:13"
  subject="Re: [Caml-list] Re: Mini ray tracer">
<msg 
  url="2005/05/f6d48a0d367c7ff6af0411677828dd1d"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-04T11:22:21"
  subject="Re: [Caml-list] Re: Mini ray tracer">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
Julian Brown wrote:
&gt;&gt; Re:
&gt; 
&gt;   http://www.ffconsultancy.com/free/ray_tracer/comparison.html
&gt; 
&gt; Interesting results, but it's kind of unfair to leave optimisation turned
&gt; off for g++! 

I did some comparisions (the ml code on that page doesn't compile, but the
fix is trivial) and told gcc 3.3.5 to actually optimize the c++ (-O2 
-march=x86-64 -msse2 -ffast-math) and the c++ was consistently faster than the 
ocaml code for detail levels of 4 and greater, marginally at 4, about 20% at a 
level of 10, twice as fast at 12, and infinitely faster at a level of 14 (the 
c++ program finished in less than three minutes, the ocaml program started to 
trigger the oom killer after about an hour, and I finally had to push the 
friendly red button labeled "reset" to get my computer back).

This looks like a suboptimal example for the speed of ocaml.

Yours, Florian.

</contents>

</message>

