Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

June 2026

Monthly story not yet available.

W26.2026 · 22–28 JunCore

Fixes

  • Merged: A scoping error in occur_univar_or_unscoped erased result types with the first package type, producing unsound assignments. Fixed in #14892; a 5.5.1 release is warranted.

  • Merged: Since #12596, let rec f = let __0 = f in function … generated an extra closure, breaking inlining for ppx_deriving code. #14885 and #14894 restore the optimisation.

  • Merged: module Q(P : P) : P with type t = P.t triggered an assertion when the constrained type was external "int". External types are now treated as always abstract in this path. #14882

  • Proposed: The pattern-matching integer-overflow guard mishandled abs min_int = min_int. A fix is in #14890.

Features

  • Proposed: New options -cclib-static, -static, -cclib-variant, and -linking-variant record per-variant C library lists in .cma files, resolved at link time via an external command. #14895

  • Merged: The RISC-V backend emits C-extension instructions when the host supports them, reducing ocamlopt.opt code size by 11%. Register allocation favours x8–x15. #14873

  • Merged: Atomic.fetch_add compiles to a single atomic instruction on amd64, arm64, riscv, and power instead of a C call. #14575

  • Merged: Constructor patterns with all-underscore fields now print as A _ instead of A (_,_). Nested records collapse similarly. #14887