Hacker News new | ask | show | jobs
Which source code snippet do you admire the most?
2 points by nihilanth 2027 days ago
I’m trying to crowd source a compilation of the most admired pieces of programming. I’m looking for snippets (or single files), not complete systems (e.g. Linux).
1 comments

Doom's Fast Inverse Square:

https://medium.com/hard-mode/the-legendary-fast-inverse-squa...

Though a close second for me would be Mersenne Twister

https://en.wikipedia.org/wiki/Mersenne_Twister

Voodoo black magic :)