[Shootout-list] Ray tracer developments

skaller skaller@users.sourceforge.net
05 May 2005 13:56:48 +1000


On Thu, 2005-05-05 at 05:58, Jon Harrop wrote:
> On Monday 02 May 2005 12:28, Sebastien Loisel wrote:

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

You could also try Felix, since it has variants built in,
and generates C++ mechanically .. might save some work,
the cost of a heap allocation per variant (due to a 
stupid constraint in ISO C++).

I'll have a go at a lot more things when I manage to
get Linux running on my AMD64.


-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net