Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W44.2026 · 26 Oct – 1 Nov

Core repository summaries

2 active · 0 unchanged

Back to weekly digest

ocaml/RFCs

Permalink

Features

  • Constructor unboxing RFC (#14) was updated 2026-10-31 and remains an open proposal. It extends [@@unboxed] to eliminate the block for unary constructors whose argument types are distinguishable at run-time, reducing allocation and indirection. An undated comment references a rebased implementation in PR #15227; the comment's date cannot be established from the supplied data.

ocaml/ocaml

Permalink

Fixes

  • #15204 (merged): Pattern matching on a mutated variant field was treated as exhaustive when it was not, causing segfaults. The partiality record now propagates the downgrade correctly.
  • #15208, #15213 (merged): Two flambda miscompilations fixed. -Oclassic alias analysis produced garbage values by treating symbol fields as aliased to the symbol; float-array lifting on a dead GADT branch triggered a fatal error.
  • #15168 (merged): Scanf.unescaped now handles octal (\oNNN), uchar (\u{…}), and backslash-space escapes, matching the lexer. Fixes #14930.
  • Issues #15205, #15189 (open): Native Atomic.exchange and Atomic.compare_and_set miscompile on amd64 when the result register is spilled; regression from #14980. Fixes in progress via #15207 and #15192.

Features

  • #15167 (merged): ocamldep gains a -strict flag that exits non-zero on missing files or parse errors and produces no output on failure. Fixes #15132.
  • #15227 (open): Head shapes and constructor unboxing extends [@unboxed] to multi-constructor variant types. Open for review; includes specification and implementation documents.

Compatibility and Releases

  • #14602 (merged): Unix.rename and Sys.rename on Windows now succeed when the destination file is read-only, matching POSIX semantics.
  • #15219 (open): Fast path for variance checking of constrained parameters reduces compilation of the #15163 benchmark from 760 s to 3.7 s (99.5 %).