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_subadded to the standard library. They delegate toArray.stable_sort_suband raise on length change. Merged. (#14848) -
Eio 1.6 adds
Eio.Process.Envfor environment snapshotting,?followonEio.Pathopen functions,Eio_unix.Filefor FD-based files, and Windowsrenamesupport. Released 2026-09-21. (v1.6) -
A
-use-ssaflag activates an experimental SSA pipeline between Cmm and CFG, validated against legacyCfg_selectgenoutput per function. Enabled by-experimental-optimizations; incompatible with-llvm-backend. Merged. (#5810) -
A
job_slotsrule 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 /mcpexposes 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_zerosnow lower to hardware%popcount/%clz/%ctzprimitives. 2–3× speedup on amd64 and arm64. Merged. (#15018) -
dune buildwith a(menhir …)stanza anddune 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).cno longer prints asa?.b.c, which changes runtime semantics. Merged. (#2465) -
opam install --deps-onlyno longer installs the target package's own depexts. Affects pinned and simulated packages. Merged. (#7158) -
Typemod.type_packagenow callsMtype.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_copyis deprecated and now an alias ofWeak.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 newocsigenserver-compatpackage provides old names. Merged. (#30806)