Thicket thicket
ocaml
REPOS 27

W12.2026 · 16–22 MarAll

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, and fetch_and_add for lock-free concurrent data structures. Safe and unbound-checked variants available. #14611

  • Dune 3.22.0: released 2026-03-19; sandboxes test and tests stanzas by default, adds DUNE_JOBS, @doc-markdown, and dune trace cat. Release

  • ocaml-lsp 1.26.0-5.5~preview: adds a destruct code 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.Unhandled under a deep Effect.Deep.match_with handler 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 try bodies; short-circuits when the catch handler is unreachable. #2201

Compatibility and Releases

  • OCaml trunk (Gc.stat): Gc.stat no longer triggers a full major collection and is now equivalent to Gc.quick_stat; call Gc.full_major explicitly for up-to-date counters. #12023

  • Dune 3.22.0 (Windows 7): open regression: bootstrap fails because GetSystemTimePreciseAsFileTime is 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-version default to 5.4, recognising the effect keyword without explicit configuration. #29553