OCaml trunk adds the Atomic.Array stdlib module for lock-free concurrent data structures, and Dune 3.22.0 releases with sandboxed test stanzas by default plus DUNE_JOBS and dune trace cat. A compatibility change makes Gc.stat equivalent to Gc.quick_stat, requiring an explicit Gc.full_major for up-to-date counters.
Features
-
OCaml trunk (Atomic.Array): new stdlib module providing
make,get,set,exchange,compare_and_set, andfetch_and_addfor lock-free concurrent data structures. Safe and unbound-checked variants available. #14611 -
Dune 3.22.0: released 2026-03-19; sandboxes
testandtestsstanzas by default, addsDUNE_JOBS,@doc-markdown, anddune trace cat. Release -
ocaml-lsp 1.26.0-5.5~preview: adds a
destructcode action for pattern matches and supports non-dune build systems via$OCAMLLSP_PROJECT_BUILD_SYSTEM. Release -
js_of_ocaml: merged variable coalescing, merging variables with disjoint lifespans; reduces V8 register count by 74–91% and gzip size by 10–16%. #2166
-
Dune (@revdep): merged alias builds all reverse dependencies of libraries in a directory via
@revdep,@revdep-check, and@revdep-runtest. #13800
Fixes
-
OCaml trunk (soundness): fixes a segfault from
let f ([x] : 'a. 'a list) = ...by splitting poly-pattern typing from the exhaustiveness checker. Cherry-picked to 5.5. #14652 -
OCaml trunk (bytecode effects):
try Effect.perform with Effect.Unhandledunder a deepEffect.Deep.match_withhandler no longer segfaults; the continuation is now rooted across the C call. #14647 -
js_of_ocaml: fixes an assertion failure in variable coalescing triggered by empty
trybodies; short-circuits when the catch handler is unreachable. #2201
Compatibility and Releases
-
OCaml trunk (Gc.stat):
Gc.statno longer triggers a full major collection and is now equivalent toGc.quick_stat; callGc.full_majorexplicitly for up-to-date counters. #12023 -
Dune 3.22.0 (Windows 7): open regression: bootstrap fails because
GetSystemTimePreciseAsFileTimeis unavailable before Windows 8; a fallback patch is under discussion. #13871 -
ocaml.org: adds OCaml 4.14.3 release data, designating it as the Long Term Support release; highlights CVE-2026-28364 (Marshal deserialization buffer over-read). #3571
-
opam-repository (ocamlformat 0.29.0): merged; adds OCaml 5.5 syntax support and sets
ocaml-versiondefault to 5.4, recognising theeffectkeyword without explicit configuration. #29553