Thicket thicket
ocaml
REPOS 27

W33.2025 · 11–17 AugAll

Dune 3.20.0~alpha4 adds %{os}, %{os_version}, %{os_distribution}, and %{os_family} percent forms, --alias/--alias-rec CLI flags, and a (timeout) field for cram tests. A Dune cache fix restores empty directories, preventing spurious invalidation of all dependent rules.

Features

  • OCaml stdlib: List.split_map proposed as a generalized split taking a function, equivalent to split (map f l) without intermediate allocations. (#14185, opened)
  • OCaml compiler: --no-inter-tail-calls flag proposed for ocamlopt and ocamlnat to disable interprocedural tail-call optimization, improving stack traces for sampling profilers. (#14186, opened)
  • Oxcaml LLVM backend: Four PRs add tail calls, local/heap allocation, integer and float operations, and switch statements; subsequently refactored into a single replacement PR. (#4507–#4510, opened)
  • Oxcaml JSIR backend: Multi-file compilation added via a global symbol table, enabling cross-unit references; the standard library compiles and links under this mechanism. (#4525, opened)
  • Merlin (oxcaml): Merged support for @@@merlin.document and @@@merlin.locate floating attributes, allowing PPX preprocessors to override Merlin's document and locate outputs at specific source locations. (#177)

Fixes

  • Dune cache: Empty directories are now restored from cache, preventing spurious invalidation of all dependent rules. (#11117)
  • Dune ctypes stanza: Fixed an internal error in dune build when linking executables that use the ctypes stanza. (#12018)
  • OCaml toplevel: -init file not read when -e is used, leaving values unbound; fix reorders initialization before script execution. (#14190, opened)
  • OCaml toplevel 5.4: Qualified variant constructors and record labels printed with internal Lib__Module paths instead of Lib.Module; regression fix proposed. (#14192, opened)
  • eio: Fiber.any now prioritizes returning a resolved value over cancelling remaining fibers when one has already completed. Merged 2025-08-11. (#806)
  • Odoc: Fixed a bug where the file magic-string check succeeded when the stored magic was a prefix of the actual one, causing a subsequent unmarshalling failure. (#1375, opened)

Releases

  • Dune 3.20.0~alpha4: Released 2025-08-12. Adds %{os}, %{os_version}, %{os_distribution}, %{os_family} percent forms, --alias/--alias-rec CLI flags, and a (timeout) field for cram tests. Release