Thicket thicket
ocaml
REPOS 27

W41.2026 · 5–11 OctAll

The OCaml compiler now compiles deeply nested local functions in time linear in depth, and Unix.openfile accepts O_NOFOLLOW on POSIX systems. Multiple Windows command-quoting defects were corrected under OSEC-2026-24.

Features

  • Unix.openfile accepts O_NOFOLLOW on POSIX systems; unavailable on Windows. Merged in #15121.

  • Eio_unix.Process supports CreateProcess-based spawning on Windows with restricted fd inheritance and non-blocking cancellation. Merged in #936.

  • JS and Wasm runtimes implement Sys.filepath_exists (OCaml 5.6), returning false on ENOENT/ENOTDIR and raising Sys_error otherwise. Merged in #2493.

Compatibility and Releases

  • opam 2.6.1 released 2026-10-07: git safe.directory fix, GIT_CONFIG_* Windows workaround, and lockfile update. Release notes.

  • Odoc builds against OCaml 5.6 trunk. Merged in #1472.

  • Eio minimum OCaml version raised to 5.4, enabling labelled tuples, immutable arrays, and atomic record fields. Merged in #949.

Fixes

  • Closure conversion no longer recomputes free variables per nesting level; compilation of deeply nested local functions is now linear in depth. Merged in #15139.

  • Multiple Windows command-quoting defects corrected (OSEC-2026-24). Merged in #15133.

  • A soundness bug in variance composition permits a segfault via functor abstraction of an invariant GADT parameter. A stricter fix may reject currently accepted programs. Open in #15142.

  • inline_recursively no longer duplicates a closure at every nested-functor level; the fiat-crypto benchmark compiles in ~42 s / 1.4 GB instead of exhausting memory. Merged in #2495.

  • The Wasm linker corrects instruction decoding (legacy exceptions, SIMD immediates, memory.atomic.fence, stack switching), segment/table retargeting, and export ordering. Merged in #2504.

  • Dune 3.25.0-rc introduced a ~5× zero-build slowdown and ~9× peak-RSS increase on large Rocq workspaces. A memoization patch and alias-based cache are in progress. Open in #16543.