OxCaml covers the compiler extensions and their supporting tools and packages.
OxCaml repository summaries
3 active · 2 unchanged
janestreet/opam-repository
PermalinkCompatibility and Releases
expect_test_sexp_diffis absent from the public opam release, yet tests forincremental,incr_map, andppx_cssdepend on it;expect_test_graphvizmay also be missing forincremental. Opened by smuenzel as issue #76 on 2026-08-31; still open with no resolution recorded in this interval.
oxcaml/opam-repository
PermalinkCompatibility and Releases
-
Merged: upstream dune ≥ 3.24.2, eio ≥ 1.4, and mdx ≥ 2.6.0 are now installable alongside OxCaml via opam guards. Dune 3.24's
%{deps}expansion (ocaml/dune#15156) breaksbonsai_web; dune is pinned to 3.22.2+ox as a workaround. (#59, avsm) -
Closed (superseded by #59): mdx 2.6.0 confirmed OxCaml-compatible; the standalone patch was unnecessary once the guard-based approach landed. (#55, dra27-js)
-
Open: zarith 1.14+ox install on the
minus39toolchain. A comment notes the change breaksbignumdue to aQ.comparedifference; a fix is in progress. (#61, avsm) -
Open (updated in interval): oxcaml-compiler
dune-ignorepatch no longer applies after an upstream implementation change. Fix targets the-ox2variant only; other variants pending. (#60, shunueda)
oxcaml/oxcaml
PermalinkFeatures
-
SSA intermediate representation (merged): A new SSA IR sits between Cmm and CFG, with a reducer framework for SSA-to-SSA transforms, aggressive dead-code elimination, and a
Cfg_comparevalidator that checks register-equivalence against the legacy pipeline. Controlled by-use-ssa(temporarily on by default). #5810 -
Link-time optimization prototype (merged): The Reaper now serialises whole-program solutions to
.ltosolfiles, computes calling-convention changes and slot offsets at solve time, and rebuilds from the stored solution rather than re-solving. A draft LTO branch tracks further work. #6964, #7030, #7082, #6895 (open) -
Functional mode polymorphism (merged): Mode variables are now first-class in type inference, with generalisation, instantiation, and subsumption. Enabled via
-extension mode_polymorphism_alpha; subsumption prevents a soundness hole where a less-polymorphic implementation was accepted against a more polymorphic signature. #5483, #6279 -
Static functors (open): Introduces "templates" whose arguments exist at both compile-time and runtime, enabling compile-time functor application with fracturing and eval. Currently restricted to single-argument functors; partial application planned in follow-up. #6846
-
Experimental compiler fuzzer (open): A random-program generator covering a subset of OxCaml. Already discovered double-rounding bugs in
blambdafloat32/int64 conversions. #6933, #7064 -
Datalog-based CFG validators (merged): Adds
-cfg-eliminate-dead-code-validate,-cfg-dominators-validate, and-cfg-liveness-validateflags that independently recompute pass invariants via the internal Datalog engine (Z3 fallback), providing a cross-check on the CFG stage. #7076 -
Metaprogramming unit unloading (open): A nine-PR stack adds runtime support for GC-reclaimable JIT-compiled units: code blocks are donated to the major heap, the mark phase tracks code pointers via frame descriptors, and the loader activates/deactivates units. #7050
-
Atomic primitives for unboxed types (merged): New
%unsafe_atomic_*_ptrand%unsafe_atomic_*_ext_ptrfamilies operate on block pointers and externally-managed memory. Byte-offset-based primitives eliminate a redundant shift+tag on everyidx_atomicaccess. Thecaml_domain_alonefast-path is removed to prevent non-atomic stores. #6802, #6831, #6747, #6937 (open)
Fixes
-
Reaper miscompilation in
-Oclassic(merged): When all arguments of a tupled function are unused, the tupled argument was deleted, causing a segfault in thecaml_tuplifywrapper. The reaper now preserves the tuple accessors. The-Oclassicreaper path was reverted and re-landed with this fix. #7072, #7075 -
Allocation pointer bug on stack overflow (merged): The SEGV-to-
caml_raise_stack_overflowpath failed to save%r15, corrupting recently-allocated values. A regression test with--disable-stack-checksis included. #7020 (merged 9/10, outside interval—omitted)
Compatibility and Releases
- Magic numbers bumped to 586 for the 5.4.0-ox7 release. #7019