Thicket thicket
ocaml
REPOS 5

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

W26.2026 · 22–28 Junoxcaml/oxcaml

Features

  • AVX512 SIMD backend (experimental). Three open PRs plumb 512-bit ZMM/K mask registers, EVEX instruction encoding, and basic 512-bit vector operations through the compiler. Gated behind simd_alpha; disabled by default. #6293, #6294, #6339

  • Allocation mode axis for zero-alloc analysis. A new Allocation mode axis was merged, forcing closures containing heap allocation to alloc mode. A follow-up PR adds detection of all allocation sites, distinguishing stack from heap. #6269, #6319

  • Functional mode polymorphism (ongoing). Integrates level-relation operations into type inference so mode variables are polymorphic. Controlled by -extension mode_polymorphism_alpha; printing via -extension mode_polymorphism_printing. #5483

  • Compiler performance CI. A new GitHub Actions workflow compares base vs. head compiler CPU time on a corpus of compiler source files, failing when the 99% lower confidence bound exceeds a 1.5% threshold. #6365

Fixes

  • Zero-alloc unsoundness with never_returns_normally. [@zero_alloc assume never_returns_normally] on an inlined function that raises makes the checker accept allocating code in the caller. [@zero_alloc assume] alone is also unsound. #6297

  • Stack-check SIMD save (opened). The inserted Stack_check instruction received an empty live set, so the realloc trailer used the plain caml_call_realloc_stack (no xmm/ymm/zmm save). Fix gives the check the correct live-in set and selects the _sse/_avx/_avx512 variant. #6337

Compatibility and Releases

  • Typing-Recovery integrated into the type checker. Ported from Merlin to reduce divergence between the two type checkers, facilitating upstreaming. Reviewed by @trefis and @Octachron on the ocaml/ocaml side. #6366

  • Inlining attribute semantics redesign (proposal). Proposes splitting the current two-axis [@inline] into a four-level hierarchy (always/available/hint/never) plus local variants, fixing the interaction with [@inlined]. #6312