News for hackers. Stuff that matters.
Re:Ask HN: What piece of code/codebase blew your mind when y... by LarsDu88 on Monday October 31, 2022 @07:35PM (#33414912)
Fast inverse square root. Commonly attributed to john carmack, it actually predates his application of it by several years
Re:Ask HN: What piece of code/codebase blew your mind when y... by aricz on Tuesday November 01, 2022 @07:37AM (#33419833)
"... Initial speculation pointed to John Carmack as the probable author of the code, but the original authors were much earlier in 3D computer graphics. Rys Sommefeldt concluded that the original algorithm was devised by Greg Walsh at Ardent Computer in consultation with Cleve Moler, the creator of MATLAB. Cleve Moler learned about this technique from code written by William Kahan and K.C. Ng at Berkeley around 1986." - https://en.wikipedia.org/wiki/Fast_inverse_square_root