CppCon 2017: Matt Godbolt “What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid”
Channel:CppCon · Length:1:15:45 · Published:2017-10-02 · Views:178244
Summary
Matt Godbolt's CppCon 2017 talk shows what modern compilers do with your C++ code, using Compiler Explorer to inspect generated assembly. It covers surprising optimizations and how the tool works.
Why HN recommends it
HN recommends it as an entertaining, mind-blowing look at compiler cleverness from a great speaker.
Both are great presentations going into details on some of the crazy optimizations compilers will do. — HN, 2019
C, C++, Rust, Go & systems languages · Compilers, interpreters & program analysis · Testing, debugging & developer tools
Subtitles (excerpt)
- My talk is called What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid. Which is the longest and most complicated title I've seen. Titles, it turns out, are very hard. So why am I up here staring back at you all? It's definitely a question I'm asking myself at the moment. (audience laughter) As Jason, in his wonderful introduction, has said, my name has rather unexpectedly become a noun and a verb, which has led to some extraordinarily surreal conversations this last week. I've not only had people come up to me that, oh, had people come up to me and introduce themselves as if we're old friends, and I'm looking at them smiling going, "Who are you?" And then they say, "Thank you for Compiler Explorer," which is amazing. Or I've been in conferences and people have been talking about Godbolt and, you know, like how there are those neurons in your brain that are always background process listening out for your own name, and I'm just looking around like this, so it's been very very very surreal, but thank you for the very warm reception. I'm going to talk a little bit about me just so you know how it is that I came to come up with this idea for Compiler Explorer. Like a lot of people, I'm sure, I started, a long time ago, programming on
On Hacker News
I highly recommend Matt Godbolt's talk "What has my compiler done for me lately?"[0] and its follow-up[1]. Both are great presentations going into details on some of the crazy optimizations compilers will do. As someone who knows very little about the inner workings of compilers my mind was blown when I saw some them. [0] [VIDEO] [1] [LINK] — snailmailman, 2019-09
Matt Godbolt is a great speaker as well. I loved this talk that included a bit about the architecture behind his Compiler Explorer. The rest of his talk is super cool as well. E.g. closed form solutions from O(n) code? Compilers are awesome. [VIDEO] — drej, 2018-12
Link to the (great) CppCon talk: [VIDEO] The one thing I would say is: as you dig more into C++ perf, you can develop an intuition for the kinds of things the compiler can and can't optimize. For instance, the C++ example from the article uses `std::unordered_map`, which is just an absolute mess from a cache locality perspective—the best compilers today (or of the foreseeable future) can't do a t… — s3cur3, 2021-03
Tangent, but this reminds me of this great talk by Matt Godbolt from CppCon 2017: “What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid” [VIDEO] . And the follow up [LINK] . — manaskarekar, 2020-04
But please keep in mind that today's compilers are (most of the time) very smart. Hacker's Delight is somewhat outdated today. There's no need anymore for writing "x << 2" instead of "x * 4". I recommend Matt Godbolt's Talk(s) about compiler cleverness: [VIDEO] (see the 30 minute mark for the multiplication example) — fps_doug, 2019-09
Related videos
- C++Now 2018: Matt Godbolt “What Else Has My Compiler Done For Me Lately?” · CppNow · 1:30:03
- CppCon 2017: Chandler Carruth “Going Nowhere Faster” · CppCon · 1:00:57
- India's Semiconductor Failure · Asianometry · 17:13
- Copper vs Pex vs SharkBite - Freeze Testing · Matt Risinger · 13:00
- U.S. NAVY BASIC MECHANISMS OF FIRE CONTROL COMPUTERS MECHANICAL COMPUTER INSTRUCTIONAL FILM 27794 · PeriscopeFilm · 19:42
- The Extreme Engineering of ASML’s EUV Light Source · Asianometry · 17:20
- TypeScript types can run DOOM · Michigan TypeScript · 6:59
- "Testing Distributed Systems w/ Deterministic Simulation" by Will Wilson · Strange Loop Conference · 40:20
- The economics of open source by C J Silverio | JSConf EU 2019 · JSConf · 37:43
- What is in a Lucene index? Adrien Grand, Software Engineer, Elasticsearch · LuceneSolrRevolution · 1:04:30
- CppCon 2017: Titus Winters “C++ as a "Live at Head" Language” · CppCon · 1:31:13
- RailsConf 2014 - All the Little Things by Sandi Metz · Confreaks · 38:47
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05