Thicket thicket
ocaml
REPOS 27

W40.2025 · 29 Sep – 5 OctAll

OCaml 5.4.0 RC1 entered opam-repository with one TSAN fix since beta2, final release expected the following week. cmdliner 2.0.0 merged, removing prefix-based command and option matching (restorable via CMDLINER_LEGACY_PREFIXES=true), while opam update now loads only changed .opam files, reducing Windows update time from ~10 s to ~0.01 s.

Features

  • OCaml RFCs PR #57: Open proposal for labeled and 0-indexed unlabeled tuple projections (e.g. x.tuple, x.3). Discussion covers row-polymorphic tuples and labeled-tuple projection semantics. Link
  • Dune tools env: Open. New command prints shell commands to add installed dev tools to PATH, enabling editors to invoke tools like ocamllsp without prefixing every call. #12521
  • OxCaml runtime quotations: Introduces staged computation via <[, ]> brackets and $ splicing, with a stage notion added to the type system. Quotations are represented as an AST; opening modules inside quotations is rejected. #4395
  • OxCaml untagged int arrays: Adds int8#, int16#, and int# arrays and iarrays with a new tag-encoding scheme (tags 4–7 encode element width). char# arrays follow from the shared layout with int8#. #4643

Fixes

  • Dune pkg null builds: Merged. Two changes reduce null-build time for dune pkg projects from roughly 8 s to 1 s by eliminating redundant comparisons and expensive hash computations. #12517, #12518
  • opam update: Merged. Loads only changed .opam files instead of reloading the entire repository. Reduces update I/O from ~10 s to ~0.01 s on Windows and ~3.5 s to ~1 ms on Unix. #6614
  • OCaml LSP 1.23.1: Fixes hover on method calls not showing the type. Fixes the unsupported file extension error when opening .mll files in NeoVim. Release

Compatibility and Releases

  • OCaml 5.4.0 RC1: First release candidate merged to opam-repository. One TSAN fix and one changes-entry fix since beta2; final release expected the following week. PR
  • cmdliner 2.0.0: Merged to opam-repository. Removes prefix-based command and option matching (set CMDLINER_LEGACY_PREFIXES=true to restore); adds Arg.Conv, Arg.Completion, and a cmdliner install tool. PR
  • Merlin v5.6-504: Adds OCaml 5.4 support via upgraded vendored typer. Also adds locate_type_multi query, fixes merlin_reader on OpenBSD, and improves recovery of mutually recursive definitions. Release
  • OCaml LSP 1.24.0: Adds OCaml 5.4 support. Note: ocamlformat and bisect_ppx were not yet released for 5.4 at merge time. Release
  • moonpool 0.9: Merged with a breaking change: requires OCaml 5. Removes the preprocessor requirement, makes forkjoin mandatory, and deprecates moonpool.sync and moonpool_io. PR