Thicket thicket
ocaml
REPOS 9

Multicore covers libraries for effects, domains and concurrent programming.

W24.2026 · 8–14 JunMulticore

Features

  • eio (merged): Eio.Path.with_dir_entries and read_dir_entries stream directory entries without materialising the full list. ~13× speedup on eio_linux for a 300k-entry tree. #821
  • eio (merged): Path.open_dir renamed to open_subtree; the old name remains as a non-deprecated alias. #853
  • eio (open): Eio_unix.Pty creates ptys via posix_openpt; ?login_tty on spawn_unix starts a new session and dups the tty onto child stdio. #531
  • eio (open): Failed fork actions now report the child's errno to the parent, raising Unix.Unix_error instead of a generic Failure. Adds dedicated errors for E2BIG, ENOENT, EACCES, ENOEXEC. #854
  • ocaml-uring (merged): Uring.Socket creation accepts an optional ~flags argument (default CLOEXEC), setting socket flags without a separate fcntl call. #151
  • ocaml-uring (open): Per-operation RWF flags (e.g. RWF_DSYNC, RWF_NOWAIT) exposed on read/write submissions. Requires Linux 6.x for some flags. #154
  • ocaml-uring (open): Bindings for vectored readv/writev on fixed buffers; prior C stubs were misnamed and did not issue vectored syscalls. #155

Fixes

  • eio (merged): eio_linux falls back to eio_posix when io_uring_queue_init fails with ENOMEM, instead of raising an unhandled Unix_error. #852
  • eio (merged): Fixed-buffer read/write retry logic removed from the eio_linux scheduler; the scheduler returns bytes transferred and the fiber re-issues if needed. #849
  • eio (open, under investigation): A two-way Eio.Flow.copy proxy holds a full core on Windows while the same workload is idle on Linux. Minimal reproducer provided. #837

Compatibility

  • eio (open proposal): On old ZFS versions, fixed-buffer I/O triggers a kernel bug requiring reboot. Proposal to disable fixed buffers by default in eio_linux or gate the uring backend on kernel ≥ 6.17. #845
  • ocaml-uring (open): Buffer backing type switches from Bigarray/Cstruct to Bytes. Benchmarks show no I/O throughput regression; sub-2 KB buffers are clamped to 2 KB to stay immovable. #153