aliquote.org

Latest micro-posts

You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.

2025-05-21 10:25 #

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.

2025-05-20 20:06 #

/me is listening to “Danny” by The Durutti Column

2025-05-20 13:35 #
2025-05-20 12:57 #

TIL about basedpyright, which provides better defaults and additional capabilities compared to pyright, like inlay hints. #python

2025-05-19 10:10 #

Differentiable Programming from Scratch: A clear and concise exposition of DP applied to computer graphics.

2025-05-18 20:00 #

[Numpy] took away indices and replaced them with broadcasting. And broadcasting cannot fill indices’ shoes. — I don’t like NumPy

2025-05-17 19:59 #

/me is listening to “Gravity (Still)” by Hooverphonic

2025-05-16 16:20 #

A leap year check in three instructions. In Racket:

(define (leap-year? x) (<= (bitwise-and (* x 1073750999) 3221352463) 126976))

img

See also this followup post by John Cook.