You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.
Perfect Random Floating-Point Numbers. TL;DR generate floating-point numbers with probabilities given by drawing a real number and then rounding to floating point.
/me is listening to “Danny” by The Durutti Column
A simple search engine from scratch. Looks interesting.
TIL about basedpyright, which provides better defaults and additional capabilities compared to pyright, like inlay hints. #python
Differentiable Programming from Scratch: A clear and concise exposition of DP applied to computer graphics.
[Numpy] took away indices and replaced them with broadcasting. And broadcasting cannot fill indices’ shoes. — I don’t like NumPy
/me is listening to “Gravity (Still)” by Hooverphonic
A leap year check in three instructions. In Racket:
(define (leap-year? x) (<= (bitwise-and (* x 1073750999) 3221352463) 126976))

See also this followup post by John Cook.