OCaml 5.4 restores correct toplevel printing of qualified variant constructors and record labels, which previously displayed Lib__Module instead of Lib.Module, and Dune 3.20.2 ships fixes for jsoo separate compilation, runtest-js dependency resolution, and Cygwin bootstrap. js_of_ocaml's wasm backend now unboxes numeric values within functions, speeding up benchmarks such as almabench and fft.
Features
OCaml trunk: include functor F proposal adds a structure item applying a functor to current module contents, eliminating boilerplate submodule duplication. Open for Language Committee review. #14177
OCaml trunk: --no-inter-tail-calls flag proposal disables interprocedural tail-call optimization in ocamlopt and ocamlnat, improving stack-trace readability for profilers. Open for review. #14186
Dune: Merged support for formatting dune files via RPC while the watch server is running, enabling editor integrations to format without stopping the build. #12064
OxCaml: Merged type shapes into the compiler's shape mechanism, enabling functor-aware DWARF emission via .cms files. Guarded behind -shape-format debugging-shapes. #4398
js_of_ocaml (wasm): Merged number unboxing within functions, avoiding boxing of numeric values never used as boxed. Speeds up benchmarks such as almabench and fft. #2069
Eio: Merged setuid and setgid fork actions, allowing spawned child processes to run as a different user or group. #803
opam (open PR): Loads only changed .opam files during opam update instead of the full repository. Reduces update time from ~10 s to ~0.01 s on Windows. #6614
Fixes
OCaml 5.4: Restores correct toplevel printing of qualified variant constructors and record labels, which previously displayed Lib__Module instead of Lib.Module. Merged to trunk and 5.4. #14192
OxCaml: Merged fix for a race in caml_callback where a promoted continuation could be traversed by GC compaction with a stale return address, causing a segfault. #4609
ocaml-lsp v1.23.0: Hover on method calls returns "No information available" with OCaml 5.3.0; type-enclosing yields the correct type. #1552
Compatibility
OCaml trunk: The partial-match warning now triggers for GADT indices using local abstract types. Use type a = private A as a workaround. #14224
Releases
Dune 3.20.2: Released with fixes for jsoo separate compilation with modules_without_implementation, runtest-js dependency resolution, empty .cram.test.t directory cleanup, and Cygwin bootstrap. Release