Thicket thicket
ocaml
REPOS 1

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

W50.2025 · 8–14 Decoxcaml/oxcaml

Features

OxCaml register allocation: Merged affinity support for all three register allocators, enabled with -regalloc-param AFFINITY:on. The allocator prefers physical registers with the most move traffic to a given temporary. #5059

OxCaml untagged int arrays: Merged support for int8#, int16#, and int# arrays and iarrays, including creation and indexed access. char# arrays are available as a byproduct of the int8# layout. #4643

OxCaml name mangling: Open PR proposes a reversible mangling scheme that reconstructs full module paths, including submodules, from a mangled name. Demangling implementations target LLVM, the Linux kernel, binutils, and GDB. #5099

OxCaml abstract kinds: Open PR (part 2 of 3) adds basic abstract kind declarations and kind aliases to the type system. Module-level with kind_ = ... constraints are deferred to part 3. #5071

OxCaml layout-polymorphic types: Open PR introduces the repr_ source syntax and Ptyp_repr / Ttyp_repr AST nodes for layout-polymorphic type definitions. Such types are currently uninhabited. #5068

Fixes

OxCaml to_cmm: Merged fix prevents illegal re-orderings that changed observable program semantics. The corrected behaviour is behind a CLI flag and OCAMLPARAM environment variable, off by default. #4941

OxCaml inlining cost metrics: Merged fixes correct code-size computation for lookup-table switches, Boolean_not switches, and canonicalized primitives. A new profiling counter tracks speculative inlining that fails to reduce code size. #5120, #5121, #5118, #5116

Compatibility and Releases

OxCaml nullability axis: Merged change converts nullability from a non-modal axis to a scannable axis, adding new syntax alongside the existing non_null form. This unblocks further work on scannable layouts and ikinds. #5086