3 ms·
Quake's sqrt approximation is not trivial and is not common. [1] https://www.reddit.com/r/programming/comments/oc9qj1/copilot_regurgitating_quake_code_includin
by thesz 1y ago
Quake's sqrt approximation is not trivial and is not common.
[1] https://www.reddit.com/r/programming/comments/oc9qj1/copilot_regurgitating_quake_code_including_sweary/ https://www.reddit.com/r/programming/comments/oc9qj1/copilot...
- CamperBob2 1y ago(Shrug) It's a math trick, documented by Abrash among others and very heavily discussed on forums such as this one. And it didn't originate in the Quake codebase. Like much IEEE754 hackery, it goes back to the father of IEEE754 himself, William Kahan. Nobody benefits from a law that says that LLMs can't regurgitate the Quake sqrt() approximation. If that's what the law actually says, which it isn't.