Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W45.2025 · 3–9 Novocaml/ocaml

Features

Relocatable OCaml (PRs #14243–#14246): Four open PRs implement RFC 53, adding --with-relative-libdir, --enable-suffixing, and --enable-runtime-search to configure, plus new ocamlc options -launch-method and -runtime-search. Bytecode executables and shared libraries receive version-suffixed names to disambiguate multiple installations.

include functor (PR #14177): Open proposal adding include functor F as a structure item, applying a single-parameter functor to the current module contents. Eliminates boilerplate proxy modules; multi-parameter functors are rejected with an error.

Module mismatch hints (PR #14330): Open PR adding "close match" hints to signature-mismatch errors when a misspelled identifier in the implementation closely resembles a required one, using a stable-matching algorithm over edit distances.

Compatibility and Releases

Unix C API (PR #14310): Merged deprecation of union sock_addr_union and socklen_param_type in favour of struct sockaddr_storage and socklen_t, with a C11 _Generic macro preserving source compatibility.

Fixes

GC work accounting (PRs #14329, #14336): Merged fixes align major-GC work counters with pacing expectations: caml_darken marking now counts toward the slice, free blocks are excluded from sweep work, and ephemeron marking drops a quadratic walk term.

Runtime race fix (PR #14337): Merged fix for a segfault when a continuation allocated during caml_callback is promoted by a minor collection and then dropped, leaving a stale return address visible to compaction.

caml/osdeps.h (PR #14342): Merged fix making the header self-standing by moving <caml/misc.h> and <caml/memory.h> includes outside the CAML_INTERNALS guard, restoring compilation for stubs that include only osdeps.h.

Memprof segfault (Issues #14340, #14341): Two open reports of segfaults when calling Printexc.backtrace_slots or writing runtime events from memprof callbacks at high sampling rates, reproduced on OCaml 5.3.0 and 5.4.0.