News for hackers. Stuff that matters.
Re:C++ is faster and safer than Rust (2020) by tlamponi on Thursday October 07, 2021 @01:51AM (#28782598)
As Computer Engineer: oh well, do I have bad news for you ;-)

Quite a few processors have some undefined behavior, some instructions flags are just not specified, and no not just "this is reserved and must be zero", that would be Ok.

The result of the `bsf` or `bsr` instructions on the 0 value

And please, don't look too much at the FPU either or it may do some random stuff and jump at you.

Re:C++ is faster and safer than Rust (2020) by anyfoo on Thursday October 07, 2021 @01:55AM (#28782633)
Indeed, best to avoid any eye contact with the FPU at all.