News for hackers. Stuff that matters.
Re:Smallpt: Global Illumination in 99 lines of C++ (with no ... by adamtj on Wednesday January 13, 2010 @07:52PM (#1051633)
It could be 1 line. sloc doesn't mean much for C++ unless the code is sanely formatted. E.g. an if/else should be at least 2 lines, usually 4.

Edit: That said, I'm still impressed.

Re:Smallpt: Global Illumination in 99 lines of C++ (with no ... by houseabsolute on Thursday January 14, 2010 @12:42AM (#1052025)
This is a sight more readable than some much more sanely formatted C++ programs I've read. What I've learned from this that it's often the simplicity of the program that's more important than the formatting. (Although formatting is of course still important and anyone who inflicts code like this on their coworkers doesn't reach my standard of "decent human being.")
Re:Smallpt: Global Illumination in 99 lines of C++ (with no ... by Luc on Thursday January 14, 2010 @03:23AM (#1052198)
The listing is contrained to 72 columns width, so it really couldn't be one line.