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
addressableoperator 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_comparevalidator. 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-diagnosticsemits JSON Lines on stderr; Merlin gains astructured-errorsquery. -
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_extentregisters 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_debuggerlanded; the 24-PR dwarf202607 series continues with phantom-let translation, availability ranges, andDW_TAG_call_siteemission for inlined frames.