Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W34.2026 · 17–23 Augocaml/ocaml

Features

  • Sys.filepath_exists added to the standard library; raises Sys_error on permission errors instead of returning false. Sys.file_exists docstring updated to recommend the new function. Merged by @nojb. (#14974)

  • Float.fma now emits a single fused-multiply-add instruction (fmadd, fmadd.d, madbr) on arm64, power, riscv, and s390x instead of calling caml_fma in C. Merged. (#15008)

  • sqrt and byte-swap externals emit native instructions on s390x (sqdbr, lrvgr/lrvr/lgfr) and riscv (fsqrt.d) instead of C calls. Merged. (#15002, #15005)

  • Minor GC hot path (oldify_one) rewritten to inline allocation and avoid global-variable access; measured 2–3 % total runtime improvement on promotion-heavy workloads. Open, under review. (#14571)

Fixes

  • Bytecode loader caml_read_section_descriptors now guards against integer overflow when computing section-table size, preventing a potential crash on malformed executables. Merged. (#14872)

  • Runtime_events.read_poll misreports a recoverable ring-buffer overwrite as Failure("corrupt stream") when the producer laps the consumer; fix re-checks ring_head and adds a producer-side fence. Open. (#15016)

  • Weak.get_copy shallow-duplicates continuations, producing two handles to the same fiber and a segmentation fault on double-continue; fix treats continuations as non-copyable. Open. (#14988)

Compatibility and Releases

  • 32-bit targets now default to _FILE_OFFSET_BITS=64 and _TIME_BITS=64 (large-file and year-2038 support) via Autoconf checks; disable with --disable-largefile or --disable-year2038. Merged. (#14997)