Floats Don't Agree with Themselves
24 points by cremer 2 days ago | 9 comments

tyilo 7 minutes ago
If the original code was written in Rust, then I don't think the Rust compiler is allowed to do any of these "optimizations" of rewriting floating point expressions.
reply
stuaxo 2 hours ago
Not sure if this was written with AI assistance of not, but I've become allergic to linguistic triples as LLMs use them so much, reading "Same code. Same input. Different answer" makes me not want to read the rest.
reply
jan_Inkepa 53 minutes ago
reply
gobdovan 35 minutes ago
I think the problem is the mismatch between the intended evocative tone of tricolon crescens and the triviality of a 'computer quirk' in the grand scheme of things. "Use figures of speech, but don't sling them around like monkey shit" - my literature teacher.
reply
thecaio 15 minutes ago
Same. I now tend to simply abandon writing when I see those tell tale signs
reply
sampo 34 minutes ago
I wish the blog would reveal the values of the 3 floats that make their

    cross_sign(A, B, C)
to give different results in different platforms.
reply
jmalicki 2 days ago
I love seeing a Shewchuk citation other than my ML background of learning conjugate gradient! He is truly a great educator!
reply
cremer 2 days ago
his predicates paper opens with "Computational geometers despise floating-point arithmetic" same trick as the CG title: write the sentence a frustrated reader would write, then aren it.. if you like those the Triangle paper is the third one in the same key
reply
adampunk 2 days ago
Makes you wish everyone agreed on extended precision!
reply
cremer 2 days ago
[dead]
reply
fefa4ka 2 days ago
[dead]
reply