Menu

John Carmack deleted fast_inverse_sqrt() in 1999. In commit c51b980a, he replaced 0x5f3759df. We held an air-gapped séance with its ghost.
📰

John Carmack deleted fast_inverse_sqrt() in 1999. In commit c51b980a, he replaced 0x5f3759df. We held an air-gapped séance with its ghost.

DEV Community: opensource·Arnav Patel·2 days ago
#CIPm9wjO
#devtoopensource#devto#dev#necrogit#gemma
Reading 0:00
15s threshold

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine

John Carmack deleted fast_inverse_sqrt() in 1999.

In commit c51b980a of the Quake III source tree, he replaced the infamous magic constant 0x5f3759df with a hardware SSE rsqrtss instruction. Sixteen lines of legendary, dark-arts floating-point bit hacking—accompanied by the immortal comment // what the fuck? —were struck down in a single routine commit.

Every git repository on earth is a cemetery like this.

Functions that fought off brutal midnight outages are refactored away. Classes sculpted over cold winter weekends are vaporized with a callous four-word commit message: "refactor: remove legacy worker" . And the worst part? We don't even remember their names. When you look back at an old codebase, you remember what the function felt like , or the bug it cured.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.