Thicket thicket
ocaml
REPOS 1

Core covers the OCaml compiler and language RFCs.

W30.2025 · 21–27 Julocaml/ocaml

Features

  • OCaml trunk (polymorphic parameters): Merged. Functions can now take parameters with polymorphic types, e.g. val f : ('a. 'a -> 'a list) -> int list. An explicit annotation is required; unannotated parameters remain monomorphic. #13806

  • OCaml trunk (Hashtbl): Merged. Adds Hashtbl.remove_mem and Hashtbl.replace_mem, which return the previous binding (if any) in addition to performing the mutation. Avoids a separate find_opt call. #14060

  • OCaml trunk (module patterns): Merged. The parsetree now distinguishes (module M : S) from (module M) : (module S) in patterns. This is a prerequisite for modular explicits and affects ppxlib consumers. #14149

  • OCaml trunk (minor heap reservation): Proposed. Reserves minor-heap address space for 1 domain initially, then 8, 16, 32, … doubling to max_domains, instead of reserving for all 128 domains up front. Addresses crashes in Rocq/Why3 under constrained virtual-memory limits. #14162

Fixes

  • OCaml 5.4 (symbol mangling): Merged. Reverts to . as the module separator in symbol names on non-Apple Unix systems, restoring perf and flamegraph.pl compatibility that broke in 5.4.0~alpha1. Apple systems keep the $ scheme for lldb. #14143

  • OCaml trunk (shared-heap GC): Merged. Free blocks in the shared heap are now run-length encoded, making sweep time proportional to the live fraction rather than total pool size. Benchmarks show up to 3.85× speedup on sparse heaps; dense heaps see a small regression. #13616

  • OCaml trunk (minor heap arena): Merged. Fixes incorrect decommit of a domain's minor heap when it leaves the STW participant set, and a follow-up bug where stw_resize_minor_heaps_reservation zeroed the arena size before re-allocation. #14158, #14164

Compatibility and Releases

  • OCaml trunk (Gc.stat): Proposed. Adds a field tracking total bytes held by live fibers (active, suspended, or parked in the cache), repurposing the previously unused stack_size slot. #14168