Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Mini ray tracer
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Matt Pharr  
View profile   Translate to Translated (View Original)
 More options 9 May 2005, 19:37
Newsgroups: comp.graphics.rendering.raytracing
From: Matt Pharr <m...@pharr.org>
Date: Mon, 09 May 2005 18:37:59 GMT
Local: Mon 9 May 2005 19:37
Subject: Re: Mini ray tracer

tbp...@gmail.com writes:
> Jon Harrop wrote:
>> I then cut this program down to a 66-line OCaml program and ported it
> into a
>> 97-line C++ program. These programs are compared on this page:

>>   http://www.ffconsultancy.com/free/ray_tracer/comparison.html
> Is that comparison supposed to be fair in any way whatsoever?

> [demonstration that "inline" vector math makes C++ programs faster
> elided]

> If your point was to show how to write unbelievably inneficient code in
> C++, you've succeeded.

I think the point was to have some fun and to make a little demo that shows
how a functional language like OCaml can give rise to nice short expressive
programs while still delivering competitive performance.  And for those
goals, the OP succeeded!

Note also that he mentions on his web page that he's doing this for "the
computer language shootout benchmarks", http://shootout.alioth.debian.org/.
That page clearly points out all the caveats around benchmarks like these
(to the point that they can be effectively meaningless in  the real world.)

Specifically:

>> about The Language Shootout Benchmarks

>>Our goals are to learn about programming languages, compare their
>>performance in various (possibly meaningless) ways and, most importantly,
>>have some fun!

I've at least had some fun looking at his implementation!

-matt
--
Matt Pharr    m...@pharr.org    <URL:http://graphics.stanford.edu/~mmp>
=======================================================================
In a cruel and evil world, being cynical can allow you to get some
entertainment out of it. --Daniel Waters


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google