domainslib provides control and data structure for parallel programming using domains.
The supported data structures are:
See examples for usage.
The library can be installed using multicore-opam, an OPAM repository of multicore specific packages.
$ opam switch create 4.12.0+domains+effects
$ opam install domainslibIf you are interested in hacking on the implementation, then opam pin this repository:
First install the multicore compiler and dune:
$ opam switch create 4.12.0+domains+effects
$ opam install duneThen, pin a clone of this repo:
$ git clone https://github.com/ocaml-multicore/domainslib
$ cd domainslib
$ opam pin add domainslib file://`pwd`