%%VERSION%%
Affect provides composable concurrency primitives for OCaml using the effect handlers available in OCaml 5.0.
Affect should be seen as an experiment at that point.
Affect is distributed under the ISC license. It has no dependencies.
Homepage: https://erratique.ch/software/affect
Affect can be installed with opam
in a 5.0 switch:
opam switch create 5.0.0+trunk
opam pin add affect https://erratique.ch/repos/affect.git
If you don't use opam
consult the opam
file for build
instructions.
The documentation can be consulted online or via odig doc affect
.
Questions are welcome but better asked on the OCaml forum than on the issue tracker.
A few basic sample programs can be found in the test directory.
ping.ml
, client and server usingFunix
to do useless networking on your machine.mouse.ml
, proof of concept interfacing with the SDL event loop.
They are installed in the opam var affect:doc
directory.
If you have the repo and topkg
installed you can run them with:
topkg build
topkg run -- ping # repeat as needed
topkg run -- mouse