Hi All,
I was wandering around the internet and found this post: http://forum.nim-lang.org/t/167
and wanted to try it out, however, it was quite old and built on SDL1, so I took it upon myself to port it to SDL2. Of course, only after did I realize that there was this version of it: github raytrace benchmark by zezba9000 (that may or may not compile, I haven't tried) that was better off benchmarking wise and didn't have the SDL dependency.
Anyway, here is my port of the original to SDL2: https://gist.github.com/hcorion/3cfc1e11fac888ab6fd2b853009c275a
I know it's from the original code, but there's no longer any reason to mark objects as {.pure, final.} (non-inherited objects are {.final.} by default, and {.pure.} only effects an object's inheritance).
Also, fyi, the Nim raytracer @ zezba9000 does work, and I just pushed fixes to make it's multithreading mode work with the latest compiler, and scale with your CPU's processor count.