Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W32.2026 · 3–9 AugCore

Features

  • New Uchar.is_ascii, Uchar.ascii_to_char, Uchar.is_latin1, Uchar.latin1_to_char clarify the char/Uchar.t boundary. Merged. (#14981)
  • Optional arguments may now carry polymorphic types (e.g. ?f:('a. 'a -> 'a)), encoded as Tpoly under Tarrow. Open. (#14985)
  • Atomic.exchange and Atomic.compare_and_set emit native instructions (xchg, cmpxchg, amoswap) for statically immediate values. Benchmarks show 2–3× speedup on single-domain workloads. Open. (#14980)
  • Weak.Make reimplemented with open-addressing and linear probing; one benchmark shows 30% faster alt-ergo-free runs. Open. (#14979)
  • RFC 52 proposes a [%call_pos] attribute on Lexing.position parameters, auto-filled with the call-site position. Intended for monadic bind tracing and embedded-language diagnostics. Open. (#52)

Fixes

  • The typechecker no longer assumes abstract types in the current module are injective, closing a soundness hole that permitted arbitrary type casts and segfaults. Merged. (#14982)
  • The let-rec size check now classifies generic arrays as dynamic size, preventing a segfault on 32-bit when a flat float array appears in a recursive binding. Merged. (#14993)
  • Weak.get_copy no longer shallow-duplicates continuations, which previously could cause segfaults when two copies shared a fiber. Open. (#14988)

Compatibility

  • ocamlc will enable -g by default, matching ocamllopt. This disables some lambda Simplif passes in bytecode but improves backtrace quality. Open. (#14971)