Thicket thicket
ocaml
REPOS 5

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

W45.2025 · 3–9 NovOxCaml

Features

  • OxCaml sort levels: merged; adds levels to sort variables, enabling polymorphic sort variables for layout polymorphism. Level-handling logic is split into a new Levels module within Typing. #4785

  • OxCaml F16C/FMA SIMD: merged; adds float16x8, float16x16, and float16x32 vector types with F16C and FMA intrinsics. All FMA intrinsics map to the 213 instruction form. #4964

  • OxCaml exception modes: merged; extends exceptions to cross statefulness and visibility axes, in addition to portability and contention. Permits throwing exceptions from stateless functions. #4891

  • OxCaml mixed modules: open; lifts the value-only restriction on module fields, enabling unboxed data in modules. New Types.module_representation and Lambda.module_representation types track mixed layout through typing and codegen. #4020

  • OxCaml sharable mode: open; adds a sharable mode to the portability axis; sharable closures capture shared values. The statefulness axis now implies sharable, analogous to observing. #4982

  • OxCaml implicit kinds: open; introduces [@@implicit_kind] attribute syntax for implicit jkinds on type variables. Currently works in signatures under -extension implicit-types. #4285

Fixes

  • Merlin (oxcaml) short-paths: stops forcing substitutions during short-paths graph construction. Eliminates a performance bug where ocamlmerlin took over twice the compiler's type-check time on large modules. #193

  • Merlin (oxcaml) menhir: adds --lalr to menhir parser invocations, matching the flag the compiler already passes. Improves parser generation speed. #194

  • Merlin (oxcaml) lazy indexing: backports upstream lazy indexing changes (ocaml/merlin#1990, #1991) to defer index construction. #195

  • OxCaml parameterized libraries: merged; disallows aliases to functor parameters. Fixes a segfault from incorrect member projection through coerced signatures. #4948

  • OxCaml quotation moregen: merged; completes inclusion checking for quotes and splices. Fixes unsound unification from stage normalisation during generalisation. #4974