Skip to content
0:00 / 0:00

#caseymuratori#simd#bluenoise

Simple Code, High Performance

Molly Rocket

148K subscribers • 32 videos on Hallway

YouTube
  • Recommended by 8 people: 6 on Hacker News and 2 on Lobsters.
  • A classic. People kept recommending it from 2021 to 2024.
  • Presented by Casey Muratori, founder of Molly Rocket
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

463K views5 years ago8 recommendations

Systems programmingSoftware designPerformance and optimizationSimplicity and complexityCPUs and computer architecture

Casey Muratori presents a case study on how straightforward coding can dramatically reduce code size and execution time compared to complex abstractions.

Kickstarter link: kickstarter.com/projects/annarettberg/meow-the-infinite-book… This was a presentation I gave to the University of Twente in early 2021. It's a case study of how simple, straightforward coding can turn several thousand lines of code and 10's of seconds of runtime into a few dozen lines of code and a sub-second runtime. It attempts to provide concrete examples of why software is often an order of magnitude (or more) slower than it should be.

Why it's here

8 people recommend this

What people say. Recommended as a compelling case study on how modern software abstractions degrade performance and how simple, hardware-aware code can run orders of magnitude faster.

Moments people linked to

DrBazzaon Hacker News • Recommends

On “An Epic future for SPJ”

> 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 link to this video

mrv_asuraon Hacker News • Recommends

On “Algorithms for Modern Hardware”

The timing of this is great! I just watched Casey Muratori's lecture, "Simple Code, High Performance"1 and its follow-up videos2, 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 link to this video 2 link 3 link

Pr0ject217on Hacker News • Recommends

On “What we can learn from vintage computing”

Thank you for the detailed explanation! It sounds like programming computers back then would have been a joy. Casey Muratori's talks0 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 link to this video

dbremneron Lobsters • Recommends

Simple Code, High Performance

altanoon Lobsters • Recommends

Simple Code, High Performance (in The Witness)

ocharleson Hacker News • Recommends

On “Why can’t you design noise in frequency space?”

For one real application of blue noise in particular, see link to this video (22:30 is a good starting point). Here Casy explains a grass planting algorithm for games, where white noise wouldn't be suitable.

mtzeton Hacker News • Recommends

On “Ask HN: How can I learn about performance optimization?”

…ou keep coming back to the same data? If you want to understand the limits of how fast computers are, and what optimal performance looks like I'd recommend two talks that come with a very different perspective from what you usually hear: 1. Mike Acton's talk at cppcon 2014 link 2. Casey Muratori's talk about optimizing a grass planting algorithm link to this video…

kleibaon Hacker News • Recommends

On “I Waited 10B Cycles and All I Got Was This Loading Screen”

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. link to this video He also has a "performance-aware programming" series: link

raszon Hacker News • Mentions

On “Ask HN: How were video games from the 90s so efficient?”

There are no tricks, you just have to give up mountains of levels of abstraction accumulated over the years. link to this video

iamwilon Hacker News • Mentions

On “Why can’t you design noise in frequency space?”

Blue noise is useful in games for generating more natural looking scenes. Here's an example of how to algorithmically place grass in the game "The Witness". link to this video So if you use white noise, it looks unnaturally clustered with patches. This is the part that discusses the noise. link to this video

akasakahakadaon Hacker News • Mentions

On “Ask HN: Resources for High Performance Computing?”

1. Single-thread performance This is hardly related to HPC. The closest thing maybe code optimization and competitive programming. First learn how to do anything fast in single process, then think about scale it up later. 2. Parallel programming Learn MPI. Specifically mpi4py. Once you go MPI, you never use python's multiprocessing module (it sucks). But stuffs are mostly about solving linear algebra problems, which I am not that interested in. 4. Distributed Computing Related to MPI. But nowaday distributed GPU computing become a thing, thing that I can think of is Dask. Don't know how to use that. link 5. Quantum Computing Completely unrelated to HPC, at least in the near future (10 to 3…

3836293648on Hacker News • Mentions

On “We were wrong about GPUs”

It's Casey Muratori, he's an American gamedev, not a professor. The video was a recorded guest lecture for a uni in the Netherlands though. And it wasn't redone in assembly, it was C++ with SIMD intrinsics, which might as well just be assembly. link to this video

u/Rcomianin r/compsci • Mentions

On “Speed isn’t a good metric nowadays.”

A couple of links from the Molly Rocket channel: * [video * [video
1View on Reddit

u/aolo2in r/C_Programming • Mentions

On “Optimisation and Performance”

If you want a book specifically, I can recommend "Computer Architecture: A Quantitative Approach". It has a chapter specifically on optimization. If you're okay with videos, these two recent videos are quite good: link to this video link to this video Also, this series of blog posts is amazing in regards to showing "how deep the rabbit hole goes": https://fgiesen.wordpress.com/2013/02/17/optimizing-sw-occlusion-culling-index/ edit: for an introduction to SIMD, there's http://const.me/articles/simd/simd.pdf