Core covers the OCaml compiler and language RFCs.
Core repository summaries
1 active · 1 unchanged
ocaml/ocaml
PermalinkFeatures
Sys.filepath_exists(PR #14974, open) returnstrueiffstat(2)succeeds,falseonENOENT/ENOTDIR, raisesSys_errorotherwise. Addresses #12393.Dynarray.append_iarrayandPqueue.of_iarrayadded (PR #14909, merged). Avoids copying iarrays through regular arrays.- Native
Atomic.exchangeandAtomic.compare_and_setemitted as inline assembly on amd64, arm64, riscv, power, s390x (PR #14980, open). Single-domain exchange ~2.6× faster than the C-call path.
Compatibility and Releases
module type T = T with module type T = T -> Twill parse asT with module type T = (T -> T)(PR #14978, open). Breaking for code relying on the previous grouping.- RFC #14967 proposes deterministic Hashtbl iteration via insertion-order tracking, enabling random-seeded tables by default. Implementation in PR #14956 (open) adds ~42% memory per binding.
Fixes
- Type-checking performance regression from #11648 resolved. Merged PRs #14913, #14947, #14950, #14952 reduce compilation of affected files from ~10 min to ~170 ms.
- Pattern-matching compiler overflow guard failed on
abs min_int = min_int. Fixed in PR #14890 (merged). ocamlc -ccrashes withFatal error: exception Ctype.Unify(_)on certain locally-abstract module patterns (issue #14842, open). Regression since 5.5.0-beta1; no fix merged yet.