3 ms·
The article comes across as a bit confused. As far as I can see, these are all examples of plain concurrency-unsafe code rather than anything to do with the opt
by magicalhippo 7y ago
The article comes across as a bit confused. As far as I can see, these are all examples of plain concurrency-unsafe code rather than anything to do with the optimizer.
Sure, the optimizer is usually great at exposing buggy code that relies on undefined behavior, but there's nothing concurrency-specific to that.
As such I think the article would have been better had it been framed from the point of view that it feels like it wants to take, but doesn't: a guide for beginners of things you rely on in non-concurrent code that you can't in concurrent code.
There's more to that topic than what the optimizer does.
- deleted 7y ago[deleted]