Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W39.2026 · 21–27 SepCore

Features

  • Dynarray.sort, Dynarray.stable_sort, Dynarray.stable_sort_sub added to the standard library. They delegate to Array.stable_sort_sub and raise on length change. Merged. (#14848)

  • Bulk float-array operations (dot, sum, scale, axpy, add, mul) proposed as Float.Array primitives. The compiler emits a four-lane Cmm loop; an arm64 NEON exemplar is included. Open proposal. (#15094)

Compatibility

  • Weak.get_copy is deprecated and now an alias of Weak.get (no shallow copy). Code relying on the copy-to-avoid-lifetime-extension semantics must migrate. Merged. (#15064)

  • New warning 76 (syntactic-unerasable-optional-argument) proposed for optional arguments not followed by a non-labelled argument. Extends warning 16; disabled by default. Open proposal. (#15097)

Fixes

  • Int.popcount, Int.leading_zeros, Int.trailing_zeros now lower to %popcount/%clz/%ctz primitives. arm64 emits a single instruction; other backends fall back to a C call. 2–3× speedup on amd64 and arm64. Merged. (#15018)

  • Unaligned memory accesses enabled on s390x. Bytes.get_int64 and related operations no longer emit byte-at-a-time sequences. 2× speedup on z15 for unaligned 64-bit reads. Merged. (#15090)

  • Typemod.type_package now calls Mtype.lower_nongen, preventing a weak type variable from unifying with an out-of-scope type. The compiler previously accepted programs that should be rejected. Merged. (#12195)

  • Unix.select on Windows: fixed an out-of-bound array access in the 63-fd packet emulation and a socket-handle leak on the error path. Merged. (#15093, #14975)