Thicket thicket
ocaml
REPOS 1

Core covers the OCaml compiler and language RFCs.

W42.2026 · 12–18 Octocaml/ocaml

Features

  • A proposed -strict flag for ocamldep makes it exit non-zero on errors (missing file, parse error) and suppress output. Fixes #15132. (#15167, open)

Compatibility and Releases

  • OCaml 5.6 trunk exhibits a severe compilation slowdown (30+ min) on large classes with heavy ppxlib use, traced to variance checking. PR #15172 reduces the case from ~12 min to ~55 s. (#15163, open)

Fixes

  • Merged: Atomic.exchange and Atomic.compare_and_set now emit native instructions (xchg, cmpxchg, amoswap, etc.) for immediate values on all five backends. Single-domain exchange drops from 1.36 s to 0.51 s on amd64. (#14980)
  • Merged: the bytecode compiler caches getcwd once per source file instead of per debug event. On macOS this cuts system time by roughly 80 % for large bytecode builds. (#15140)
  • ocamlopt miscompiles asr 63 and lsr 63 when the result is immediately untagged (e.g. via Int64.of_int), producing wrong values. The bug dates to 1999; no fix PR is open yet. (#15157, open)
  • A soundness bug in variance composition lets a bivariant parameter inside an invariant GADT parameter escape invariance, enabling Obj.magic-equivalent unsoundness. PR #15165 proposes a stricter check. (#15142, open)
  • A race between Gc.finalise_last and the minor GC can cause segfaults or heap corruption when a domain finalises a young value from another domain. PR #15153 promotes cross-domain values before the barrier. (#15152, open)
  • Merged: Seq.ints_in_range no longer overflows for ranges ending at max_int. Cherry-picked to 5.6. (#15173)