Comment

Comment by Someone

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p090..., concludes

”the only machine the author could find using non-two’s complement are made by Unisys, and no counter-example was brought by any member of the C++ standards committee. Nowadays Unisys emulates their old architecture using x86 CPUs with attached FPGAs for customers who have legacy applications which they’ve been unable to migrate. These applications are unlikely to be well served by modern C++, signed integers are the least of their problem. Post-modern C++ should focus on serving its existing users well, and incoming users should be blissfully unaware of integer esoterica.”

That led to the decision that ”Signed Integers are Two’s Complement” in C++ 20.

That makes it too easy to write portable code :-)

parent Someone 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton