Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W12.2026 · 16–22 Mar

Core repository summaries

1 active · 1 unchanged

Back to weekly digest

ocaml/ocaml

Permalink

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 (unbound-checked) variants are available. #14611

  • List.append_map / List.rev_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

  • Semantic highlighting in type errors (trunk, open): type-comparison error messages now highlight the specific incompatible subexpressions using a syntactic pass plus trace-guided pass. #14659

Compatibility and Releases

  • Gc.stat deprecated (trunk): Gc.stat no longer triggers a full major collection and is 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 in Sys.runtime_parameters instead of being silently consumed. #14292

Fixes

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

  • Bytecode effects heap corruption (trunk): try Effect.perform with Effect.Unhandled under a deep Effect.Deep.match_with handler no longer segfaults in bytecode; the continuation is now rooted across the C call. #14647, issue #14644

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

Performance

  • Faster minor GC (trunk, open): inlines the hot oldify_one path and exposes major-heap free lists for inline allocation, yielding 2–3 % total-runtime gains on promotion-heavy workloads. #14571

  • Ephemeron quadratic blowup (trunk, open): eagerly marks data of preserved ephemerons so 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

1 repository · no changes