Hacker News new | ask | show | jobs
by raphlinus 2586 days ago
This should say 2010. I believe much of it is out of date, as C11 does have a memory model, and does provide both atomics and barriers. Many, if not most, uses of volatile should probably be replaced by atomics.

https://en.cppreference.com/w/c/atomic

3 comments

Herb Sutter's (three hour long!) Atomic Weapons talk goes over the modern meaning of volatile towards the end: https://youtu.be/KeLBd2EJLOU?t=5299
You're not wrong, but C is a language where plenty of apps are still using older versions, so while as per site etiquette this should have the date, it's still interesting, especially for the embedded space.
There's using an outdated version, and then there's C.

The more commonly used language specs, IME, are C99 and C89!

That's 20 and 30 years of 'stability'.

Many projects are stuck in C99, or even C89...
And many projects aren't. It is still better to label a title correctly.
Many compilers are stuck in C99 or C89 or even earlier. There are other worlds besides gcc, clang and msvc.