Claude and John Carmack Debate the 'clamp'

ID_AA_Carmack · x · 2026-07-17

John Carmack mentioned asking Claude why a specific clamp was necessary. Claude casually replied that if an "always true" clamp makes you uncomfortable, it's merely an artifact of next-token prediction.

However, Claude's subsequent technical reasoning was spot on: while mathematically redundant, different reduction paths necessitate this guard to prevent issues like sqrt(-epsilon). Carmack described the exchange as being "gaslit," pointing out that kernel calls and parameter read/writes aren't entirely free, unlike a constant-true branch in standard C.

Original post →

More from coding & agent

coding & agent channel →