Thicket thicket
ocaml
REPOS 5

OxCaml covers the compiler extensions and their supporting tools and packages.

October 2026OxCaml

The omnidirectional type inference extension merged this month, letting the typechecker defer type-variable defaults to a scheduler that sees constraints from both directions rather than committing at the point of first use. In practice this makes inference more flexible where type information flows into and out of the same expression, and the first expression-level feature built on the mechanism is labeled tuple projection. The extension is available behind a compiler flag. (Source)

Thread-local storage is now tracked per preemptible fiber, and suspended fibers release their eight-megabyte guarded stack mapping back to the OS. The practical effect is that a process can hold well over a hundred thousand live fibers without exhausting the kernel's virtual-memory-area limit, which matters for high-concurrency servers and runtimes that previously hit that ceiling. (Source)

Two security fixes landed under OSEC advisories. The demarshaler now validates closure metadata, guards against integer wraparound in size fields, and rejects forged tags; separately, Unix.map_file uses an overflow-checked multiply so a hostile size argument cannot produce an undersized memory mapping. (Source)

W44.2026 · 26 Oct – 1 NovOxCaml

Features

  • -ssa-delete-empty-loops and -ssa-bounds-check-elim passes (proposal). Decisions derive from Rocq-proved OCaml; off by default. #7802

  • deref_, addr_, and addr_imm_ patterns (experimental). Parsing and type-checking merged; lambda translation open. #7707, #7731, #7776

  • Mode polymorphism: 'm variables, bounds, and morphisms past/close are parsed, typed, and printed (experimental). Currying constraints generated implicitly. #7503, #7771

  • Fdo_counter_identity and Fdo_counter types define identities for pseudo-instrumentation; a companion pass inserts counters during closure conversion (research). #7530, #7729

  • Zero-allocation backend propagates [@@zero_alloc conditional] through call sites (proposal). E.g. List.iter ignore xs is recognised as non-allocating. #7722

  • -ffp-contract=on|off controls arm64 FMA contraction of nested binary64 mul-add/sub (proposal). Default on; off emits separate mul+add. Settable via OCAMLPARAM ffp-contract. #7813

Fixes

  • Demarshaler validates closure metadata, guards size wraparound, rejects forged tags (OSEC 2026-01/18/23). Unix.map_file uses caml_umul_overflow to prevent undersized mappings (OSEC 2026-22). #7770, #7767

Compatibility and Releases

  • Stdlib.Effects.Safe renamed to Yielding (proposal). The Safe name did not guarantee all effects are handled; tests using reperforming behaviour now use With_handler. #7764