Thicket thicket
ocaml
REPOS 1

Multicore covers libraries for effects, domains and concurrent programming.

W47.2024 · 18–24 Novocaml-multicore/saturn

Features

  • Saturn work-stealing deque: Merged optimization eliminates false sharing and reduces contention. Benchmarks show ~2.4× throughput at 8 workers (177→428 spawns/time). By polytypic. #124

  • Saturn bounded queue: Merged non-blocking bounded queue based on Michael-Scott with cached capacity. Avoids a Picos dependency; provides push, pop, try_push, length, is_empty. #160

  • Saturn bounded stack: Merged bounded stack for Saturn 1.0, non-blocking to avoid a Picos dependency. #156

  • Saturn Treiber stack: Merged expansion adds of_list, push_all, pop_all, of_seq, add_seq, to_seq, peek_exn, drop_exn, set_exn, try_compare_and_pop, and try_compare_and_set. #158

  • Saturn MPSC queue: Proposed rewrite aligns the queue with Eio's single-consumer model. Adds drop_exn, push_all, of_list; renames pop/peek to pop_exn/peek_exn; restricts is_empty and close to the consumer. #162

  • Saturn queue API uniformization: Three proposed PRs add drop_exn, of_list, and consistent documentation across SPSC, Michael-Scott, and work-stealing deque modules. #165, #167, #168

Fixes

  • Saturn Treiber stack: Merged fix for minor documentation and List.@ usage issues. #163

Compatibility and Releases

  • Saturn bounded queue design: PR #83 (blocking bounded queue via Picos) closed without merge; the non-blocking approach in PR #160 supersedes it to avoid a Picos dependency. #83