Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rwmj
on Feb 21, 2022
|
parent
|
context
|
favorite
| on:
C Portability Lessons from Weird Machines
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
eqvinox
on Feb 21, 2022
|
next
[–]
That doesn't preclude C23 on Unisys, it just forces the compiler to hide that fact from the programmer ;D
(SCNR)
bombcar
on Feb 22, 2022
|
parent
|
next
[–]
Which will be wonderful for code compiled to C23 linked against C89 libraries, if that's even possible.
namibj
on Feb 22, 2022
|
prev
|
next
[–]
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).
mmoskal
on Feb 22, 2022
|
prev
|
next
[–]
It looks like signed overflow will be still undefined in C23 (but defined in C++).
isomel
on Feb 22, 2022
|
parent
|
next
[–]
Signed overflow is not defined in C++
titzer
on Feb 21, 2022
|
prev
[–]
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: