Simple Code, High Performance
Channel:Molly Rocket · Length:2:50:14 · Published:2021-10-13 · Views:468675
Summary
Casey Muratori's University of Twente guest lecture is a case study in how straightforward code can cut thousands of lines and tens of seconds of runtime down to a few dozen lines running in under a second. It uses concrete examples to show why software is often an order of magnitude slower than it should be.
Why HN recommends it
HN people recommend it to anyone wanting a practical sense of what CPUs can really do and why abstraction layers cost so much performance.
I highly recommend watching it. — HN, 2022
Software performance & optimization · Computer architecture & CPUs
Subtitles (excerpt)
hey everybody casey muratori here i am just continuing down the list of suggestions i got on twitter when i asked what videos should i post to try and help get the word out that our kickstarter from yeah the infinite is now live this is a really cool graphic novel series that we do here at mollyrocket that's all ages and it's a really neat story and the art is fantastic please check it out if you get a chance the link is in the description anyway one of the suggestions i got was to post the lecture i did at the university of tuente in the netherlands this was a lecture that i was invited to do during covid so it's actually just via video conference which means i have a really good recording of it because it's what was streamed you'll be seeing it exactly as they saw it when it was presented the lecture is about optimization and it's a case study in how to take something that was very slow before it took like a minute to do or something like that and how to get that down to basically instant and you know you can't always do that but sometimes you can and this is a case study of one of the times where that was possible so i hope you enjoy it and again check out the link in the description below if you get a chance without further ado here's
On Hacker News
Thank you for the detailed explanation! It sounds like programming computers back then would have been a joy. Casey Muratori's talks[0] on performance and optimization sparked an interest in me to start putting thought into what the CPU actually does (which wasn't taught when I learned web development). Since discovering his talks, I've been on the hunt for more learning materials. [0] [VIDEO] — Pr0ject217, 2022-12
The timing of this is great! I just watched Casey Muratori's lecture, "Simple Code, High Performance"[1] and its follow-up videos[2, 3]. I highly recommend watching it. It is about Software Optimization, and gives practical and high-level understanding of topics like CPU Architecture, SIMD etc. [1] [VIDEO] [2] [LINK] [3] [LINK] — mrv_asura, 2022-03
> Speak for yourself; most phones I see still take 2+ seconds to open some apps. Why is that though? I've written code since the 8 bit days of BBC micros and ZX Spectrums. Casey Muratori's (who has been on here a lot lately) talk nails it [1] - developers just don't realise how fast their code could and should run. And the fact that we have layers upon layers of frameworks and no one cares. [1] [… — DrBazza, 2021-11
Casey Muratori started a whole educational webseries about this - the fact that hardware is getting faster and faster but the user experience seems to be staying the same. [VIDEO] He also has a "performance-aware programming" series: [LINK] — kleiba, 2024-11
Most software in the industry is slow because it's doing a lot of stuff that it shouldn't. Often times additional "optimization" layers adds caching, but makes getting to the root of the issue harder. The biggest win is primarily getting rid of things you don't need and secondarily operating on things in batch. My playbook for optimizing in the real world is something like this: 1. Understand wha… — mtzet, 2024-03
Related videos
- Handmade Hero Day 021 - Loading Game Code Dynamically · Molly Rocket · 1:43:46
- CppCon 2014: Mike Acton "Data-Oriented Design and C++" · CppCon · 1:27:46
- But what is a neural network? | Deep learning chapter 1 · 3Blue1Brown · 18:40
- 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
- “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
- Erlang Factory 2014 - That's 'Billion' with a 'B': Scaling to the Next Level at WhatsApp · Erlang Solutions · 49:15
- How Crash Bandicoot Hacked The Original Playstation | War Stories | Ars Technica · Ars Technica · 31:37