OCaml 5.6 merges nested with type in package types, and the typechecker's exhaustiveness check drops from over 20 GB peak to pre-5.3 levels. opam 2.5.1 ships a path-traversal security fix (OSEC-2026-03), and Dune 3.23 generates compile_commands.json for C/C++ editor tooling.
Features
-
OCaml 5.6: Merged support for nested
with typein package types, e.g.(module T with type t = int with type x = float). #14710 -
Dune 3.23: Generates a
compile_commands.jsoncompilation database for C/C++ editor tooling whendune langis 3.23. Promoted to the workspace root. #14185 -
Odoc: Merged OxCaml support, enabling odoc to process OxCaml codebases. Prior patches from oxcaml/odoc are now upstream. #1399
-
OxCaml metaprogramming: Runtime metaprogramming upgraded from alpha to beta. The REPL no longer requires a double semicolon after
#syntax quotations on. #5843 -
OxCaml name mangling: Merged a reversible mangling scheme encoding full module paths into symbol names. De-manglers exist for LLVM, GDB,
addr2line, andocamlfilt. #5099 -
js_of_ocaml: Merged Oxcaml as a supported compiler backend for
wasm_of_ocaml. #2105
Fixes
-
OCaml typechecker: Merged fix reducing peak memory from over 20 GB to pre-5.3 levels during pattern-matching exhaustiveness checking. #14727
-
OCaml Bigarray: Merged overflow check in
caml_ba_reshape, fixing an out-of-bounds read and segfault. Backported to the 4.14 branch. #14691 -
Dune inline tests:
dune runtestnow executes inline tests for libraries with(modes byte); previously the runner linked natively and silently skipped all tests. #14174
Compatibility and Releases
-
Dune 3.22.2 / 3.23.0: 3.22.2 point release merged 2026-04-14. The 3.23.0 release targets 2026-04-20; a sandboxed package-deps regression is a known blocker. #14113, issue #14213
-
opam 2.5.1: Released 2026-04-15 with security fix OSEC-2026-03 (path traversal in
.install), nix depexts injection fix, and Gentoo detection. Release notes -
opam-core: Renames the
resulttype tosolver_resultto avoid conflict withStdlib. Breaking for library consumers. #6885