Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W12.2026 · 16–22 MarCore

Features

Atomic.Array (trunk): new stdlib module providing make, get, set, exchange, compare_and_set, and fetch_and_add for lock-free concurrent data structures. Safe and unsafe variants available. #14611

List.append_map (trunk): tail-recursive combination of map and append in a single pass, roughly twice as fast and half the allocations of the composed form. #13554

Type-error highlighting (trunk, proposal): type-comparison error messages highlight the specific incompatible subexpressions via a syntactic and trace-guided pass. #14659

Minor GC speedup (trunk, proposal): exposes major-heap free lists for inline allocation, yielding 2–3 % total-runtime gains on promotion-heavy workloads. #14571

Compatibility and Releases

Gc.stat (trunk): no longer triggers a full major collection; now equivalent to Gc.quick_stat. Call Gc.full_major explicitly for up-to-date counters. #12023

Sys.runtime_parameters (trunk): the R (randomised-hashtable) option is now preserved and visible instead of being silently consumed. #14292

Fixes

Polymorphic pattern segfault (trunk, 5.5): a segfault from let f ([x] : 'a. 'a list) = … is fixed by splitting poly-pattern typing from the exhaustiveness checker. Cherry-picked to 5.5. #14652, issue #14434

Bytecode effects segfault (trunk): try Effect.perform with Effect.Unhandled under a deep Effect.Deep.match_with handler no longer segfaults in bytecode. #14647, issue #14644

Ephemeron GC budget (trunk): restores a missing budget-consumption line in the ephemeron marking loop dropped during a prior rewrite. #14610

Ephemeron resolution (trunk, proposal): dependent ephemerons are resolved in one round; a 20 000-deep chain drops from ~0.4 s per cycle to ~1 ms after the first. #14657