News for hackers. Stuff that matters.
Re:An interactive guide to sensor fusion with quaternions by feoren on Friday August 15, 2025 @01:44PM (#44915306)
What makes you so confident that you can tell that a 3-line function is AI? Especially given that the author denies it, with evidence.
Re:An interactive guide to sensor fusion with quaternions by oneshtein on Friday August 15, 2025 @03:23PM (#44916454)
It cannot work, because x,y,z are not used at all.
Re:An interactive guide to sensor fusion with quaternions by margalabargala on Friday August 15, 2025 @03:39PM (#44916573)
This looks more like a copy paste error, where the function signature requests xyz, but the function itself uses an undefined array "axis" of which xyz correspond to indexes 0-2.

The code is correct aside from the obvious bug.

Bugs predate the existence of AI by decades. This particular bug doesn't look like one an AI would write.

Re:An interactive guide to sensor fusion with quaternions by throwaway290 on Friday August 15, 2025 @10:51PM (#44919702)
unused variables is typical LLM.

Also it's a short function. It's impossible to miss unused parame if you read your own code at all. And if you somehow don't... then it's deserved anyway.

Re:An interactive guide to sensor fusion with quaternions by margalabargala on Sunday August 17, 2025 @11:41AM (#44932389)
Maybe typical LLM of a year ago. If a function was one-shot written by an LLM today, it would not make that mistake.

It could make that mistake if it writes the header at one point, and the body separately. Though that's unlikely.

But I suspect this is a genuine human error.

Re:An interactive guide to sensor fusion with quaternions by CamperBob2 on Friday August 15, 2025 @03:16PM (#44916394)
Then again, that's just the AI would say...