Core covers the OCaml compiler and language RFCs.
Core repository summaries
2 active · 0 unchanged
ocaml/RFCs
PermalinkFeatures
- RFC 52: Implicit source positions (open, updated 2026-08-05) — Proposes a
[%call_pos]attribute on labelled function parameters of typeLexing.position, auto-filled with the call-site position. Intended for monadic bind tracing, test-framework diagnostics, and embedded-language error reporting. Not yet merged. #52 (OlivierNicole)
ocaml/ocaml
PermalinkFeatures
Performance
Atomic.exchangeandAtomic.compare_and_setemit native instructions (xchg,cmpxchg,amoswap, etc.) instead of C calls when the stored value is statically immediate. Benchmarks show 2–3× speedup on single-domain workloads. Open. (#14980)Weak.Makeis reimplemented with open-addressing and linear probing; alt-ergo-free runs 30% faster in one benchmark. Open. (#14979)
Fixes
- The typechecker no longer assumes abstract types defined 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_copyno longer shallow-duplicates continuations, which previously could cause segfaults when two copies shared a fiber. Open. (#14988)
Compatibility and Releases
ocamlcwill enable-gby default, matchingocamllopt. This disables some lambdaSimplifpasses in bytecode but improves backtrace quality. Open. (#14971)