Thicket thicket
ocaml
REPOS 5

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

W30.2026 · 20–26 Juloxcaml/oxcaml

Features

  • A PL-theory formalism of Flambda 2 was produced as a Markdown document and used to identify a constant-folding soundness bug (float32 double rounding, fixed in #6474). The formalism lives in #6475 (open).

  • A Z3 Datalog-based validator for the cfg_simplify dead-code-elimination pass was added in #6564 (open). It was verified free of false negatives by running the compiler on itself.

  • A breadth-first meet strategy (plus a hybrid variant) for Flambda 2 type environments is available via -X flambda2-meet-strategy=bfs in #6191 (open). It defers equation processing to a saturation fixpoint, reducing precision loss under relational tracking.

  • A 24-PR series adds end-to-end DWARF debugging for Flambda 2–compiled code: phantom lets for optimised-out variables, inlined-frame attribution, and call-site DIEs. Key merged pieces: #6503, #6504, #6506. Stacked PRs #6519, #6521, #6522 are open.

  • The reaper was split into traverse, solve, and rebuild stages for link-time optimisation (#6627, merged). New reaper-rebuild and reaper-solve compiler entry points were added in #6632 (merged).

  • Faulting safepoints replace compare-and-branch GC polls with a double-load that SIGSEGVs on interrupt, saving 6–12 bytes per poll on AMD64 (#6551, open). Interrupt latency is +1.2 µs; --disable-faulting-safepoints opts out.

Fixes

  • GADT calling-convention specialisation now joins layouts across all match cases instead of using the first, preventing segfaults when a caller selects a different constructor (#6533, #6356, both merged).

  • Recursive-module inclusion checking now tries unroll depths 1, 2, then N; a 1145-member group drops from 53.5 GiB peak / 5 min to 3.0 GiB / 37 s (#6532, merged).