Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W39.2026 · 21–27 Sep

Core repository summaries

1 active · 1 unchanged

Back to weekly digest

ocaml/ocaml

Permalink

Features

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

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

Compatibility and Releases

  • 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 clz/ctz 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. Previously the compiler 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 (missing slot for the stop handle) and a socket-handle leak on the error path. Merged. (#15093, #14975)

1 repository · no changes