Diffractor.jl
Diffractor.jl copied to clipboard
Teach Forward Mode about Effects and Zeros
In forwards mode, if you can prove code is effect free, then it is safe to not execute it if you are just pushing forward zeros & you don't need the primal result. There might be some other things we can do with effects here too.
Probably worth cross-referencing what is happening in Dex-land with effects.
Related: https://github.com/JuliaDiff/Diffractor.jl/pull/109
what's the relation?
I still don't properly understand #109 but one of the cases Keno thinks it is illegal is if it is used on code with side-effects.