News for hackers. Stuff that matters.
Re:Recursive raytracer in 35 lines of JavaScript by huskyr on Tuesday November 19, 2013 @04:23AM (#6760089)
Very nice indeed! I especially like the fact that the source is so well annotated, which makes me wonder: why bother with minifying it at all and not simply use the unminified source on Jsfiddle?
Re:Recursive raytracer in 35 lines of JavaScript by biot on Tuesday November 19, 2013 @05:11AM (#6760224)
From the jsfiddle source:

  // Non-minified source in 35 lines for HN, because it's the latest fad :)
https://www.hnsearch.com/search#request/submissions&q=%2235+...
Re:Recursive raytracer in 35 lines of JavaScript by beaker52 on Tuesday November 19, 2013 @06:29AM (#6760470)
It was 30 lines, but artistic license accepted I guess.

https://www.hnsearch.com/search#request/submissions&q=%2230+...

Re:Recursive raytracer in 35 lines of JavaScript by shimonamit on Tuesday November 19, 2013 @04:34AM (#6760121)
The author writes in the link:

> Note that the goal here was to make the source code as small as possible, not clarity; so even the original code before minification is a horrible mess. This doesn’t do justice to the elegance and simplicity of proper raytracer code; I’m writing a book to right this wrong.