Google pwns you

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Google pwns you

Joshua Thorp
Guess I better start putting my name on my code!

But I have to say this is really cool.  For instance I was reading  
about a fast inverse square root method that uses the magic number:
0x5f3759df
which was improved by Chris Lamont to use the number:
0x5f375a86

both of which reveal a whole set of interesting mathematics/computer  
graphics code libraries.

And ironically also brought up the slashdot (juveniles) initial  
search,  on "fuck" which ultimately leads to the most reassuring  
comments in source code: "Shit happens" .

For those interested the method is used in a processing library for  
particle physics:
http://www.cs.princeton.edu/%7Etraer/physics/
paper here:
http://www.lomont.org/Math/Papers/2003/InvSqrt.pdf

--joshua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/friam_redfish.com/attachments/20061006/9d99212c/attachment.html