Thicket thicket
ocaml
REPOS 1

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

W37.2026 · 7–13 Sepoxcaml/oxcaml

Features

  • LTO prototype opened by @mirivella. The Reaper solver assumes a closed world; calling-convention and slot-offset decisions move to solve time; solutions serialise to .ltosol files. Draft, not ready for review. #7156

  • Static functor transl, fracture and eval merged. Adds Ltemplate for functors whose arguments exist at both compile-time and runtime; single-argument functors only. Partial application and overapplication deferred. #6846

  • Layout-polymorphic records and variants opened by @joe-kerrigan. finalize_instantiated_shape translates generalised sort variables to splice variables evaluated in Slambda; mixed-block checks deferred past Slambda. Recursive definitions still unsupported. #7152

  • Box kinds opened by @rtjoa. Adds the k box kind constructor: k box < scannable always, with layout-specific implied axes (e.g. float64 box < value). Not yet linked to types; no existing types carry this kind. #6956

  • Mode polymorphism parsing opened by @ainageorges. Argument/result annotations accept mode variables ('m) and bounds ([< 'm], [> 'm]); curry-mode constraints generated implicitly. Grammar enforces upper-then-lower bound order and meet/join separators. #6829

  • Keep functions specialisable after lambda lifting opened by @mshinwell. The reaper emits a "specialisation site" (synthetic value slots, no runtime allocation) at the original binding; the simplifier re-specialises lifted code when the enclosing function is inlined, restoring [@zero_alloc] guarantees lost by lifting. #7109

Fixes

  • n-way join performance merged by @bclement-ocp, closing #6586. Projects linearly-occurring existential variables and imports physically-equal types without canonicalisation; join time halved on the compiler build (~1% total compile-time reduction). #6681

  • -Oclassic Cmm crash on Int64 operations fixed. The peephole engine's add_const rule produced or where + was expected for Int64.sub of a shifted value. All optimisations now use the preferred input form consistently. Merged; found via oxfuzzer. #7111 / #7102