ocaml-multicore / picos

Interoperable effects based concurrency

Home Page:https://ocaml-multicore.github.io/picos/doc/picos/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API reference

Picos — Interoperable effects based concurrency

Picos, or pico-scheduler framework, is a framework for building interoperable elements of effects based cooperative concurrent programming models.

Why?

There are already several concrete effects-based concurrent programming libraries and models being developed. Here is a list of some such publicly available projects:*

  1. Affect — “Composable concurrency primitives with OCaml effects handlers (unreleased)”,
  2. Domainslib — “Nested-parallel programming”,
  3. Eio — “Effects-Based Parallel IO for OCaml”,
  4. Miou — “a simple scheduler for OCaml 5”,
  5. Moonpool — “[beta] Commodity thread pools for OCaml 5”, and
  6. Riot — “An actor-model multi-core scheduler for OCaml 5”.

All of the above libraries are mutually incompatible with each other with the exception that Domainslib, Eio, and Moonpool implement an earlier interoperability proposal called domain-local-await or DLA, which allows a concurrent programming library like Kcas* to work on all of those. Unfortunately, DLA, by itself, is known to be insufficient and the design has not been universally accepted.

By introducing an interoperability framework and key libraries, such as an IO library, for such a framework, we hope that the scarce resources of the OCaml community are not further divided into mutually incompatible ecosystems built on top of such mutually incompatible concurrent programming libraries, while, simultaneously, making it possible to experiment with many kinds of concurrent programming models.

It should be technically* possible to

  1. make all of the previously mentioned libraries Picos compatible, i.e. to handle the Picos effects, and
  2. have their elements implemented in Picos, i.e. to make them usable on other Picos-compatible schedulers.

Please read the introduction section of the reference manual for further information.

About

Interoperable effects based concurrency

https://ocaml-multicore.github.io/picos/doc/picos/index.html

License:ISC License


Languages

Language:OCaml 97.9%Language:Shell 1.2%Language:JavaScript 0.9%