Re:Deciphering the Business Card Raytracer
by fabien_sanglard on Sunday September 22, 2013 @02:32AM
(#6426011)
Can you pastebin.com it so we can see what it looks like ?
[ Parent
| on HN ]
Re:Deciphering the Business Card Raytracer
by raminf on Sunday September 22, 2013 @02:27PM
(#6427425)
http://pastebin.com/ktukPBHE
I reformatted it so it would justify right like the original but for some reason Pastebin likes to reflow things.
It turns out the single-character tokens 'u' and 'w' were not being used so repurposing them for the #defines leads to a saving of 46 characters at the cost of an extra line. There are a few other recurring tokens but you hit a point of diminishing return.
One should not, however, lose sight of what an awesomely clever hack the whole thing is. Reminds me of some of the text-flow layouts in old illuminated manuscripts, or the more modern variations here (like the one with the light-bulb): http://www.smashingmagazine.com/2008/02/11/award-winning-new...