This diffusion and flow matching tutorial now contains the derivations of continuous and discrete diffusion methods for text. It covers continuous diffusion in the simplex and over embeddings. In the discrete case, it derives uniform and masked diffusion. It also has an experiment in Appendix with C comparing diffusion and autoregressive LLMs at laptop scale.