Thicket thicket
ocaml
REPOS 5

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

W34.2025 · 18–24 AugOxCaml

Features

OxCaml shrink wrapping: merged 2025-08-22; moves the function prologue as late as possible in the CFG to reduce emitted epilogues. Enabled via -cfg-prologue-shrink-wrap. #4544

OxCaml prologue validation: merged 2025-08-20; adds a dataflow analysis checking prologue/epilogue invariants on every execution path. Behind -cfg-prologue-validate. #4521

OxCaml Atomic.t: merged 2025-08-21; redefines 'a Atomic.t as a record with a single mutable atomic field, enabling [%atomic.loc t.contents]. #4551

OxCaml LLVM backend: five open PRs (#4476–#4510) add exception handling, tail calls, allocation, float ops, and switches to a new LLVM codegen path. A consolidated rework is pending.

OxCaml DWARF dials: open PR adds -gdwarf-config-shape-reduce-depth, -gdwarf-config-max-cms-files-per-unit, and a -dwarf-fidelity preset flag for tuning debug-info effort. #4535

Merlin: changes dot-merlin-reader lookup to check DOT_MERLIN_READER_EXE, then the Merlin binary's own directory, then PATH. #179

Fixes

OxCaml runtime GC: merged 2025-08-25; replaces the unconditional minor GC before large array writes with a heuristic that triggers GC only if writes would exceed 10% of the remembered set. #4537

OxCaml match-in-match: merged 2025-08-22; loosens a Flambda2 join assertion broken by continuation specialization leaking lifted symbols into specialized environments. #4560

opam-repository utop conflict: open PR corrects a capitalisation error in the utop conflict clause that prevented proper conflict resolution. References #4437. #73

Compatibility and Releases

Merlin: merges OCaml 5.2.0minus-18 compiler changes; the first three commits are import-script artefacts and are skipped. #180

OxCaml baremetal: discussion active during the interval; @avsm states the runtime must settle first, with a libOS layer such as Unikraft suggested as a path toward microkernel boot on x86_64, aarch64, and riscv64. #4504