C++ and Beyond 2012: Herb Sutter - atomic Weapons 1 of 2
Channel:alexsmail · Length:1:21:12 · Published:2017-11-06 · Views:71553
Summary
Herb Sutter's deep C++ and Beyond 2012 talk on atomics and the C++ memory model, covering why programmers chasing top performance need to understand hardware ordering. This is part one of two.
Why HN recommends it
HN treats it as the classic go-to for learning atomics and memory ordering, recommended over books.
which are extremely good — HN, 2024
C, C++, Rust, Go & systems languages · Software performance & optimization · Computer architecture & CPUs
Subtitles (excerpt)
so let's now talk about something that is a talk I hoped I would not have to give I did not plan to give until last month when I saw other talks about memory model and Atomics and I know I said there's just got to be information in one place about this including the parts we hope to never to have to teach so over breakfast at our table we were discussing which was more cruel to you to inflict a deep universal references talked on you yesterday right after lunch or to inflict a deep Atomics and memory model talk on you not only first thing in the morning when you barely had the chance to have your first hit of coffee but through the entire morning up to a lunchtime and we decided both were equally cruel so here we go this talk is not only about studio tommix it's about the whole sea fossils memory model but with a focus on instead of tommix because first I want to cover the rules that apply to all kinds of synchronization including mutexes and condition variables and Atomics but then we'll delve specifically into Atomics all the way down into the gory details of the hardware on several popular platforms and architectures to see the reasons why things are the way they are where the hardware is today and how it's moving in flight today so
On Hacker News
"Is Parallel Programming Hard, And, If So, What Can You Do About It?" is one of the best books about atomics and concurrency, and my #2 recommendation. [LINK] My #1 actually isn't a book at all, but the two "atomic Weapons" talks by Herb Sutter, which are extremely good. [VIDEO] [LINK] — chc4, 2024-08
Well written article, nice and to the point. Do recommend. Decades ago I declared myself too stupid to use shared memory with threading; I have learned to avoid this whenever possible, or abstract away the memory access under a safe layer as soon as possible. One of the greatest decisions of my career. Memory model semantics is one of the parts of systems programming that is generally poorly unde… — zevv, 2024-05
For a more in depth introduction to the topic with a lot of practical code examples, I highly recommend Herb Sutter’s excellent talk: Part 1 [VIDEO] Part 2 [LINK] — NobodyNada, 2023-11
If you’re prepared and willing to learn much more about atomic operations than you ever thought you would, there’s no substitute to Herb Sutter’s classic talk ”atomic<> Weapons” from C++ And Beyond 2012 [1]. [1] [VIDEO] — Sharlin, 2020-10
For a somewhat less "for dummies" treatment of the C++ memory model, see Herb Sutter's classic talk "atomic<> Weapons" [1]. [1] [VIDEO] — Sharlin, 2022-08
Related videos
- C++ and Beyond 2012: Herb Sutter - atomic Weapons 2 of 2 · alexsmail · 1:32:33
- Mechanical Computer (All Parts) - Basic Mechanisms In Fire Control Computers · Excelsior10000 · 41:53
- 4 Chords | Music Videos | The Axis Of Awesome · The Axis of Awesome · 6:20
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- 8-bit computer update · Ben Eater · 6:53
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Light Years Ahead | The 1969 Apollo Guidance Computer · TNMoC · 1:21:22
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- “Hello, world” from scratch on a 6502 — Part 1 · Ben Eater · 27:24
- Preventing the Collapse of Civilization / Jonathan Blow (Thekla, Inc) · DevGAMM · 1:02:41
- Finding the Missing Memristor - R. Stanley Williams · The Qualcomm Institute · 47:52
- "Performance Matters" by Emery Berger · Strange Loop Conference · 42:15
- The Ultimate Game Boy Talk (33c3) · media.ccc.de · 1:01:06
- The Thirty Million Line Problem · Molly Rocket · 1:48:55
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- RustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine West · Rust Programming Language · 42:29