Core covers the OCaml compiler and language RFCs.
Core repository summaries
1 active · 1 unchanged
ocaml/ocaml
PermalinkFeatures
-
Parsetree:
Pexp_holeandPmod_holenodes (#15051, merged). Wildcards in simple and module expressions now produce dedicated parsetree nodes instead of a parse error, enabling ppx transforms to operate on them. -
Bit counting primitives
%clz/%ctz(#15018, open).Int.leading_zerosandInt.trailing_zeroslower to singleclz/ctzinstructions on amd64 and arm64; measured 2–3× speedup over trunk. -
Float ↔ boxed-integer conversion inlined (#15084, open).
Int64.of_float,Int64.to_floatand Int32/Nativeint equivalents compile toCintoffloat/Cfloatofintinstead of C calls; 1.3–2× faster on amd64, arm64, POWER10, s390x.
Compatibility and Releases
-
with module typeprecedence changed (#14978, merged).module type T = T with module type T = T -> Tnow parses asT with module type T = (T -> T), matching the:=form. Existing code relying on the old grouping will fail to compile. -
ocamldebugtransmits full 64-bit object headers (#15022, merged). TheREQ_GET_HEADERprotocol previously clamped to 32 bits, truncating array sizes above 2²².
Fixes
-
Deadcode: atomic loads with discarded results are preserved (#15045, merged, backported to 5.5). Such loads act as fences and were incorrectly eliminated, breaking memory ordering.
-
Runtime_events.read_pollsurvives a user decoder exception (#15075, merged). A raisingdecodefunction no longer leavescursor_in_pollset; the cursor remains usable and the decoder's own error is delivered. -
Runtime_eventslost-words counter widened touint64_t(#15010, merged). The Clost_eventscallback previously wrapped atINT_MAX; the OCaml API retains its 63-bitint. -
Unerasable-optional-argument check relaxed for CPS-style functions (#14671, merged). Warning 16 no longer fires when the return type is a type variable, restoring usability of continuation-passing combinators with optional arguments.