Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W22.2025 · 26 May – 1 Junocaml/ocaml

Features

  • Transparent ascription: Proposal splits module aliases into static and dynamic variants, introducing [@@static_alias] and [@@dynamic_alias] attributes. Dynamic aliases are subtypes of static ones. (#14064)
  • Hashtbl: Proposal adds find_and_remove and find_and_replace, returning the previous binding alongside the mutation. Avoids a separate find_opt call. (#14060)
  • Type alias deprecation: Proposal introduces [@@deprecated_repr] on type aliases to warn callers that rely on the concrete representation before the type becomes abstract. (#14054)

Compatibility and Releases

  • Multicore runtime: Open issue reports a TSan data race in ephe_clean_minor during concurrent minor-GC collection of weak/ephemeron arrays. Reproduced on 5.3.0. (#14061)

Fixes

  • ocamldebug: Merged fix inverts BUILD_PATH_PREFIX_MAP to locate source files in installed packages. Restores pre-Dune-3.0 debugging behaviour for switch-installed libraries. (#14063)
  • Gc.Memprof: Proposal moves the statmemprof update to after the minor-GC barrier, preventing blocks promoted by other domains from being marked collected prematurely. (#14057)
  • Gc.Memprof: Proposal allows start to replace an active per-domain profile without stopping other domains. Adds is_sampling to query the current domain's sampling state. (#14053)
  • Module alias checking: Proposal moves invalid-alias detection from subtyping to the destructive-constraint merge point. Catches aliases to functor parameters and recursive modules that previously slipped through. (#14066)