Multicore covers libraries for effects, domains and concurrent programming.
Multicore repository summaries
2 active · 7 unchanged
ocaml-multicore/eio
PermalinkFixes
- Eio (PR #787): merged. Ignores
ECONNRESETreturned bycloseon FreeBSD, where the descriptor is still deallocated despite the error. Fixes #786. - Eio (issue #788): open. Parallel writes to stdout via the io_uring backend raise
Eio.Io Unix_error (Interrupted system call, "writev", "")on Linux 6.12. Reproduced with 2+ domains; not with 1.
Features
- Eio (PR #785): open. Adds
chmodto theEio_linuxandEio_posixbackends. Windows permission semantics remain unresolved.
ocaml-multicore/saturn
PermalinkFeatures
-
Saturn v1.0.0: Released 2024-12-05. Adds lockfree Bag, Bounded Queue, Bounded Stack, and Htbl from Picos; removes the
Saturn_lockfreepackage,relaxed_queue, and theMmodule inws_deque. (release) -
Saturn Mpsc queue: Rewritten as a single-consumer structure aligned with Eio.
is_emptyandcloseare now consumer-only; addsdrop_exn,push_all,of_list; renamespop/peektopop_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, andcompare_and_removeto 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_datathan to Saturn. (issue #31) -
Saturn
copy_as_paddedaudit: 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)