Thicket thicket
ocaml
REPOS 1

Multicore covers libraries for effects, domains and concurrent programming.

W49.2024 · 2–8 Decocaml-multicore/saturn

Features

  • Saturn v1.0.0: Released 2024-12-05. Adds lockfree Bag, Bounded Queue, Bounded Stack, and Htbl from Picos; removes the Saturn_lockfree package, relaxed_queue, and the M module in ws_deque. (release)

  • Saturn Mpsc queue: Rewritten as a single-consumer structure aligned with Eio. is_empty and close are now consumer-only; adds drop_exn, push_all, of_list; renames pop/peek to pop_exn/peek_exn. (#162)

  • Saturn lockfree Bag: Hash-table-based concurrent bag merged from Picos. Unordered insert/remove eliminates the ordering contention points present in queues and stacks. (#173)

  • Saturn Skiplist: Documentation updated with examples. Issue #178 proposes adding try_set, compare_and_set, and compare_and_remove to match the Htbl API. (#172, issue #178)

Research and Ongoing Work

  • Saturn priority queue: A skip-list-based priority queue is in progress, following the algorithm in The Art of Multiprocessor Programming. A double-CAS variant is noted as better suited to kcas_data than to Saturn. (issue #31)

  • Saturn copy_as_padded audit: Open discussion on whether padding on data-structure root records is always necessary. Padding increases memory and GC pressure; false sharing on the long-lived root is the primary justification. (issue #171)