Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W38.2025 · 15–21 Sepocaml/ocaml

Features

  • OCaml trunk (typing recovery): PR #14241 adds a -typing-recovery flag to the compiler. When enabled, the type-checker continues past the first error and reports all errors in a file at once. Open, work-in-progress.

  • OCaml trunk (modular explicits): PR #13275 introduces fun (M : S) -> ... syntax, allowing a function's return type to depend on a named module parameter. Open; written during an OCamlPro internship.

  • OCaml trunk (Lazy.Atomic_repeating): PR #14043 proposes a Lazy.Atomic_repeating submodule for concurrency-safe deferred initialization. Concurrent forcing may repeat the computation but always returns the same value. Open.

  • OCaml String module: Discussion #14137 proposes String.find_first, String.split_all, String.replace_all, String.cut, and related functions for 5.5 or 5.6. Awaiting maintainer sign-off on naming.

Fixes

  • OCaml 5.4 (TSan build): PR #14252 fixes a broken ThreadSanitizer build on the 5.4 beta branch caused by a cherry-pick referencing unbackported functions. Merged 2025-09-16.

  • OCaml trunk (TSan shadow stack): PRs #14213 and #14255 fix two TSan shadow-stack bugs that caused crashes when running multiple OCaml programs under the sanitizer (issue #14083). Both open.

Compatibility and Releases

  • OCaml 5.5 (partial-match warning): Issue #14224 confirms that GADT pattern matches on non-exhaustive constructors now trigger warning 8. Maintainers state this is an intentional backward-incompatible change, not a bug. Closed 2025-09-17.

  • OCaml trunk (Relocatable OCaml): PRs #14243, #14244, #14245, and #14246 implement RFC 53: --with-relative-libdir, -launch-method, -runtime-search, --enable-suffixing, and name-mangled shared libraries so multiple OCaml installations coexist without CAML_LD_LIBRARY_PATH. All open.

  • OCaml stdlib: PR #14227 adds List.filter_mapi, combining index-aware mapping with filtering. Merged 2025-09-16.