Thicket thicket
ocaml
REPOS 5

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

W44.2026 · 26 Oct – 1 Novoxcaml/oxcaml

Features

  • Formally verified SSA loop deletion and bounds-check elimination (proposal). Two new passes, -ssa-delete-empty-loops and -ssa-bounds-check-elim, derive their decisions from OCaml extracted from a Rocq development that proves soundness. Off by default; no Admitted statements. #7802

  • Dereference and address patterns (experimental, in progress). deref_ patterns reference a record field's or tuple element's address; addr_/addr_imm_ patterns match an address against its contents. Parsing and type-checking merged; lambda translation and warning refinements are open. #7707, #7731, #7776

  • Mode polymorphism: typing and printing (experimental, in progress). Mode variables 'm, bounds [< … > …], and morphisms past/close are now parsed, typed, and printed with alias sharing. Currying constraints are generated implicitly. #7503, #7771

  • Feedback-directed optimization counters (research direction). New Fdo_counter_identity and Fdo_counter types define function/position identities for pseudo-instrumentation; a companion pass inserts callsite and branch counters during closure conversion. #7530, #7729

  • Zero-allocation backend: conditional call-site reasoning (proposal). The backend now propagates [@@zero_alloc conditional] obligations through call sites, so e.g. List.iter ignore xs is recognised as non-allocating. #7722

  • -ffp-contract=on|off for arm64 (proposal). Controls whether the arm64 selector contracts nested binary64 multiply-add/subtract into FMA. Defaults to on; off emits separate mul+add. Also settable via OCAMLPARAM ffp-contract. #7813

Fixes

  • Demarshaler and Unix.map_file hardening (security). The demarshaler now validates closure metadata, guards against size wraparound, and rejects forged tags (OSEC 2026-01/18/23). Unix.map_file multiplies dimensions via caml_umul_overflow to prevent undersized mappings (OSEC 2026-22). #7770, #7767

Compatibility and Releases

  • Stdlib.Effects.Safe renamed to Yielding (proposal). The Safe API does not guarantee all effects are handled; the rename and a doc comment make the contract explicit. Tests using reperforming behaviour now use With_handler. #7764