Hacker News new | past | comments | ask | show | jobs | submit login

C23 just dropped support for any non-twos-complement architectures. No more C on Unisys for you! http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2412.pdf



That doesn't preclude C23 on Unisys, it just forces the compiler to hide that fact from the programmer ;D

(SCNR)


Which will be wonderful for code compiled to C23 linked against C89 libraries, if that's even possible.


One of the most widespread potential targets for non-two's-complement C would be JavaScript, or otherwise abusing floating point hardware for C's signed integers. Because their overflow is indeed weird (and breaks associativity).


It looks like signed overflow will be still undefined in C23 (but defined in C++).


Signed overflow is not defined in C++


It's amazing the abilities that 50 years can bring a programming language. Longest, most painful design debate ever.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: