Tag
Notes tagged “python”
Every note filed under python, newest first.
A filtered view of the notes.
2026
- With the Grain
The original turned a big integer into bytes one byte at a time, fighting the machine. The rewrite went with its grain — whole machine words, packed in C. That structural choice is why it's still ~15× faster fifteen years on, even as CPython sped up underneath it.
- Designing an API That Outlives You
I wrote watchdog in 2010. Fifteen years and three maintainers later it still ships the same public API I designed — here's what made it last.
2009
- Implementing a Pythonic range() function in JavaScript
A Python-style range() helper instead of typing out a sequence by hand.