Thicket thicket
ocaml
REPOS 5

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

W40.2026 · 28 Sep – 4 Octoxcaml/oxcaml

Features

  • Box kind constructor merged. The k box kind denotes the boxed (scannable) version of kind k; e.g. type t : (value & float64) box. Merged 2026-10-03. No existing types yet carry this kind. #6956

  • %box / %unbox layout-directed primitives (alpha). Gated behind -extension layouts_alpha; currently unsound for types whose unboxed representations share a layout (e.g. t# vs int8#). Blocked on restoring the bytecode boxing invariant. #7254

  • Labeled tuple projections and region-local omnidirectionality. New syntax e.~l for labeled tuples, typed via a suspended constraint in the current region. First client of the omnidirectionality mechanism; stages 2–3 will lift the restriction to patterns. Open. #7432 #7418

  • Reaper link-time-optimization infrastructure. Multiple merged changes split the reaper into traverse/solve/rebuild phases, precompute rebuild queries at solve time, parameterise analysis by scope, and record cross-unit call references. Prepares for running reaper steps in separate ocamlopt processes. #7222 #7244 #7239 #7240

  • TLS per preemptible fiber; guard pages only for active stacks. TLS state splits at fiber creation; non-preemptable fibers inherit from the nearest enclosing preemptable fiber. Separately, suspended fibers release their 8 MiB guarded mapping (idled to a malloced buffer), enabling 100 000+ fibers without exhausting VMAs. Both open. #7399 #7349

  • Mode-polymorphism parsing and borrowability/borrowedness axes. Parser accepts mode variables and bounds in signatures ('a @ [< 'm] -> 'a @ [> 'm]). Two new mode axes (borrowable/unborrowable, owned/borrowed) are plumbed through the solver with no semantics yet; groundwork for separate and exclusive modes. Both open. #6829 #7255

  • FDO prototype and cold-continuation propagation. A feedback-directed-optimization prototype is under review. In parallel, [@cold] annotations now propagate both downward (cold context) and upward (code reaching only cold code), enabling inlining of cold continuations in Simplify. Both open. #7395 #7361

  • option parameter kind widened to any; mixed tuples in progress. type ('a : any) option merged 2026-10-03, permitting non-value payloads. Mixed tuples (tuples with per-element sorts) extend tuple data definitions with Jkind.Sort.ts, deduplicating unboxed/boxed tuple codegen; benchmark shows −0.35 % compile time on Core+Parallel. Open. #5462 #7135