Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W04.2026 · 19–25 Janocaml/ocaml

Features

OCaml String module: merged String.replace_first, String.replace_last, String.replace_all, String.split_first, String.split_last, String.split_all, and String.rsplit_all for OCaml 5.5. Part of a broader String API improvement effort. #14436, #14437

OCaml Gc.Tweak: merged a mechanism for named GC parameters settable via OCAMLRUNPARAM=Xfoo=123 or the new Gc.Tweak stdlib module. The mark-stack pruning threshold is the first parameter exposed. #14367

Labeled tuple projections: open proposal adding e.~l syntax to access labeled tuple components without pattern matching, e.g. (1, ~msg:"hi", 3).~msg. A syntax clash with MetaOCaml remains unresolved. #14257

Lazy.Concurrent_blocking: open proposal adding a mutex-protected lazy thunk module for safe concurrent initialization in library code. The module name signals its limitation: it does not integrate with user-level fiber abstractions. #14393

Fixes

Polymorphic parameters soundness bug: open issue where let f ([x] : 'a. 'a list) = ... segfaults on f [] due to incorrect Tpoly handling in the exhaustiveness checker. Two competing fixes are under review. #14434, #14480, #14479

Type-checker state reset: merged a fix ensuring ocamlc -c foo.ml bar.ml baz.ml produces identical output to three separate invocations, by resetting the type ID counter, Ctype levels, and pattern-match lambda caches between files. #14483

-bin-annot-occurrences assertion failure: merged a fix for a fatal assertion in typing/env.ml triggered when compiling functor arguments with -bin-annot-occurrences, caused by shape-only paths in Env.find_uid. #14476, #14474

Compatibility and Releases

Windows minimum version: merged a change defining _WIN32_WINNT as 0x0602 (Windows 8 / Server 2012) in internal C preprocessor flags, replacing per-file definitions. Required for WaitOnAddress and WakeByAddressAll. #14484