Thicket thicket
ocaml
REPOS 27

September 2026

September brought a new package-manager release and maintenance updates for the compiler. opam 2.6.0 ships signed binaries, but its release notes identify a problem for users who rely on personal Git settings to reach package repositories: those settings are ignored during package operations. opam release

OCaml 5.5.1 includes security fixes for loading compiled programs and saved data, alongside a type-checking correction. These are fixes in an available compiler release. Other changes merged into the development compiler, including a change to how certain module declarations are interpreted, remain separate from that maintenance update. Compiler release

Eio 1.6 adds file renaming on Windows and more control over whether file operations follow symbolic links. Meanwhile, a merged Dune change removes an old exception that allowed generated files to remain writable. Projects that modify their generated files may need to adjust those build steps when adopting that change. Eio release

W39.2026 · 21–27 SepAll

Eio 1.6 releases with Eio.Process.Env, a ?follow option on path open functions, and Windows rename support. OCaml deprecates Weak.get_copy as an alias of Weak.get, breaking code that relied on copy-to-avoid-lifetime-extension semantics, and lowers Int.popcount to hardware primitives for a 2–3× speedup.

Features

  • Dynarray.sort, Dynarray.stable_sort, Dynarray.stable_sort_sub added to the standard library. They delegate to Array.stable_sort_sub and raise on length change. Merged. (#14848)

  • Eio 1.6 adds Eio.Process.Env for environment snapshotting, ?follow on Eio.Path open functions, Eio_unix.File for FD-based files, and Windows rename support. Released 2026-09-21. (v1.6)

  • A -use-ssa flag activates an experimental SSA pipeline between Cmm and CFG, validated against legacy Cfg_selectgen output per function. Enabled by -experimental-optimizations; incompatible with -llvm-backend. Merged. (#5810)

  • A job_slots rule lets a build expose a slot count via an environment variable, enabling polyglot sub-builds to size parallelism without a jobserver. Requires a new dune language version. Open proposal. (#16475)

  • A hosted MCP server at POST /mcp exposes five read-only tools: package dependencies, reverse dependencies, and documentation queries. Per-IP rate limiting and an SSRF allowlist guard the endpoint. Merged. (#3785, #3787)

Fixes

  • Int.popcount, Int.leading_zeros, Int.trailing_zeros now lower to hardware %popcount/%clz/%ctz primitives. 2–3× speedup on amd64 and arm64. Merged. (#15018)

  • dune build with a (menhir …) stanza and dune pkg (relocatable compiler) now succeeds on macOS. The fix adds an explicit Stdlib dependency to the inference rule. Merged; ships in 3.25. (#16374)

  • Optional-chain parentheses are preserved in generated code: (a?.b).c no longer prints as a?.b.c, which changes runtime semantics. Merged. (#2465)

  • opam install --deps-only no longer installs the target package's own depexts. Affects pinned and simulated packages. Merged. (#7158)

  • Typemod.type_package now calls Mtype.lower_nongen, preventing a weak type variable from unifying with an out-of-scope type. Previously the compiler accepted programs that should be rejected. Merged. (#12195)

Compatibility and Releases

  • Weak.get_copy is deprecated and now an alias of Weak.get (no shallow copy). Code relying on copy-to-avoid-lifetime-extension semantics must migrate. Merged. (#15064)

  • ocsigenserver 8.0.0 moves public modules under wrappers (Ocsigen_extensions → Ocsigen.Extensions). A new ocsigenserver-compat package provides old names. Merged. (#30806)