Thicket thicket
ocaml
REPOS 9

Multicore covers libraries for effects, domains and concurrent programming.

W49.2024 · 2–8 Dec

Multicore repository summaries

2 active · 7 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Fixes

  • Eio (PR #787): merged. Ignores ECONNRESET returned by close on 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 chmod to the Eio_linux and Eio_posix backends. Windows permission semantics remain unresolved.

ocaml-multicore/saturn

Permalink

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)

7 repositories · no changes