Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W21.2025 · 19–25 MayCore

Features

  • OCaml cross-compilation: configure accepts *-none and *-elf* target triplets for native freestanding targets. Merged in #13810.
  • Lazy.Atomic_repeating (proposal): new stdlib submodule for concurrency-safe deferred computations; concurrent force calls may repeat the computation but return the same value. Open in #14043.
  • Modular explicits (proposal): functions parametrized over a named module whose return type may depend on that module, e.g. fun (M : S) -> .... Open in #13275.
  • Field getter syntax (proposal): introduces (.foo) as syntactic sugar for fun x -> x.foo, with type-directed disambiguation. Open in #14042.

Fixes

  • OCaml runtime: fixes a race in domain_terminate where the shared heap was orphaned after leaving the STW set, causing GC compaction to operate on missing pools. Merged in #14025; cherry-picked for 5.4.
  • OCaml typing: Ctype.expand_abbrev_gen now sets the scope of non-variable type nodes when expanding abbreviations in principal mode. Merged in #13781.
  • OCaml compiler: fixes a bug where caml_sys_argv called directly was incorrectly matched by the External special case in Translprim, adding a spurious argument. Merged in #10570.

Compatibility and Releases

  • Unix.kill (Windows): processes killed via Unix.kill now report exit code 137 (128 + SIGKILL) instead of 0. Merged in #14046.