Differentiating Stateful Systems
Differentiating Stateful Systems A stateful system is a program whose output depends not only on its explicit inputs, but also on stored state. The state may live in variables, objects, arrays, files, random number generators, caches, mutable buffers, optimizers, simulators, databases, or external services. In pure mathematical notation, a function has the form: $$ y = f(x) $$ A stateful computation has the form: $$ (y, s') = F(x, s)...