Thicket thicket
ocaml
REPOS 27

W42.2026 · 12–18 OctAll

OCaml merges native-instruction emission for Atomic.exchange and Atomic.compare_and_set, cutting single-domain exchange from 1.36 s to 0.51 s on amd64, while js_of_ocaml shares identical literals at parse time, reducing JS by 51% and Wasm by 68% with a breaking change making them physically equal. An open opam proposal adds confirmation prompts before every action by default.

Features

  • Dune 3.26 adds melange.flags for library and env stanzas, deprecating melange.compile_flags. Requires (lang dune 3.26). Merged in #16573.

  • ocaml-lsp 1.28.0 adds snippet completions for construct, destruct, and multi-argument calls; ocp-indent is now an alternative formatter. Released 2026-10-12. Release

  • Merlin v5.9: destruct handles let-binding patterns; enclosing returns improved ranges; new PPX_DEPS field advertises PPX dependencies. Released 2026-10-12. v5.9

  • Eio: Eio_unix.set_signal installs handlers that wake the scheduler via a pipe, fixing a race where signals arriving before poll(2) were delayed. Merged in #956.

  • Dune: new (job_slots ...) rule declares scheduler-slot consumption per build, optionally computed by a program; value exposed via environment variable for polyglot sub-builds. Merged in #16475.

Fixes

  • OCaml: Atomic.exchange and Atomic.compare_and_set emit native instructions (xchg, cmpxchg, amoswap) for immediate values on all five backends. Single-domain exchange drops from 1.36 s to 0.51 s on amd64. Merged in #14980.

  • OCaml: Seq.ints_in_range no longer overflows for ranges ending at max_int. Cherry-picked to 5.6. Merged in #15173.

  • js_of_ocaml: identical literals are shared at bytecode parse time, reducing JS size by 51% and Wasm by 68% on Fiat-Crypto. Breaking: identical literals may now be physically equal. Merged in #2547.

  • OCaml: ocamlopt miscompiles asr 63 and lsr 63 when the result is immediately untagged, producing wrong values. Bug dates to 1999; no fix PR open. #15157

Compatibility and Releases

  • opam: confirmation will be requested before every action by default, not only when a package was not explicitly named. Scripts omitting -y/OPAMYES=1 will prompt. #7215 (open).

  • ppx_platform 0.3.0 (open): breaking renames—browser_only → melange_only, platform native → native_only; old names removed. #30945.

  • OCaml 5.6 trunk: severe compilation slowdown (30+ min) on large classes with heavy ppxlib use, traced to variance checking. PR #15172 reduces the case from ~12 min to ~55 s. (open)