Simple Code, High Performance
Video Statistics and Information
Channel: Molly Rocket
Views: 94,581
Rating: undefined out of 5
Keywords: Handmade Hero
Id: Ge3aKEmZcqY
Channel Id: undefined
Length: 170min 14sec (10214 seconds)
Published: Wed Oct 13 2021
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
In my experience, people write complicated code because writing simple code is hard. With many problems, it's often much easier to increase complexity and extend an existing structure to cover your use case than it is to reconsider whether the extended scope allows for reducing (and simplifying) code by reframing the problem entirely.
As much as I like listening to Casey and seeing what he achieves, he really needs to work on being more concise in his explanations of things. This video could likely be half and hour and lose very little of the actual detail and value he is providing.
Every line of code I write is perfectly elegant and beautiful, until two months later when I have to look at it again.
wait, is he writing on the board in reverse?
Most of the time complicated code is because there are complicated business rules.
Poorly run businesses don't understand that every time they say "Do this, except in that case do this other thing", they're making their code more complicated and less maintainable and slower.
Is this guy writing in reverse?
When I first came across this guy and Jonathan Blow, I noticed that they were very dedicated to performance and are obviously skilled.
But for whatever reason, something just feels off about them. I don't know what, to this day.
This was interesting, but I don't know if I would consider the final product to be simple code. There is a lot of knowledge baked into the final 10 lines of SIMD processing (or however you would say this). Aside from learning how to interact closely with the processor, the main idea of the 2.5 hours is "Look at the unnecessary steps in your code and try to remove duplicative work" which probably doesn't need to be that long of a lecture.
tl:dw?