The OCaml compiler fixes a string read/write miscompilation causing crashes, backported to 5.4 and 5.5. Dune 3.22 now sandboxes test execution, and OxCaml adds a native arm64 machine-code emitter enabling JIT without an external assembler.
Features
OCaml language (proposal): open PR implements modular explicits (fun (M : S) -> ...), letting a module parameter's name appear in the return type. A major extension of first-class modules. #13275
Dune (merged): new --pkg enabled|disabled CLI flag overrides the pkg field in dune-workspace per invocation. #13458
Dune 3.22 (merged): test execution now runs in sandboxes starting from lang 3.22, consistent with preprocessing and inline tests. #13510
OxCaml (merged): native arm64 machine-code emitter with a typed DSL makes ocaml-jit architecture-independent, enabling JIT on arm64 without an external assembler. #5177
ocaml-lsp (merged): adds a custom LSP request for destruct (case analysis), letting ocaml-eglot trigger pattern-matching generation directly. #1583
Menhir 20260122 (merged): --strict now treats unused-token and unreachable-symbol warnings as errors, breaking downstream parsers. #29263
Fixes
OCaml compiler (trunk, backported to 5.4/5.5): fixes a miscompilation in string read/write where incorrect Cmm machtypes let derived pointers survive a GC, causing crashes. #14010
OCaml compiler (trunk, open): fixes a soundness bug where a polymorphic pattern like ([ bad ] : 'a. 'a list) passes a raw Tpoly to the exhaustiveness checker, causing a segfault. #14480
Dune (merged): promotions from failed diff actions inside sandboxes are now copied to the staging area before cleanup, preventing data loss. #13520
js_of_ocaml (merged): fixes miscompilation of loops placed at the start of exception handlers. #2151
Compatibility and Releases
dune-release 2.2.0 (merged): updated to cmdliner 2.0.0; shortened command-line arguments no longer work. #29307
OCaml C headers (merged): suppresses -Wpedantic / -Wc99-extensions warnings in bigarray.h under strict C++ mode; adds a CI test compiling all public headers in C++. #14496