Thicket thicket
ocaml
REPOS 27
W24.2026 · 8–14 Jun

All repository summaries

14 active · 13 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

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

ocaml-multicore/ocaml-uring

Permalink

Features

  • Merged: Uring.Socket creation now accepts an optional ~flags argument (default CLOEXEC), letting callers set socket flags at creation time without a separate fcntl call. (#151)
  • Open: per-operation RWF flags (e.g. RWF_DSYNC, RWF_NOWAIT) exposed on read/write submissions, enabling Eio_linux to skip redundant fsync and avoid buffer-cache pollution on large copies. Requires Linux 6.x for some flags. (#154)
  • Open: bindings for vectored readv/writev on fixed buffers; the prior C stubs were misnamed and did not issue vectored syscalls. (#155)

Compatibility and Releases

  • Open: buffer backing type switches from Bigarray/Cstruct to Bytes. Benchmarks show no I/O throughput regression, lower large-buffer allocation cost, and a small penalty for sub-2 KB buffers (clamped to 2 KB to stay immovable). (#153)
  • Closed (not merged): the earlier Cstruct-to-Bstruct slab-allocator experiment is superseded by the simpler Bytes approach in #153. (#101)
  • Closed (not merged): a Linux-specific Errno module was deemed redundant because Eio already handles retry via Unix_error; the author will revisit if specific codes prove necessary. (#152)

ocaml/dune

Permalink

Fixes

  • Dune package management: packages containing symlinks (e.g. menhir) are no longer re-downloaded on every dune build. Fixed in #14509.

  • Dune lock directory: spurious (when false "") entries are removed from generated lock-directory Run actions. Merged in #15128, fixing #15090 and #15099.

  • Dune Configurator: passes --personality to pkgconf only when version ≥ 1.7.0, fixing build failures on RHEL 8. Merged in #15142.

Releases

  • Dune 3.24.0: release branch is open; the melange OCaml 4.14 backport (#15091) is the latest merge. Tracker: #14620.

Features

  • Dune Configurator: adds Pkg_config.query_variable, a wrapper around pkg-config --variable=<name> <package> for querying package-specific variables. Merged in #15078.

  • Dune per-module include flags: a consumer's compile command now receives -I/-H only for libraries its ocamldep reference set reaches. Merged in #14518.

Compatibility

  • Dune 3.23+ (diff) action: the action now distinguishes an empty file from a non-existent file, breaking test suites that omit reference files. Use (diff?) for optional arguments. Closed in #15134.

  • Dune 3.22+ Rocq/Coq: coq-elpi 2.6.0 and other Rocq packages fail to build, likely due to removed legacy plugin loading. Tracked in #15125 (open).

ocaml/merlin

Permalink

Fixes

  • locate query now resolves the correct binding in let-punning syntax (e.g. let+ x in x), returning the outer definition instead of "Already at definition point." Merged in #2066; closes #1796 and #1579.

  • Signature help now appears when a function's type is expressed through a type alias (e.g. val f : t where type t = int -> unit). Issue #1927 closed 2026-06-08.

Compatibility and Releases

  • Test harness updated to locate binaries via which rather than dune-internal install paths, preserving compatibility with dune 3.24. Merged in #2078.

  • Upgrade to OCaml 5.5 is in progress as an open pull request: #2077.

Open Issues

  • locate still returns an incorrect position for types defined via functor application (e.g. type t = M(T).t). Confirmed reproducible; #1610 remains open.

  • In .mli files, locate resolves open Import to the submodule Import.Import rather than the top-level module. #1748 remains open; a regression test is planned.

ocaml/ocaml

Permalink

Features

  • Configurable domain stack size (open, #14860): A new S setting in OCAMLRUNPARAM (e.g. OCAMLRUNPARAM='S=50M') sets the per-domain stack size. Addresses stack overflows in C FFI code on spawned domains (#14195).

  • Weak.iter, Weak.iteri, Weak.foldi_left (open, #14792): New stdlib functions that iterate live slots in a weak array. foldi_left is a C primitive passing each element directly to the callback, avoiding one heap allocation per live element.

  • Extensible IO channels (open, #14775): Proposal implementing the modular IO RFC. Adds user-defined in/out channels alongside existing C channels (renamed "native"). Under stdlib-team review.

Fixes

  • mark_header lazy-tag check (merged, #14856): Corrects an inverted comparison introduced in #14816 that could cause memory corruption and SEGVs in multi-domain programs using laziness. Not backported to 5.5.

  • Filename.quote_command redirection escaping on Windows (merged, #14853): Redirection arguments (e.g. ~stdout:"output&false") were not fully escaped, allowing command injection via Sys.command. The fix is proposed for backport to 5.5.

  • tfunctor expansion-node update (merged, #14845): Fixes an uncaught exception when expansion nodes contain tfunctor arguments. Also restores type abbreviations involving module-dependent types in copy_sep.

  • Native Iatomic_fetch_add on all backends (open, #14575): Replaces the C call path with inline assembly on amd64, arm64, riscv, and power. Benchmarks show the existing C path is faster in single-domain mode due to the caml_domain_alone() fast path; the native path targets multi-domain performance.

  • Object finalizer prevents collection (open, #14861): A Gc.finalise_last registered in an initializer block captures self implicitly through field lookup, creating a reference cycle that blocks garbage collection. Workaround: wrap the finalizer in a standalone function.

ocaml/ocaml-lsp

Permalink

Features

  • Ocamlgrep structural search (proposal, open). #1607 proposes integrating ocamlgrep's cmt-based structural search into ocaml-lsp. Comments suggest the integration may shift to editor plugins consuming JSON from an ocamlgrep command rather than an LSP extension.

  • Hover on compiler warnings (ongoing PR). #1606 by PizieDust adds hover information for compiler warnings in the editor (addresses #717). Review discussion points to reusing the compiler's Warnings.parse_options interface.

ocaml/ocaml.org

Permalink

Features

  • Merged: Backstage OCaml page updated with a WASI/Wasm prototype. exnref-based exception handling is now the default for WASI binaries; no extra compile flags required. (#3667)
  • Open: Add Amazon Web Services to the industrial users page. AWS uses HOL Light (an OCaml-based theorem prover) for formal verification in AWS-LC. (#3681)

Compatibility and Releases

  • Closed (not merged): Proposed adding an explicit note that OCaml 4.14 remains supported on the Compiler Release Cycle page. Closed because the clarification was already present. (#3675)

Fixes

  • Closed: The first code example in A Tour of OCaml contained a stray # that caused a syntax error in utop. Corrected. (#3683)
  • Merged: Workshop 2026 "Important Dates" pills rendered near-black text on an orange background. Switched to white text for legibility in both themes. (#3673)
  • Open: Garbage-collector tutorial to note that Gc.tune requires Jane Street's Core library, not Stdlib; Gc.get/Gc.set are the stdlib equivalents. (#3682)

ocaml/odoc

Permalink

Features

  • OxCaml modalities (e.g. @@ portable, @@ shared) are now rendered in generated documentation. Merged by @art-w. #1420
  • The [@@zero_alloc arity N] annotation no longer prints N when it equals the function's own arity, reducing visual noise. Merged by @Leonidas-from-XIV. #1444

Ongoing

  • OxCaml include functor rendering is requested but not yet implemented. Issue updated 2026-06-11. #1419
  • The OxCaml tracking issue lists remaining sub-tasks including #1443 and #1390. Updated 2026-06-10. #1411

Fixes

  • CI lower-bound builds failed on missing .cmx files in ocamlfind 1.9.6. The test constraint is now >= 1.9.8. Merged by @Leonidas-from-XIV. #1446

Compatibility and Releases

  • The ppx_expect dependency is removed; existing tests are retained under a different harness. Merged by @jonludlam. #1445
  • The odoc-bench.opam file is removed, eliminating unused benchmark dependencies from test runs. Merged by @jonludlam. #1447

ocaml/opam

Permalink

Features

  • New prefix and prefixexec sections in .install files, enabling path-relative installation of files and executables. Queued for the next release; dune maintainers are evaluating adoption. (#6938, open)
  • opam init --bare skips default compiler selection, reducing init time by ~2.5 s. Fixes #5815. (#6957, open)

Fixes

  • Reftest for repository HTTP operations updated to handle timestamps embedded by opam admin index, restoring reproducibility on Windows CI. (#6961, merged 2026-06-10)
  • opam install fails with exit code 99 when the git repository owner differs from the invoking user, because git ls-files rejects dubious ownership. (#6963, open)

Compatibility and Releases

  • Removes 366 unused exported values, fields, and constructors from the opam API. Downstream packages (opam-rt, opam-publish, opam-bundle) reference removed symbols and will need updates. (#6954, open)
  • opam switch create with multiple configured repositories can fail due to repo priority; --debug output does not show which repositories the solver consulted. (#6965, open)
  • opam lint supports promoting warnings to errors via --warnings but offers no mechanism to demote a default error (e.g. Error 46) to a warning. (#6964, open)

ocaml/opam-repository

Permalink

Features

  • OCaml 5.5.0 RC1 added to the repository. Includes a stdlib fix for a filename-quoting injection channel on Windows, three runtime fixes (bigarray accounting, thread-safe getgrnam_r/getpwnam_r, ephemerons), and a compiler CLI fix for hidden-directory load-path leakage. (#29923, merged 2026-06-11)

  • New packages merged: awskit (10 packages, AWS S3 client with Eio/Lwt adapters), kind2.3.0.0 (SMT-based Lustre model checker), msts.0.1.0 (geocentric lunar ephemeris), syto.0.1.0 (POSIX fnmatch), luna.0.1.0 (Luhn validation), transom.0.2.0 (WebView IPC), doctor.0.4.0 (env diagnostics CLI), contract.0.2.0 (typed HTTP API contracts), cabal.0.1.0 (agent backend abstraction), melange-edn.0.3.0. (#29980, #30019, #30045, #30020, #30030, #30037, #30015, #30014, #30008, #30028)

  • mnet 0.0.3 adds a new mnet-ssh package implementing SSH for unikernels, plus a TCP daemon kill API. (#30011, merged 2026-06-11)

Fixes

  • Caqti 2.3.2 fixes timed cleanup of idle entries from connection pools. (#30026, merged 2026-06-12)

  • Windows depext recompilation fix: installing conf-c++ and other conf- packages no longer triggers a full compiler rebuild. The 0install solver now selects only the required depext. (#30040, merged 2026-06-14)

Compatibility and Releases

  • migra 2.0.0 (breaking): Migra_engine.* modules are now private; logging no longer installs a reporter as a side effect of linking—call Migra.Logging.setup () explicitly. Removed FileNotFound, DatabaseNotFound, TransactionFailed error variants. (#30033, merged 2026-06-14)

  • ocaml-ai-sdk 0.4 (breaking): Ai_provider.Prompt.System, Ai_provider.Tool.t, and Ai_core.Core_tool.t gain a provider_options field; the standalone Provider_metadata stream constructor is removed. Anthropic and OpenRouter providers gain prompt-caching support. (#30005, merged 2026-06-08)

  • dune 3.24.0~alpha2 PR was closed without merging on 2026-06-14 after revdeps triage identified a %{bin:...} executability regression and melange build errors. The alpha is not available in the repository. (#29996)

  • resource-pooling 1.3 (open): replaces deprecated lwt_log with logs/logs.lwt, removing the lwt < 6.0.0 upper bound. Server_pool.section type changes from Lwt_log.section to Logs.src. (#30048)

ocsigen/js_of_ocaml

Permalink

Features

  • wasm_of_ocaml --enable wasi now produces a WASI binary runnable by wasmtime or wizeng. Merged in #1831 (by vouillon). Output convention unchanged: a .js file plus an .assets/ directory.

  • Documentation migrated from wiki to odoc + wodoc under a single dune build @doc target. Merged in #2261 (by balat). The wiki pipeline, Python tooling, and highlight.js are removed; wodoc build generates the themed site published to gh-pages.

Compatibility and Releases

  • Release 6.4 is tracked in #2241 (ongoing), targeting OCaml 5.5 compatibility. A comment notes OCaml 5.5.0 is expected within a week of the 2026-06-12 update.

Fixes

  • Int64.shift_right returned wrong values for negative operands with shift counts 41–47 (e.g. Int64.shift_right (-1L) 44 gave 0xffffffffff0fffff instead of -1L). Merged in #2278.

  • Str engine: SIMPLEOPT/SIMPLESTAR/SIMPLEPLUS opcodes now bound-check against string length, fixing an infinite loop on patterns like [^;]*; against a string without a semicolon. Merged in #2277. Instruction arguments are no longer masked to 8 bits, fixing silent mismatches for regexps with >256 constant-pool entries. Merged in #2298.

  • Ephemeron data WeakMaps are now keyed on the dereferenced key object rather than the WeakRef wrapper, restoring the liveness model: data is collected once all keys are dead. Merged in #2274.

  • The share_constant pass now correctly matches require (not requires), preventing node-target programs from emitting require(str_node_fs) where a bundler expects a literal. Merged in #2284.

  • Marshal BLOCK32 reader uses an unsigned shift (>>> 10), fixing round-trip of blocks with ≥ 2²¹ fields that previously desynchronised the stream. Merged in #2275.

oxcaml/merlin

Permalink

Compatibility and Releases

  • PR #239 ("[5.4] Merge minus-37", dkalinichenko-js) was closed without merging on 2026-06-09. No body, labels, or comments are present; no user-facing change is described.

No features, fixes, research developments, or experimental compiler changes are evidenced in this interval.

oxcaml/opam-repository

Permalink

Features

  • Remaining Dune-built packages added to the OxCaml opam repository, completing the set needed to build OxCaml tooling under Dune. Merged 2026-06-11 by jonludlam. #49

Compatibility

  • Dune's switch to a stricter patch implementation (ocaml/dune#14177) invalidated OxCaml's build patch; fuzzing support is planned upstream in ocaml/dune#15146. A temporary workaround pins a dummy oxcaml-dune package to sidestep a dependency conflict during dune lock. #51

Fixes

  • Various accumulated fixes to the OxCaml opam repository. Merged 2026-06-11 by dra27-js. #52
  • ignore-opam.patch updated to correct a line-number drift that broke OxCaml builds under Dune's new pure-OCaml patch applier (ocaml/dune#14177). Open, updated 2026-06-12 by saser. #51

oxcaml/oxcaml

Permalink

Features

  • SSA intermediate representation (open, updated 2026-06-14): New -use-ssa flag introduces an SSA IR between Cmm and CFG, with a Cfg_compare validator that checks register-equivalence against the legacy pipeline. Currently on by default; defaults will flip before merge. #5810

  • AVX-512 for the amd64 SIMD backend (open, proposed 2026-06-14): Proposal to add EVEX encoding, 512-bit ZMM register modelling, and an opmask (k0–k7) register class to the backend. Scopes incremental intrinsic-table batches followed by backend changes; width-parametric design targets AVX10 transition. #6257

  • Layout-polymorphic functions (open, updated 2026-06-13): Implements let poly_ f x = … translation through typedtree, tlambda, and slambda, using kind templates and closure conversion. The simple static evaluator handles the generated slambda; deduplication deferred to later PRs. #5870

  • Heap extension runtime API (draft, created 2026-06-12): Adds caml_add_extent(base, size, free_callback) to the internal runtime API, allowing external code to register pre-initialised blocks for GC management. Draft for design discussion on naming and callback semantics. #6248

  • Unloading of metaprogramming compilation units (open, updated 2026-06-10): Treats unloadable CUs as scannable heap regions with explicit dependency edges; the major GC unloads a unit when no Code_block or data block remains marked. Uses back-pointers in .text and a Code_pointer machtype for safepoint liveness. #5960

  • Loop-elimination experiments (open, updated 2026-06-10): Three analyses (induction-variable finding, termination proof, dead-IV proof) enable complete elimination of empty for loops under -cfg-merge-blocks. Based on the SSA IR work in #5810. #5840

  • ocamlfilt demangler (open, updated 2026-06-12): Pure-OCaml command-line tool that reverses OxCaml's flat0, flat1, and structured name-mangling schemes with automatic per-symbol detection. Reads symbols from stdin or arguments; unrecognised input passes through unchanged. #5100

Compatibility and Releases

  • Upstream 5.4 merge (merged 2026-06-12): The merge-upstream-5.4 branch is now merged into main, bringing the OxCaml frontend in line with OCaml 5.4. A follow-up merge of main back into the 5.4 branch (#6179) also landed the same day. #5325
13 repositories · no changes