Thicket thicket
ocaml
REPOS 5

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

W34.2026 · 17–23 AugOxCaml

Features

  • Mode polymorphism parsing (#6829, ongoing): Signature items accept mode variables ('m) and bounds in type annotations. Curry-mode constraints are generated at parse time; mode variables are scoped per signature item.

  • Addressable kinds (#6712, ongoing): Adds an idempotent addressable kind operator distinguishing block-boxed kinds 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 and automatic dead-code elimination. Controlled by -use-ssa; currently on by default for coverage.

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

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

Fixes

  • Frametable size reduction (#6399, merged): 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): caml_add_extent registers external memory as GC-managed blocks with a free callback. Enables out-of-heap allocation strategies.

  • Phantom lets and DWARF call sites (#6513 merged; #6517–#6523 ongoing): Cmm.Cname_for_debugger landed. The dwarf202607 series continues with phantom-let translation and DW_TAG_call_site emission.

  • dune-ignore patch (#60, open): Updates the dune-ignore patch for the -ox2 variant after an upstream implementation change broke the existing patch. Awaiting review.

Compatibility

  • Opam guard relaxation (#59, open): Permits dune ≥ 3.24.2, eio ≥ 1.4, and mdx ≥ 2.6.0 alongside Oxcaml. OCaml 6.4.1 still has a linking issue; other backported versions pass CI.