Thicket thicket
ocaml
REPOS 1

Multicore covers libraries for effects, domains and concurrent programming.

W24.2026 · 8–14 Junocaml-multicore/eio

Features

  • Incremental directory reading (merged): New Eio.Path.with_dir_entries and read_dir_entries APIs stream directory entries without materialising the full list. Benchmarks show ~13× speedup on eio_linux (1.46 s → 110 ms) for a 300k-entry tree. #821

  • Path.open_dir renamed to open_subtree (merged): The function that confines a Path.t to a subtree (via RESOLVE_BENEATH on Linux) now carries a name that signals the security restriction. Old name retained as a non-deprecated alias. #853

  • Pseudoterminal support (open): Eio_unix.Pty creates ptys via posix_openpt; a login_tty fork action starts a new session and dups the tty onto the child's stdio. Exposed as ?login_tty on Eio_unix.Process.spawn_unix. #531

  • Process-spawn errno propagation (open): Failed fork actions now report the child's errno to the parent, which raises Unix.Unix_error instead of a generic Failure. Adds Eio.Process.Argument_list_too_long (E2BIG) and maps ENOENT/EACCES/ENOEXEC to dedicated errors. #854

Fixes

  • eio_linux ENOMEM on ring init (merged): io_uring_queue_init failure due to insufficient memory now falls back to eio_posix instead of raising an unhandled Unix_error. #852

  • eio_linux scheduler simplification (merged): Fixed-buffer read/write retry logic removed from the scheduler; the scheduler now returns bytes transferred and the fiber re-issues if needed. Eliminates special-case job types and the file_offset distinction. #849

  • Windows backend: 100 % CPU on idle bidirectional copy (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 and Releases

  • Fixed buffers and ZFS kernel bug (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