4 ms·
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
by huskyr 13y ago
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?
- shimonamit 13y agoThe 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.
- biot 13y agoFrom 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+lines%22 https://www.hnsearch.com/search#request/submissions&q=%2235+...
- beaker52 13y agoIt was 30 lines, but artistic license accepted I guess. https://www.hnsearch.com/search#request/submissions&q=%2230+lines%22&start=0 https://www.hnsearch.com/search#request/submissions&q=%2230+...