zenna / Arrows.jl

14 stars 2 forks source link

Make `CompArrow` and different composites subtype it #91

Open zenna opened 6 years ago

zenna commented 6 years ago

Currently we have to choose between making lots and lots of primitive ops, or not being able to dispatch based on it. For example dot can be composite written in terms of + and *, but if we want to translate to TensorFlows Dot operator it is difficult because we are unable to distinguish CompArrows at the type level.