Features
-
SSA IR (merged): New SSA intermediate representation between Cmm and CFG, with dead-code elimination and a
Cfg_comparevalidator. Controlled by-use-ssa, temporarily on by default. #5810 -
LTO prototype (merged): Reaper serialises whole-program solutions to
.ltosolfiles 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-validaterecompute pass invariants via the internal Datalog engine as a cross-check. #7076 -
Atomic primitives (merged): New
%unsafe_atomic_*_ptrand%unsafe_atomic_*_ext_ptrfamilies operate on block pointers and externally-managed memory. Byte-offset primitives eliminate a redundant shift+tag onidx_atomicaccess. #6802, #6831
Fixes
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 breaksbonsai_web. #59 -
Open:
zarith 1.14+oxinstall on theminus39toolchain breaksbignumdue to aQ.comparedifference. A fix is in progress. #61 -
Open: The
oxcaml-compilerdune-ignorepatch no longer applies after an upstream implementation change. Fix targets the-ox2variant only; other variants pending. #60 -
Open:
expect_test_sexp_diffis absent from the public opam release, yet tests forincremental,incr_map, andppx_cssdepend on it. #76
Releases
- Magic numbers bumped to 586 for the 5.4.0-ox7 release. #7019