Effects Without Monads: Non-determinism (Back to the Meta Language)
https://arxiv.org/pdf/1905.06544.pdf
Effects Without Monads: Non-determinism
Back to the Meta Language
Oleg Kiselyov, 2019
Effects Without Monads: Non-determinism
Back to the Meta Language
Oleg Kiselyov, 2019
no subject
Sad.
no subject
http://okmij.org/ftp/Computation/having-effect.html
no subject
no subject
The idea is that any effect is just an interaction with some external context (what is a composition of handlers) through simple freer monad T q a = Done a | Req q (a -> T q a) where q is type of effects list (union) and a is a domain, or in simple cases it could be even a just direct composition of algebras. Extensibility is achieved through tagless final encoding.
Also he has some intuition of lambda or p calculus as effects systems - so as even variable dereference, abstraction and application are really effects (at least in parallel and distribute environments, but even just an environment for bound variables is a stateful effect in denotation).