Reverse-mode Automatic Differentiation using delimited continuations (shift and reset)
shift
reset
Introductory blog post : http://ocramz.github.io/haskell/automatic-differentiation/2021/07/19/ad-delcont.html