Thicket thicket
ocaml
REPOS 5

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

W36.2026 · 31 Aug – 6 SepOxCaml

Features

  • SSA IR (merged): New SSA intermediate representation between Cmm and CFG, with dead-code elimination and a Cfg_compare validator. Controlled by -use-ssa, temporarily on by default. #5810

  • LTO prototype (merged): Reaper serialises whole-program solutions to .ltosol files and rebuilds from stored solutions rather than re-solving. A draft LTO branch tracks further work. #6964, #7030, #7082

  • Mode polymorphism (merged): Mode variables are first-class in type inference with generalisation, instantiation, and subsumption. Enabled via -extension mode_polymorphism_alpha. #5483, #6279

  • Datalog CFG validators (merged): New flags -cfg-eliminate-dead-code-validate, -cfg-dominators-validate, -cfg-liveness-validate recompute pass invariants via the internal Datalog engine as a cross-check. #7076

  • Atomic primitives (merged): New %unsafe_atomic_*_ptr and %unsafe_atomic_*_ext_ptr families operate on block pointers and externally-managed memory. Byte-offset primitives eliminate a redundant shift+tag on idx_atomic access. #6802, #6831

Fixes

  • Reaper -Oclassic miscompilation (merged): Unused tupled arguments were deleted, causing a segfault in caml_tuplify. The reaper now preserves tuple accessors. #7072, #7075

Compatibility

  • Upstream dune ≥ 3.24.2, eio ≥ 1.4, and mdx ≥ 2.6.0 are installable alongside OxCaml via opam guards. Dune is pinned to 3.22.2+ox because 3.24's %{deps} expansion breaks bonsai_web. #59

  • Open: zarith 1.14+ox install on the minus39 toolchain breaks bignum due to a Q.compare difference. A fix is in progress. #61

  • Open: The oxcaml-compiler dune-ignore patch no longer applies after an upstream implementation change. Fix targets the -ox2 variant only; other variants pending. #60

  • Open: expect_test_sexp_diff is absent from the public opam release, yet tests for incremental, incr_map, and ppx_css depend on it. #76

Releases

  • Magic numbers bumped to 586 for the 5.4.0-ox7 release. #7019