Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Composable concurrency primitives with OCaml effects handlers (unreleased)

License

dbuenzli/affect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Composable concurrency primitives with OCaml effects handlers (unreleased)

Resources

License

Stars

Watchers

Forks