Thicket thicket
ocaml
REPOS 5

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

W37.2026 · 7–13 SepOxCaml

Features

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

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

  • Layout-polymorphic records and variants opened by @joe-kerrigan. finalize_instantiated_shape translates generalised sort variables to splice variables evaluated in 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. Not yet linked to types. #6956

  • Mode polymorphism parsing opened by @ainageorges. Argument/result annotations accept mode variables ('m) and bounds ([< 'm], [> 'm]); curry-mode constraints generated implicitly. #6829

  • Keep functions specialisable after lambda lifting opened by @mshinwell. The reaper emits a synthetic specialisation site at the original binding; the simplifier re-specialises lifted code on inlining, restoring [@zero_alloc] guarantees. #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. #6681

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