Core covers the OCaml compiler and language RFCs.
Core repository summaries
1 active · 1 unchanged
ocaml/ocaml
PermalinkFeatures
-
Sys.filepath_existsadded to the standard library; raisesSys_erroron permission errors instead of returningfalse.Sys.file_existsdocstring updated to recommend the new function. Merged by @nojb. (#14974) -
Float.fmanow emits a single fused-multiply-add instruction (fmadd,fmadd.d,madbr) on arm64, power, riscv, and s390x instead of callingcaml_fmain C. Merged. (#15008) -
sqrtand 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_descriptorsnow guards against integer overflow when computing section-table size, preventing a potential crash on malformed executables. Merged. (#14872) -
Runtime_events.read_pollmisreports a recoverable ring-buffer overwrite asFailure("corrupt stream")when the producer laps the consumer; fix re-checksring_headand adds a producer-side fence. Open. (#15016) -
Weak.get_copyshallow-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=64and_TIME_BITS=64(large-file and year-2038 support) via Autoconf checks; disable with--disable-largefileor--disable-year2038. Merged. (#14997)