by nine_k · 2y ago · 0 comments
I don't see why integers should not have something similar, especially large enough integers, like i64 or even i32. Historically they don't though.
Two’s complement on the other hand form an honest-to-god commutative ring, their implementation is dead simple and it’s very rare that they lead to bugs in and out of themselves. They’re one of the most beautiful solutions in computer science IMO.
I’d give up floating point much more readily than two's complement.