Core covers the OCaml compiler and language RFCs.
Core repository summaries
1 active · 1 unchanged
ocaml/ocaml
PermalinkFeatures
-
Dynarray.sort,Dynarray.stable_sort,Dynarray.stable_sort_subadded to the standard library. They delegate toArray.stable_sort_subon the backing array and raise on length change. Merged. (#14848) -
Bulk float-array operations (
dot,sum,scale,axpy,add,mul) proposed as newFloat.Arrayprimitives. 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_copyis deprecated and now an alias ofWeak.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_zerosnow lower to%popcount,%clz,%ctzprimitives. arm64 emits a singleclz/ctzinstruction; 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_int64and related operations no longer emit byte-at-a-time sequences. 2× speedup on z15 for unaligned 64-bit reads. Merged. (#15090) -
Typemod.type_packagenow callsMtype.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.selecton 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)