Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Atomic Weapons: The C++ Memory Model and Modern Hardware (live.com)
1 point by peter_d_sherman on April 13, 2020 | hide | past | favorite | 1 comment


Excerpts:

"Q: Does your computer execute the program you wrote?

A: What a quaint concept!

Think: Compiler optimization, processor OoO execution, cache coherency.

Compiler/processor/cache says:

“No, it’s much better to execute a different program.

Hey, don’t complain. It’s for your own good. You really wouldn’t want to execute that dreck you actually wrote.”

My Comments:

See the referenced document for the why...




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

Search: