Features
-
OCaml 5.5.0 released (2026-06-19): module-dependent functions, polymorphic functions as arguments, relocatable compiler, generalized local definitions,
String.search_*/String.replace_*substring functions, external types, GC improvements, ~60 new stdlib functions. Release notes -
Dynarray.unsafe_get/Dynarray.unsafe_setproposed: skip bounds checking for ~2.5× faster reads and ~1.4× faster writes. Open PR with extended safety documentation. #14864 -
Configurable domain stack size via new
OCAMLRUNPARAMSsetting (e.g.S=50M). Addresses segfaults from deep C stack usage in spawned domains. Open PR, Windows support in progress. #14860
Fixes
-
OCaml 4.14.4 released (2026-06-15): security fix for size-overflow in
caml_ba_reshape(CVE-2026-34353) and for filename quoting inFilename.quote_commandon Windows. Release notes -
Cross-compilation
BINDIRoverride merged:make installcrossfor*-pc-windowstargets now sets the correct-launch-methodfor bytecode programs. Cherry-picked for 5.5.0. #14869 -
promote-menhirtarget merged: switched frommenhir --suggest-menhirLibtomenhir --dump-menhirLibafter Menhir changed its library installation format. Requires Menhir ≥ 2023. #14862
Compatibility
-
5.5.0 build failure on Windows (opam):
ocaml-compiler.5.5.0fails duringtools/opam/generate.ml clonewith aSys_errorontoplevel:stdlib.cmi. Open, no fix yet. #14871 -
Gc.compactmemory leak on Linux: whenvm.max_map_countis exceeded,munmapreturnsENOMEM; the runtime ignores the error, leaving memory mapped but marked free. Amadvise(MADV_DONTNEED)fallback is proposed. Open. #14865