3 ms·
In my experience, the model that most people railing against undefined behavior tend to end up proposing is a vague, "read-my-mind" sort of model. Semantics ar
by jcranmer 6y ago
In my experience, the model that most people railing against undefined behavior tend to end up proposing is a vague, "read-my-mind" sort of model.
Semantics are hard, and undefined behavior makes it especially so. See the voluminous threads on llvm-dev trying to pin down what "undef" actually means for an example. In the context here, the linked article is a response to someone who is describing why defining a memory model is actually more difficult than it seems. The linked article is basically saying "screw that, it doesn't have to be hard, just use the obvious model" without specifying what the obvious model actually is.
After you've been in a couple of hour-long meetings where everyone is arguing over what the "obvious" model actually says, it's painfully obvious that "obvious" isn't obvious.