Diffractor.jl icon indicating copy to clipboard operation
Diffractor.jl copied to clipboard

Teach Forward Mode about Effects and Zeros

Open oxinabox opened this issue 2 years ago • 3 comments

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.

oxinabox avatar May 24 '23 06:05 oxinabox

Related: https://github.com/JuliaDiff/Diffractor.jl/pull/109

oxinabox avatar May 25 '23 04:05 oxinabox

what's the relation?

oscardssmith avatar May 25 '23 04:05 oscardssmith

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.

oxinabox avatar May 25 '23 04:05 oxinabox