Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W45.2025 · 3–9 NovCore

Features

  • Relocatable OCaml (RFC 53): Four open PRs (#14243–#14246) add --with-relative-libdir, --enable-suffixing, and --enable-runtime-search to configure, plus ocamlc options -launch-method and -runtime-search. Bytecode executables 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. 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 closely resembles a required one.

  • OCaml RFC #37 (uniform arrays): Open proposal for specialized built-in and C primitives for uniform arrays plus a CamlinternalUniform_array standard-library module to simplify unsafe array idioms. #37

Compatibility

  • 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: caml_darken marking 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): 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.