Thicket thicket
ocaml
REPOS 5

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

W50.2025 · 8–14 DecOxCaml

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 targets 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

  • OxCaml opam-repository: Open PR proposes replacing the monolithic conflicts clause in ocaml-variants.5.2.0+ox with generated guard packages that enforce patched-version dependencies via per-package disjunctions. #27

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

  • OxCaml opam-repository: Open PR reapplies a patch removing the [%%if ocaml_version < (4, 14, 0)] extension from the js_of_ocaml-toplevel build, which OxCaml does not interpret. #26

Compatibility

  • 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