On Tuesday, 6 August 2013 at 06:01:55 UTC, deadalnix wrote:
Additionally, guarantee are hardware dependent. So if some of these may not be useful on X86, which have a very strong memory model, not using atomic makes it more difficult to port D.
On x86 every read is an atomic read. The compiler should strip away all overhead from the library constructs. The writes are not strong enough. I can recommand Sutters talk about atomics. It is 3h long, though. http://herbsutter.com/2013/02/11/atomic-weapons-the-c-memory-model-and-modern-hardware/