News for hackers. Stuff that matters.
Re:Undefined behavior in C is a reading error by Asooka on Thursday May 20, 2021 @12:59PM (#27223784)
> But C programmers believe they deserve to be abused this way.

I don't know of any C programmers who think that way. We accept the state of affairs because there is little alternative. We're not going to rewrite our code in another language, because we mostly need to write in C for various reasons. Also Rust inherits LLVM's undefined behaviour, so it's no panacea. We mostly keep adding flags to turn off the most excessive optimisations and pray.

Re:Undefined behavior in C is a reading error by steveklabnik on Thursday May 20, 2021 @01:17PM (#27224024)
Rust inheriting it is the equivalent of a codegen bug, and they get patched. The cause here isn’t LLVM, it’s language semantics.