Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
steveklabnik
on Oct 24, 2019
|
parent
|
context
|
favorite
| on:
Rust and C++ on Floating-Point Intensive Code
(bounds checks are not removed in release mode, you have to use unsafe to not have the bounds check)
On the /r/rust thread, folks provided examples of why fastmath would produce UB in safe Rust.
stefs
on Oct 24, 2019
[–]
ah, i think i meant overflow checks. and thanks for the pointer, i'll have a look.
steveklabnik
on Oct 24, 2019
|
parent
[–]
ah yes, overflow checks are not in release mode today. They may be in the future. And overflow isn't UB, it's two's compliment wrapping.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
On the /r/rust thread, folks provided examples of why fastmath would produce UB in safe Rust.