Thicket thicket
ocaml
REPOS 5

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

W29.2026 · 13–19 Jul

OxCaml repository summaries

2 active · 3 unchanged

Back to weekly digest

oxcaml/opam-repository

Permalink

Features

  • PR #54 (merged 2026-07-13, by dra27-js) adds five compiler releases to the opam repository, including experimental 5.4.0-ox1 and 5.4.0-ox2 builds. The 5.4.0 compilers are installable but no packages build against them yet.

Compatibility and Releases

  • The merged PR introduces 5.2.0minus-38 (Jane 130.100+614), 5.2.0minus-39 (Jane 130.106+341), 5.2.0minus-40, 5.4.0-ox1, and 5.4.0-ox2. 5.2.0minus-39 is the recommended release.
  • Issue #46 (closed 2026-07-13) requested a bump to Jane 130.100+614 to resolve a build failure in ocaml_intrinsics_kernel; the PR above addresses this.

oxcaml/oxcaml

Permalink

Features

  • DWARF debugging for Flambda 2 (dwarf202607 series). Merged: stack-offset fix (#6510), -ddebug-avail-sets flag (#6511), Cmm.symbol for phantom expressions (#6512), entry-value operators (#6525), size_of_expression (#6527). Open stacked PRs add phantom-let translation, availability ranges, inlined-frame DIEs, and call-site info; the final PR (#6523) flips phantom_lets on by default. Debuggers will be able to print optimised-out variables and reconstruct callee parameters by virtual unwinding.

  • arm64: stlr/stlur replaces dmb ishld; str (#6538, open; supersedes closed #6443). Routes 64-bit non-value stores through a Sixtyfour memory chunk; -flrcpc2 emits stlur for imm9 offsets. Measured 80.8 s → 19.4 s (4.18×) on NVIDIA Vera fannkuchredux; removes ~73 % backend stall from per-store fences.

  • Adaptive recursive-module unroll depth (#6532, open). check_recmodule_inclusion tries depth 1, 2, then N; first success wins. A 1145-member generated group drops from 30.9 GiB peak / 8 m 38 s to 1.44 GiB / 13.8 s; .cmi/.cms are byte-identical at depth 1.

  • Functional mode polymorphism (#5483, #5478, #5480–#5482, all open). Adds levels, generalize/generalize_structure, copy, and update_level to the mode solver; gated behind -extension mode_polymorphism_alpha. Polymorphic mode variables print as [< 'm] / [> 'm] with constraint annotations.

  • Flambda 2 formalism (#6475, open). A PL-theory Markdown formalization of the Flambda 2 pipeline, produced by an LLM and reviewed by a human. Used to identify a float32 double-rounding bug in constant folding (fixed in #6474) and a comparison-to-zero signedness miscompile (fixed in #6497).

  • Compact frametables (#6399, open; measurement in #6487, emitter plumbing in #6488). Short descriptor format, ULEB128 deltas, linker de-duplication of debuginfo strings, and shared suffixes reduce rodata by 40 % and executable size by 8 % on a 3 GiB binary.

Fixes

  • GADT calling-convention soundness (#6533, #6356, open). Parameter value kinds were taken from the first GADT case only; a caller selecting a different case passed an immediate where a tuple was expected, segfaulting at -O3. The fix joins layouts across all cases.

  • CFG CSE hoisting mutable loads over fences (#6433, #6476, merged). The CSE pass satisfied a mutable load from before an atomic load or lfence/mfence, effectively hoisting it above the barrier. A minimal fix classifies barrier operations as invalidating; a fuller redesign is in #6434.

3 repositories · no changes