6 ms·
Especially C++ compilers have undefined behavior
by tgummerer 8y ago
Especially C++ compilers have undefined behavior
- chiefalchemist 8y agoYes. But are you going to to use 3 to 5 or mote C++ compilers on a given project? The worst part of these frontend issues is, ultimately, the UX can become inconsistent, if not mess. Given that nearly everyone interfaces via the visual UI, you'd think we'd have this sorted out by now.
- ben0x539 8y agoIf your project is a library, I'd expect that people are gonna use it with, like, maybe not 5 but probably 2 or 3 different compilers, and they're gonna be less diligent about upgrading their compiler versions than mainstream browser users.
- chiefalchemist 8y agoThanks. I wasn't thinking about it that way. Good point. That said, the browser's impact on UX is essential. A lot more people use browsers than compilers. You'd think the UX would matter by now.
- ravenstine 8y agoDoes a single compiler work exactly the same on every architecture? :D
- de_watcher 8y agoYou're using the words wrong. The code may have undefined behaviour. For example, a race condition is an UB. Compiler won't invent locks that were not specified by the programmer in a code with some raw threads. As a result, CPUs will trash the memory.