ocaml-multicore / picos

Interoperable effects based concurrency
https://ocaml-multicore.github.io/picos/doc/picos/index.html
ISC License
86 stars 3 forks source link

Use dune to build picos core as a single file #304

Closed polytypic closed 2 weeks ago

polytypic commented 2 weeks ago

First of all, there has been some interest in that Picos would be just a single file. This PR can be seen as a step towards that as the end result is that a picos.ml file is generated that has the entire core library with only dependency to backoff (on OCaml 5).

Second, the native OCaml compiler generates huge amounts of code when one uses the module system to splice together modules. This PR reduces the size of the core Picos library significantly.