[Shootout-list] Ray tracer developments

Jon Harrop jon@ffconsultancy.com
Wed, 4 May 2005 20:58:29 +0100


On Monday 02 May 2005 12:28, Sebastien Loisel wrote:
> > The new C++ version is about 10 lines shorter, weighing in at 85 LOC, and
> > ~10% slower on x86.
>
> Good job Jon, too bad about the speed deterioration. Well, it's a
> detail, that can be fixed once we've checked it in.

Actually, I don't like the new C++ version as it is significantly more 
specialised than the original ray tracer. For example, it has lost the 
ability to carry data only with the spheres (e.g. color, shininess).

I'll try to make a C version with a tagged union, which is a much closer 
equivalent to the OCaml variant type than an inheritance hierarchy.

> Do you know any old-school* scripting languages? Maybe python or ruby
> would be easiest.

No, sorry, I don't know any. Anyone care to port the ray tracer?

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists