News for hackers. Stuff that matters.
Re:JS1k, 1k Javascript demo contest by johnfn on Friday August 06, 2010 @02:41PM (#1581927)
That is really impressive. I wish the guy would release some notes about how he did it, or what his code means...

Edit: I started looking into it. He does some really bizarre things, like having all of his assignments and statements in the parens of a for loop, assigning Math.cos to $, and some tricky bit ops. Unfortunately, I don't think I understand the math well enough to totally understand it.

Re:JS1k, 1k Javascript demo contest by jcl on Friday August 06, 2010 @10:40PM (#1582948)
There was some analysis posted when the article originally appeared on HN:

http://news.ycombinator.com/item?id=1227936

As I understand it, the trig calls are just to establish the camera position and direction. The rest of the calculation (the two inner loops) is marching along a ray to find a depth value.