Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W38.2026 · 14–20 SepCore

Features

  • Wildcards in simple and module expressions now produce Pexp_hole/Pmod_hole parsetree nodes instead of a parse error, enabling ppx transforms to operate on them. #15051, merged.

  • Int.leading_zeros and Int.trailing_zeros lower to single clz/ctz instructions on amd64 and arm64; measured 2–3× speedup over trunk. #15018, open.

  • Int64.of_float, Int64.to_float and Int32/Nativeint equivalents compile to Cintoffloat/Cfloatofint instead of C calls; 1.3–2× faster on amd64, arm64, POWER10, s390x. #15084, open.

Fixes

  • Deadcode elimination no longer removes atomic loads with discarded results, which act as memory-ordering fences. Backported to 5.5. #15045, merged.

  • A raising decode function in Runtime_events.read_poll no longer leaves cursor_in_poll set; the cursor remains usable. #15075, merged.

  • Warning 16 (unerasable optional argument) no longer fires when the return type is a type variable, restoring CPS-style combinators with optional arguments. #14671, merged.

Compatibility

  • with module type now binds tighter: T with module type T = T -> T parses as T with module type T = (T -> T). Code relying on the old grouping fails to compile. #14978, merged.

  • ocamldebug REQ_GET_HEADER now transmits full 64-bit object headers instead of clamping to 32 bits, fixing truncation of array sizes above 2²². #15022, merged.