Hacker News new | past | comments | ask | show | jobs | submit login
Time to move to C11 atomics? (2016) (lwn.net)
90 points by based2 on March 1, 2018 | hide | past | favorite | 9 comments



I think the ISO C and C++ definition of memory_order_consume will need to be fixed first. Perhaps recent progress has been made, but see for example "C++ P0371R1: Temporarily discourage memory_order_consume" and references therein:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p037...


Maybe the best thing to do is to write a really, really, really good test suite for the C11 compiler first.


I think u can propose it for C22


From reading the article it seems they present many negatives and no benefits.



From June 15, 2016. They reference GCC 7.1 as being a year away...


https://gcc.gnu.org/gcc-7/:

  GCC 7.1
      May 2, 2017 (changes, documentation)
Pretty close.


Is this a thing now?


Downvotes? I merely meant to ask if linux implemented C11 atomics or not...




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: