OCaml 5.4.0: Released 2025-10-09. Adds labelled tuples, immutable arrays, atomic record fields, and modules Pair, Pqueue, Repr, Iarray. Release notes
Features
OCaml typing recovery: Open WIP PR upstreams Merlin's error-recovery mechanism behind a -typing-recovery flag, allowing the typer to report multiple errors per file. #14241
OCaml pipeline operator: Open PR changes x |> f y to typecheck as (f y x) rather than ((f y) x), avoiding extra closure allocations with labelled arguments. #14286
OCaml Hashtbl: Open PR proposes making Hashtbl seeded by default unless OCAMLRUNPARAM=r is set; early review stage. #14291
OCaml relocatable builds: Open PR adds -launch-method, -runtime-search, and --enable-suffixing to decouple bytecode executables from absolute install paths. #14245
OCaml compiler CRCs: Open PR switches the compiler's internal CRCs from MD5 to Blake128; under active review during this interval. #13913
Fixes
OCaml memprof: Merged fix for GC root mishandling in memprof.c; cherry-picked to the 5.4 branch. #14287
OCaml toplevel: Open PR proposes reading -init before executing -e scripts, fixing unbound-value errors. #14190