u/skeetoin r/C_Programming • Recommends
CppCon 2019: JF Bastien “Deprecating volatile”
189K subscribers • 103 videos on Hallway • Conference channel
Advanced. Deep dive for people who know the field.
30K views7 years ago3 recommendations
Programming languagesSystems programmingC++CLanguage design and type systems
JF Bastien explains why the volatile keyword is problematic in C and C++ and details the efforts to deprecate its broken uses.
CppCon.org — Discussion & Comments: reddit.com/r/cpp/ — Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/CppCon/CppCon2019 — Dealing with volatile in C and C++ is problematic in large parts because what the Standards say isn’t very intuitive and often error-prone. Indeed, volatile isn’t specified normatively, has relatively obscure uses, and is surrounded by myths and legends. This is especially troublesome because volatile is most used to interact with hardware and perform other tricky operations in low-level code. We’ve determined that the languages should be improved and are actively working in that direction: deprecate the dubious and obviously broken uses of volatile in both languages though the C and C++ Standards Committees, standardize replacements which are less error-prone, create advanced diagnostics to help developers write better code. Our ultimate goal: deprecate what remains of volatile. This talks first helps developers understand volatile because it’s often misunderstood. With that understanding, developers are then walked through the deprecation and replacement plan we’ve set out. — JF Bastien Compiler engineer, Apple JF is a compiler engineer. He leads C++ development at Apple. — Videos Filmed & Edited by Bash Films: BashFilms.com Work at Hudson River Trading (HRT): tinyurl.com/safxfctfWhat people say. Recommended as the definitive explanation of why volatile is insufficient for threading and how its usage is being restricted.
u/skeetoin r/C_Programming • Recommends
u/not_a_novel_accountin r/C_Programming • Recommends
On “How do you implement a mutex ?”
u/sharricein r/C_Programming • Recommends
On “What is a dirty word to c and c++ programmers alike?”