News for hackers. Stuff that matters.
Re:Night of a cascading failure by ridiculous_fish on Monday January 21, 2019 @11:54PM (#18966082)
That's a good thing: the cliff is visible (zero is familiar) and intuitive (negative numbers are unsupported).

The pitfalls of signed arithmetic are much more insidious. Left shift a negative value? UB. Negate a negative value: maybe it's still negative. INT_MIN / -1? Crash!

Even basic arithmetic operations, e.g. the average of two integers, is unreasonably hard with signed arithmetic.

Re:Night of a cascading failure by chopin on Tuesday January 22, 2019 @05:57AM (#18967422)
>Even basic arithmetic operations, e.g. the average of two integers, is unreasonably hard with signed arithmetic.

What do you have in mind? I understand that the addition can overflow, but that can happen with unsigned as well.