Abhinav Upadhyay
@abhi9u
NetBSD Dev | Python Internals, AI, compilers, databases, & performance engineering | Join 13k+ other readers at https://blog.codingconfessions.com/
People talk about profiling to find bottlenecks, but no one explains how to fix them. Many devs shoot in the dark and when the optimization backfires, they aren't sure how to proceed. This is where you wish for a theory to systematically reason about the optimizations so that…

Gameboy assembly had conditional call and ret instructions. Very convenient and addresses a common need when writing complex logic.

TIL that just blindly doing #[inline] won't always lead to better performance Thanks for the article @abhi9u
The more oop you write, the more poop you get. Try for yourself: oopoopoop
Still too similar to poop, to me 👿
TIL: The earliest example of computational complexity is from 1844 when Lamé studied worst case complexity of Euclid's algorithm for computing GCD.

The rivalry between Knuth and Douglas McIlroy is well known. While McIlroy favoured real-world implementation, Knuth was known for mathematical and algorithmic elegance. When asked to implement a program to list the most frequent words in a file, Knuth wrote a 10-page program…

Bengaluru Systems is proud to partner with @fifthel and @abhi9u @anscombes4tet @Aditi_ahj on this fantastic workshop - if you want to learn how best to read a research paper and get the most out of it - in a hands-on fashion - don't miss this workshop :D
After three-four weeks, we have 'published' our little venture - "beyond the jargon - making research papers work for the real-world" hasgeek.com/fifthelephant/…
My north star for choosing topics is their (relative) uniqueness, and this one is probably the most original piece I've ever written. The idea itself is not new but the angle of holistically analyzing various optimizations is something i've not seen anywhere else.
People talk about profiling to find bottlenecks, but no one explains how to fix them. Many devs shoot in the dark and when the optimization backfires, they aren't sure how to proceed. This is where you wish for a theory to systematically reason about the optimizations so that…
@MoHFW_INDIA @JPNadda My mom is a retired govt. employee who recently retired, got diagnosed with Cancer. Your useless govt. won't even let her CGHS card be created for her to receive treatment. My elderly parents have gone thrice but some director refuses to sign approval.
Join us at @fifthel next week for a free hands-on paper reading workshop where we’ll dissect a ML-Sys '25 paper from problem to tradeoffs to “can this work for me? Doing this with @abhi9u and some of my favorite college seniors @Aditi_ahj @AnirudhRowjee :)
When optimizing a loop in Python, a performance trick is to create a local alias for global functions or variables used in the loop E.g.: l = len for _ in range(1_000_000): l(lst) But we still need it given so many perf improvements in Python? I did a benchmark and it appears…
Thank you so much, Vipul. I'm very grateful for your sustained support.
I love sponsoring open source projects/people. It is a token of respect. Thank you for making my life better. Sponsoring - zig, tokio-rs and Abhinav Upadhyay this month!
Here's a link for the eBook (PDF) version of my book. For some reason it is on a different web-page. elektor.com/products/maste…