ocramz / ad-delcont

Reverse-mode automatic differentiation with delimited continuations
BSD 3-Clause "New" or "Revised" License
13 stars 2 forks source link

Radical redesign #1

Closed ocramz closed 3 years ago

ocramz commented 3 years ago

Currently, the core abstraction of this library is ContT r (ST s) a. This loosely follows from the design of Wang, ICFP'19 since we need both the continuation monad and mutable references.

However, since the results are numerically incorrect, (see rad (\x -> x + x) 2 for example), a redesign is in order.

ocramz commented 3 years ago

It works