OCaml merged a Weak.set memory-barrier fix for a cross-domain data race (targeted for 5.4 backport) and a typechecker fix closing a variance-check bypass via private type aliases (cherry-picked to 5.4). Dune released 3.20.1, correcting runtest-js byte dependencies and reverting a 3.20.0 s-expression formatting change.
Features
OCaml stdlib: adds List.split_with, a generalised List.split applying a function before splitting. Merged 2025-08-29. #14185
Dune format-dune-file: now uses the lang dune version from the enclosing project instead of always applying the latest syntax. Merged in #11865.
Dune @ocaml-index: resolves Melange stanzas and compiler paths, so dune build @ocaml-index covers Melange targets. Merged in #12246.
opam format upgrade: extends on-the-fly state format upgrade to repository and switch config files; a write-lock now triggers a global upgrade. Merged 2025-08-27. #6417
OxCaml [@regalloc]: open PR adds per-function register allocator selection (ls, irc, gi, cfg, default) as an alternative to the global -regalloc flag. #4583
Fixes
OCaml runtime: Weak.set now uses a proper memory barrier, fixing a data race that could publish uninitialised pointers across domains. Merged 2025-08-29; targeted for 5.4 backport. #14209
OCaml typechecker: fixes a variance-check bypass where private type aliases could be coerced across unrelated private types. Merged 2025-08-27; cherry-picked to 5.4. #14202
Dune 3.20.1: fixes runtest-js byte dependency, subdirectory path handling in dune runtest, and reverts the 3.20.0 s-expression list formatting change. Released 2025-08-25. Release
js_of_ocaml effects: reverts an incorrect caml_compare purity annotation that broke function-value comparison under --effects=cps and --effects=double-translation. Merged 2025-08-28. #2089
js_of_ocaml Wasm: fixes Unix.times in the Wasm backend. Merged 2025-08-31. #2096
Compatibility and Releases
opam macOS 15: CI now installs GNU rsync because macOS 15 ships openrsync, which is incompatible with opam's current rsync usage. Merged 2025-08-28. #6656
OCaml compiler: open proposal to allow -use-runtime together with -runtime-variant, removing a prior mutual-exclusion restriction. Not yet merged. #14211