SkillAgentSearch skills...

Affect

Composable concurrency primitives with OCaml effects handlers (unreleased)

Install / Use

/learn @dbuenzli/Affect
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Affect — Concurrency and parallelism for OCaml 5

Affect is a streamlined and natural concurrency model for OCaml 5. It just provides parallel asynchronous function calls with structured cooperative concurrency and cancellation.

Affect is distributed under the ISC license. It has no dependencies.

Homepage: https://erratique.ch/software/affect

Installation

Affect can be installed with opam:

opam pin add affect https://erratique.ch/repos/affect.git

If you don't use opam consult the opam file for build instructions.

Documentation

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.

Sample code

A few basic sample programs can be found in the test directory.

  • ping.ml, client and server using Funix to do useless networking on your machine.
  • mouse.ml, proof of concept interfacing with the SDL event loop.
  • happy_eyeballs.ml, an implementation of a happy eyeballs

You can run them with b0 -- ping or b0 -- mouse.

Related Skills

View on GitHub
GitHub Stars44
CategoryDevelopment
Updated2mo ago
Forks4

Languages

OCaml

Security Score

90/100

Audited on Jan 7, 2026

No findings