anoma / geb

A Categorical View of Computation
https://anoma.github.io/geb/
GNU General Public License v3.0
28 stars 10 forks source link

Error node needs optimization to reduce introduced circuitry #132

Open rokopt opened 1 year ago

rokopt commented 1 year ago

The error node used by clients to throw a form of exception (see #90 and #129) currently introduces a lot of new circuitry through the addition of many Maybes. This will need optimization. @mariari has suggested introducing a crash type for cases where we don't need to pass errors back but can simply terminate the computation (ideally inducing VampIR to return some selected error code).