As all people doing computer-science, I wrote a ray-tracer when I was young. It was written in Modula-2, on an Amiga 500. Objects were represented as intersections of quadrics, and there wasn't any optimization.