Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W31.2026 · 27 Jul – 2 Augocaml/ocaml

Features

  • Sys.filepath_exists (PR #14974, open) returns true iff stat(2) succeeds, false on ENOENT/ENOTDIR, raises Sys_error otherwise. Addresses #12393.
  • Dynarray.append_iarray and Pqueue.of_iarray added (PR #14909, merged). Avoids copying iarrays through regular arrays.
  • Native Atomic.exchange and Atomic.compare_and_set emitted 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 -> T will parse as T 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 -c crashes with Fatal error: exception Ctype.Unify(_) on certain locally-abstract module patterns (issue #14842, open). Regression since 5.5.0-beta1; no fix merged yet.