Thicket thicket
ocaml
REPOS 27

W47.2025 · 17–23 NovAll

OCaml trunk merges lprintf-family functions in Format and Printf accepting heterogeneous argument lists, and Dune merges parameterized library instantiation in (libraries ...) dependencies. Dune also cuts dune build time by roughly 28% via memoized lock-directory reads.

Features

OCaml stdlib (trunk): Merged lprintf-family functions in Format and Printf accepting heterogeneous argument lists; supernumerary arguments produce a compile-time error. New names: l{,f,e,s,as}printf, l{,f,b,e,s}printf. #13372

Dune parameterized libraries: Merged support for instantiating parameterized libraries in (libraries ...) dependencies, requiring the OxCaml compiler. Syntax: (mylib arg1 arg2 :as newname). #12561

OxCaml unboxed modules: Merged support for unboxed elements at the top level of modules, lifting the value-only restriction on module fields. New module_representation types track mixed modules through typing and compilation. #4020

OxCaml runtime metaprogramming: Merged the runtime_metaprogramming extension, enabled by default. Compiling quotes, splices, and quotation evaluation is gated behind this extension. #5012

Dune promotion show: Open PR adding dune promotion show, which prints corrected file contents for failed diff rules without modifying sources. #12669

OCaml runtime (trunk): Open PR adds named GC parameters settable via OCAMLRUNPARAM and a new Gc.Tweak stdlib module. First parameter: mark-stack pruning threshold. #14367

Fixes

Domain.join (trunk): Merged fix preserves the originating domain's backtrace when Domain.join re-raises an uncaught exception, instead of reporting the backtrace at the join call site. #14363

Dune build time: Merged memoization of lock-directory reads, reducing dune build time by roughly 28% on a large project. #12758

OxCaml Tof_jkind: Merged fix uses Tof_jkind for unboxed existentials and Tpoly, replacing conservative Jkind.round_up calls. Fixes a stack overflow when type-checking recursive existential types. #4995

opam install.sh: Merged fix corrects the AppArmor profile replacement option, replacing mv+chmod+chown with install and cleaning up the temporary profile file. #6760

Compatibility

Relocatable OCaml (trunk): Open PR series removes the absolute Standard Library path from compiler binaries and the bytecode runtime. Adds --with-relative-libdir configure option and -set-runtime-default link flag. #14244

Releases

opam 2.5.0~rc1: First release candidate; no significant changes compared to 2.5.0~beta1. Binaries and archive are signed by the opam dev team. Release notes