Thicket thicket
ocaml
REPOS 5

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

W11.2026 · 9–15 MarOxCaml

Features

OxCaml unpacked attribute: merged. The [@unpacked] attribute flattens unboxed product arguments into separate C parameters on native; bytecode stubs receive the product as a single boxed value. Link

OxCaml -O4 flag: merged. Enables -O3 plus -flambda2-reaper; also adds the [@@ocaml.flambda_o4] attribute for per-module use. Link

OxCaml -cfg-merge-blocks pass: merged. New backend pass merging equivalent CFG blocks after register allocation; reduces instruction count by ~3% in benchmarks. Disabled by default. Link

Proposals

OxCaml mode system: open. Adds write and observable modes, making visibility and statefulness axes into diamond lattices with partial ordering. Link

OxCaml abstract kinds: open. Adds with kind_ constraints, completing the planned feature set before announcing abstract kinds. Link

OxCaml GADT stage tracking: open. Stores local constraints keyed by inference stage to prevent leaking type equalities across quote/splice boundaries. Fixes a soundness hole in GADT pattern matching under metaprogramming. Link

OxCaml zero_alloc on function args: open. Extends [@zero_alloc] to higher-order function parameters, requiring explicit arity. Link

OxCaml slambda fracturing: open. Splits lambda constructors into compile-time and runtime halves as the first pass in the layout-polymorphism pipeline. Link