Thicket thicket
ocaml
REPOS 1

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

W34.2026 · 17–23 Augoxcaml/oxcaml

Features

  • Mode Polymorphism Parsing (#6829, opened 2026-08-18, ongoing): Signature items now accept mode variables ('m) and bounds ([< … > …]) in type annotations. Curry-mode constraints are generated implicitly at parse time; mode variables are scoped per signature item.

  • Addressable kinds (#6712, ongoing): Adds an idempotent addressable operator to the kind system, distinguishing kinds whose boxed form is a block from tagged immediates. Enables pointer-taking operations on selected unboxed types.

  • SSA intermediate representation (#5810, ongoing): New SSA IR between Cmm and CFG with a reducer framework, automatic dead-code elimination, and a Cfg_compare validator. Controlled by -use-ssa; currently on by default for coverage.

  • Structured diagnostics (#6807–#6818, opened 2026-08-17, ongoing): Typed diagnostic model with natural-language generation and mode-specific producers. -structured-diagnostics emits JSON Lines on stderr; Merlin gains a structured-errors query.

  • Unboxed products in external calls (#6862, opened 2026-08-20, ongoing): C FFI now follows the target ABI (System V / AAPCS64) for unboxed product arguments and returns, replacing the prior restriction to flat pairs.

Fixes

  • Frametable size reduction (#6399, merged 2026-08-18): Short descriptor format, linker string de-duplication, and shared debuginfo suffixes reduce rodata by ~40% and executable size by ~8%.

  • Heap extension API (#6248, merged 2026-08-17): caml_add_extent registers external memory as GC-managed blocks with a free callback, enabling out-of-heap allocation strategies.

  • Phantom lets and DWARF call sites (#6513 merged 2026-08-18; #6517–#6523 ongoing): Cmm.Cname_for_debugger landed; the 24-PR dwarf202607 series continues with phantom-let translation, availability ranges, and DW_TAG_call_site emission for inlined frames.