Thicket thicket
ocaml
REPOS 27

W40.2026 · 28 Sep – 4 OctAll

Three OCaml security fixes (OSEC-2026-21, -22, -23) addressing Unix.map_file overflow, Str.string_partial_match invalid groups, and Marshal demarshaling were merged. Dune 3.25.0~alpha0 introduces breaking changes: generated files are now read-only and : is rejected in context names.

Features

  • Optional polymorphic parameters are now supported in function signatures, e.g. let f (?x: 'a. 'a -> 'a) () = (). Merged 2026-10-01. #14985

  • Dune 3.25.0~alpha0 published 2026-10-02. Breaking: generated files are read-only; : rejected in context names; (warnings (duplicate_deps ..)) requires lang 3.22. Release

  • Eio.Path.sync_dir flushes a directory entry to stable storage; no-op on Windows. Merged in #943.

  • The k box kind denotes the boxed (scannable) version of kind k, e.g. type t : (value & float64) box. Merged 2026-10-03. #6956

Compatibility and Releases

  • The instrumented runtime is no longer compiled by default; complete removal is planned after the 5.6 branch. Merged 2026-10-01. #15117

  • ocaml-compiler.5.6 and ocaml-variants.5.6.0+trunk now point to the 5.6 branch rather than trunk. Merged. #30855

  • js_of_ocaml updated for the OCaml 5.6 toolchain. Merged. #2469

Fixes

  • Three security fixes merged 2026-09-29: Unix.map_file overflow (OSEC-2026-22), Str.string_partial_match invalid groups (OSEC-2026-21), Marshal demarshaling (OSEC-2026-23). #15112 #15113 #15115

  • Int64.of_float, Int64.to_float, and Int32/Nativeint equivalents now compile to native instructions, roughly doubling throughput on amd64. Merged 2026-09-29. #15084

  • dune build now shows curl's own error text (e.g. "could not resolve host") instead of "invalid error code 6" on offline fetch failures. Merged. #16515

  • Reference-unboxing codegen used extra graph edges instead of the CFG dominator tree, producing unbound variables for loop-allocated references. Fixed. #2489

  • opam install <pkg> --deps-only now installs the target package's own depexts, restoring 2.5.2 behaviour. Merged in #7158; backported to 2.6 in #7174.