How diffusion models work: the math from scratch | Hacker News Reader