News for hackers. Stuff that matters.
Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by rollcat on Tuesday July 22, 2025 @03:45AM (#44644260)
When I was taught mathematics, the zero value was always considered the most important edge case. You prove something for N=0 (or N=1), then for N=M+1.

It's even more important in audio DSP: processing near-zeroes can end up being extremely CPU intensive, look up denormal/subnormal floats.

Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by inglor_cz on Tuesday July 22, 2025 @04:12AM (#44644437)
Yeah, I studied mathematics (algebra and number theory) and zero is the point, often sporting discontinuities, or weird asymptotic behavior.

Quite a lot of algorithms use some form of division and zero is the only number in our typical structures (Z, Q, R, C), that cannot be used to divide with.

Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by isoprophlex on Tuesday July 22, 2025 @04:19AM (#44644475)
Well, now in this brave new age of AI we can enjoy computer programs crashing with an

    Error: division by please upvote, share and like!
Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by xyproto on Tuesday July 22, 2025 @04:29AM (#44644539)
This also works; I upvoted your comment.
Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by o1bf2k25n8g5 on Tuesday July 22, 2025 @05:28AM (#44644848)
I have discovered a truly marvelous proof of how to smash that like and subscribe button, which this comment box is too small to contain.
Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by msopena on Tuesday July 22, 2025 @05:33AM (#44644882)
Signed by Pierre de FermAIt
Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by Bluestein on Tuesday July 22, 2025 @06:51AM (#44645359)
NaN
Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by edwcross on Tuesday July 22, 2025 @05:34AM (#44644893)
In machine integer arithmetics, one must also beware division by -1, which can convert MIN_INT into MIN_INT with a signed overflow and violate some arithmetics invariants, such as sign (negative divided by negative is _usually_ positive).
Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by KeplerBoy on Tuesday July 22, 2025 @06:35AM (#44645264)
Denormals are flushed to zero by default on most GPUs by the way.
Re:Complete silence is always hallucinated as "ترجمة نانسي ق... by rollcat on Wednesday July 23, 2025 @06:08AM (#44657487)
Makes total sense, execution time is bounded. The point is it's still a case you must consider (what if near-zero is distinct from zero and significant?)