Torvalds on memory ordering and clever compilers (<a href="http:&#x2F;&#x2F;yarchive.net&#x2F;comp&#x2F;linux&#x2F;memory_barriers.html" rel="nofollow">http:&#x2F;&#x2F;yarchive.net&#x2F;comp&#x2F;linux&#x2F;memory_barriers.html</a>):<p>&quot;Compiler people tend to think that people want smart compilers. I as a compiler power-user can emphatically tell you that that isn&#x27;t true. People want _reliable_ compilers, and they want compilers that can be told to just get the hell out of the way when needed.&quot;<p>I guess I&#x27;m largely at the same side of the argument, on the theory that atomics etc. should be used very sparingly by people who know what they&#x27;re doing and spend time to hand-optimize their code and think it through semantically (and these people aren&#x27;t helped by the semantics of atomics becoming more complicated for the sake of optimization opportunities), as opposed to other language mechanisms which are used all over the place by everyone, and so with these mechanisms you do gain a lot from clever optimizations. But I understand the other side of this argument...