Text this: Forward- or reverse-mode automatic differentiation