Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W04.2026 · 19–25 Jan

Core repository summaries

2 active · 0 unchanged

Back to weekly digest

ocaml/RFCs

Permalink

Features

  • OCaml RFC #60 (persistent compiler processes): Open proposal adding a persistent mode to ocamlc, ocamlopt, and ocamldep, reducing per-invocation process startup and repeated .cmi unmarshalling. #60

  • OCaml developer meeting on RFC #60: Consensus that the direction is interesting but a 10–20% gain is insufficient to commit. Caching .cmi loading identified as a lighter-weight alternative; reproducibility concerns raised around internal object IDs. #60

  • OCaml RFC #57 (labeled tuple projections): Ongoing discussion; a comment argues against adding a third row-polymorphism mechanism and notes that PR #11407 reduces the fst/snd motivation for the feature. #57

ocaml/ocaml

Permalink

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