Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cryptonector
on April 10, 2021
|
parent
|
context
|
favorite
| on:
Comparative unsafety
Although `~0` assumes twos-complement signed numbers. Which, well, is probably a safe assumption, but still.
IshKebab
on April 10, 2021
[–]
All modern computers use twos-complement and modern languages like Rust require it. Not assuming twos-complement is a theoretical nitpick along the lines of not assuming a byte is 8 bits. Nobody does that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: