The OCaml trunk fixes a regression since 5.1 where major GC stops fail to trigger after repeated Gc.compact calls, causing out-of-memory crashes. The stdlib gains Option.blend (merged), and Js_of_ocaml v5.4 release preparation is merged.
Features
OCaml stdlib (trunk): Option.blend returns the first argument if Some, the second otherwise. Merged 2025-06-03. (#13995)
OCaml stdlib (trunk): String.cut_on_char and String.rcut_on_char split at the first or last occurrence of a character. Open for review. (#14068)
opam: adds --with-embedded-cygwin-setup configure option to embed Cygwin's setup.exe as a fallback when cygwin.com is unreachable. Merged. (#6526)
Js_of_ocaml wasm_of_ocaml: adds --effects disabled to suppress JSPI stack-switching overhead when calling JS from Wasm. Relevant for Node 25+. (#2026)
Js_of_ocaml wasm runtime: implements bigarray access through DataView primitives, which V8 optimizes better than the previous JS function-call path. (#1979)
Compatibility and Releases
Js_of_ocaml v5.4: release preparation merged, including a Windows tmpdir fix for the Node runtime. (#2030)
opam: bumps dune to 3.19.0, cppo to 1.8.0, ocamlgraph to 2.2.0, uutf to 1.0.4. ./configure --without-dune now builds with OCaml 5.4. Merged. (#6527)
Fixes
OCaml runtime (trunk): major GC stops triggering after repeated Gc.compact calls since 5.1, causing out-of-memory crashes. Fixed in trunk. (#14073, #13736)
OCaml compiler (trunk): fixes spurious unused-value-declaration warnings on functor arguments in signatures, a regression from 5.3. Merged 2025-06-05. (#13956)
OCaml compiler (trunk): adds a "Labels X and Y do not match" line to type errors involving labelled tuples. Merged 2025-06-05. (#14070)
opam: opam install ./pkg --deps-only now uses the real package definition instead of simulated pin state, so dependency conflicts are detected. Merged. (#6530)
Js_of_ocaml wasm runtime: fixes method lookup in the Wasm runtime. (#2034)