Thicket thicket
ocaml
REPOS 5

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

W18.2026 · 27 Apr – 3 Mayoxcaml/oxcaml

Features

OxCaml metaprogramming unloading: proposes GC-based unloading of compilation units via Code_block heap objects and back-pointers in .text. A unit is munmaped when no Code_block or data block is marked at end of major cycle. #5960 (open)

OxCaml preemptible fibers: adds a tickc callback to fibers, invoked in reverse order at each runtime tick to trigger preemption. Replaces the interval-timer test mechanism and removes caml_domain_preempt_self. #5913 (open)

OxCaml runtime event PMCs: adds hardware performance-counter sampling to runtime events on Linux x86-64. Callbacks receive a perf_sample array of {config; value} pairs; enabled via OCAML_RUNTIME_EVENTS_PERF_COUNTERS. #5937 (open)

OxCaml mode polymorphism: integrates level-relation operations (generalize, instantiate, copy) into type inference behind -extension mode_polymorphism_alpha. Mode variables are functional and carry level annotations. #5483 (open)

OxCaml layout-polymorphic functions: extends the layout-polymorphism machinery to function types, enabling values whose memory layout is determined at the call site. #5870 (open)

OxCaml first-class modules in quotes: enables module packing and unpacking inside metaprogramming quotations, inserting type annotations required for non-HM inspection. #5885 (open)

OxCaml register-allocation affinity: uses phi-move information from the split pass to group temporaries into equivalence classes, deleting 0.5–2.2% of moves across allocators. #5844 (merged)

OxCaml metaprogramming expect-tests: makes Eval.eval work inside expect-test files, enabling runtime metaprogramming checks alongside static fexpr assertions. #5933 (open)