Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W21.2026 · 18–24 MayCore

Features

OCaml trunk: adds the -typing-recovery flag; the typechecker continues past the first error and reports multiple errors in a single pass. Merged from Merlin's upstreamed patches by @xvw. #14241

OCaml stdlib: adds Seq.ints_in_range, producing a sequence of integers from a start to a stop by a step. Merged after five years in review. #10480

Compatibility and Releases

OCaml C API: caml_ba_alloc no longer allocates memory when CAML_BA_SUBARRAY is set with data = NULL, preventing OOM crashes in existing C bindings. Cherry-picked to 5.5. #14820, #14825

OCaml runtime: a new GC-pacing implementation is under review, replacing the current pacing logic. It is the final item of the GC redesign tracked in #14324. #14796

Fixes

OCaml typechecker: fixes a stack-overflow expansion loop triggered by with type constraints on module types. The fix rechecks well-foundedness after applying constraints. #14754

OCaml typechecker: fixes an uncaught Unify exception involving existentials, row variables, and or-patterns. A scope-escape check is now applied in build_as_type. #14789

OCaml runtime: fixes a race in caml_darken when marking Lazy/Forcing blocks across domains. The header update now uses an atomic compare-and-exchange. #14816

OCaml typechecker: error messages for first-class module unification now name the missing constrained type rather than only showing the two module types. #14051