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.flagsfor library and env stanzas, deprecatingmelange.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-indentis now an alternative formatter. Released 2026-10-12. Release -
Merlin v5.9:
destructhandles let-binding patterns;enclosingreturns improved ranges; newPPX_DEPSfield advertises PPX dependencies. Released 2026-10-12. v5.9 -
Eio:
Eio_unix.set_signalinstalls handlers that wake the scheduler via a pipe, fixing a race where signals arriving beforepoll(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.exchangeandAtomic.compare_and_setemit 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_rangeno longer overflows for ranges ending atmax_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:
ocamloptmiscompilesasr 63andlsr 63when 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=1will 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)