Refterm Lecture Part 1 - Philosophies of Optimization

Channel:Molly Rocket · Length:18:41 · Published:2021-10-18 · Views:93234

Watch on YouTube

Summary

Casey Muratori's first refterm lecture lays out philosophies of optimization, distinguishing optimization from non-pessimization, which means avoiding needless work. It uses his fast terminal renderer project to show how fast computers really are.

Why HN recommends it

HN returns to it constantly in software performance debates as the primer on non-pessimization and why modern software is slow.

The video on Philosophies of Optimisation is a good primer on the tenets of the course. — HN, 2024

Software performance & optimization

Subtitles (excerpt)

hey everybody casey muratory here at molly rocket we do a cool graphic novel series called meow the infinite about cats in space and a lot of other stuff we would love to send you a copy of meow the infinite which is why we're running a kickstarter right now the link is in the description below and we're doing a print run we'd love for you to be a part of it if you get a chance to check that out please do as part of the promotion for the kickstarter i'm doing a bunch of programming streams where i go over programming topics that i've been meaning to cover for a while and just hadn't had the time to do i just did one on ref term this is a program that i wrote that was designed to show that terminal performance could be increased by a hundred or a thousand times over what we're used to and really it wasn't so much about terminals as it was about software development practices in general why are things so slow when they don't have to be and so it's just to provide a single specific example of look when folks say that software is really slow they're not kidding here's how fast it could be the live stream itself was like five hours long so what i've done is i've broken it up into chunks that each cover a specific thing this is

On Hacker News

Casey Muratori's refterm video series is a great example of how to do application design. It focuses on writing a terminal emulator for Windows, but almost all the concepts apply to nixes as well -- even down to the level of OS primitives like memory mappings to create a ring buffer, etc. He builds a nearly complete terminal that appears to better support unicode and escape sequences than windows… — dundarious, 2021-11
> Casey Muratori has a real in-depth course on why Python is slow and how to make it fast I don’t think that’s a fair characterisation of the course and that description does it a disservice. The course is not about Python, it’s about programming with performance in mind. The video on Philosophies of Optimisation is a good primer on the tenets of the course. [VIDEO] — latexr, 2024-11
Anything object oriented is slower than anything procedural. Boxing and unboxing is expensive, running constructors and destructors is expensive, copying objects is expensive, virtual tables are expensive. And stuff isn't aligned greatly in memory, we can expect lots of cache misses and branch mispredictions. The fastest possible way is to have C strings in an array and run a function over it. If… — DeathArrow, 2023-12
He isn't saying that you should spend time on optimising your code, rather that you should write performant code from the beginning by not giving the cpu more work than it needs to do to perform the task, typically by avoiding OO paradigms, followings things like SOLID, etc. Then if needed, real optimisation can handle the hotspots in your code and is typically something that only a few of an org… — Hikikomori, 2023-04
I'm going to pre-emptively link Casey Muratori's Refterm Lecture Part 1[0], because invariably when this topic comes up people are all "but optimization takes time and we gotta push the new features right now or the market will eat us." Computers are so ludicrously fast these days that in the majority of cases you do not need optimization at all. You do need de-pessimization though. [VIDEO] — AnIdiotOnTheNet, 2023-02

Related videos