Re:Esoteric Topics in Computer Programming (2002)
by taneq on Friday September 16, 2016 @07:18AM
(#12513209)
If you're going to list Duff's Device, we should also mention Carmack's fast square root (despite it not actually being invented by Carmack). I dunno if you'd call it mainstream but for a while there it was in every wannabe game engine coder's repertoire.
Re:Esoteric Topics in Computer Programming (2002)
by qwertyuiop924 on Friday September 16, 2016 @07:37AM
(#12513291)
Yeah, you should really call it SGI's FastInvSqrt. It's still a pretty cool hack.
Duff's Device comes close. It was born out of a real engineering problem, but spread as esoterica and I'm sure I'm far from the only one to learn it as esoterica and later use it in production.