OxCaml covers the compiler extensions and their supporting tools and packages.
OxCaml repository summaries
1 active · 4 unchanged
oxcaml/oxcaml
PermalinkFeatures
-
Box kind constructor merged. The
k boxkind denotes the boxed (scannable) version of kindk; e.g.type t : (value & float64) box. Merged 2026-10-03. No existing types yet carry this kind. #6956 -
%box/%unboxlayout-directed primitives (alpha). Gated behind-extension layouts_alpha; currently unsound for types whose unboxed representations share a layout (e.g.t#vsint8#). Blocked on restoring the bytecode boxing invariant. #7254 -
Labeled tuple projections and region-local omnidirectionality. New syntax
e.~lfor 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
ocamloptprocesses. #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 forseparateandexclusivemodes. 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 -
optionparameter kind widened toany; mixed tuples in progress.type ('a : any) optionmerged 2026-10-03, permitting non-valuepayloads. Mixed tuples (tuples with per-element sorts) extend tuple data definitions withJkind.Sort.ts, deduplicating unboxed/boxed tuple codegen; benchmark shows −0.35 % compile time on Core+Parallel. Open. #5462 #7135