Thicket thicket
ocaml
REPOS 27
W48.2025 · 24–30 Nov

All repository summaries

13 active · 14 unchanged

Back to weekly digest

ocaml/RFCs

Permalink

Features

  • OCaml RFC #59: proposes val declarations as structure items, placing type annotations directly before let or let rec definitions. Opened by gasche; active discussion covers forward-declaration semantics and interaction with and bindings. (#59)

  • OCaml RFC #57: maintainers reached consensus that numeric tuple projections require tuple polymorphism; labelled projections with known types are acceptable without it. The RFC remains open pending redesign. (#57)

  • OCaml RFC #37: updated with a proposal to generalize the Array.Floatarray module signature to accept any private float type parameter, broadening its applicability. (#37)

  • OCaml RFC #39: updated to note a companion PR for atomic arrays is under review, exposing bound-checked and unsafe access operations in a new Atomic.Array submodule. (#39)

Compatibility and Releases

  • OCaml RFC #55: merged a transparency-based conflict-of-interest policy for the OCaml Language Committee, adding an affiliation field to member listings. (#55)

ocaml/dune

Permalink

Features

Dune Rocq build language: New (lang rocq) build mode for the Rocq Prover, merged 2025-11-25. (lang coq) is deprecated and targeted for removal in Dune 3.24. #12035, #12793

Dune promotion show: New dune promotion show subcommand prints corrected file contents for failed diff rules without modifying sources. Merged 2025-11-26. #12669

Dune runtest for tests: Open PR extends dune runtest to accept sources from (tests) stanzas, addressing long-standing request #870. #12785

Fixes

Dune version parsing: Fixes an internal crash when dune-project contains a non-ASCII version string such as (lang dune è). Now emits a proper error with a hint showing the latest supported version. Merged 2025-11-28. #12794

Dune substitute action: Open PR stops the substitute action from observing the full environment, preventing spurious rebuilds of packages like ocaml-config after unrelated variable changes. #12825

Compatibility and Releases

Dune 3.21 warning set: Breaking change: with (lang dune 3.21), Dune no longer overrides the compiler warning set. Add %{dune-warnings} to (flags) to restore the previous defaults. Merged 2025-11-26. #12766

Dune promoted files: Reverts the change making promoted files read-only by default, which broke packaging and deployment workflows. The behaviour will return behind a feature gate after the 3.21 release. Merged 2025-11-28. #12808

Dune dev-tool lock dirs: Dev-tool lock directories move from dev-tools.locks/ to _build/.dev-tools.locks/, keeping them out of the worktree by default. Merged 2025-11-25. #12671

ocaml/merlin

Permalink

Features

  • Merlin signature help (PR #1997): Proposes restricting signature-help responses to function parameters only, suppressing them on the function name. Open, under review.
  • Merlin signature help (PR #2009): Proposes triggering signature-help on unfinished let ... in bindings. Open, no review yet.

Fixes

  • Merlin C server (PR #1998): Fixes sockaddr_un size computation for BSD systems via offsetof and corrects Windows error reporting to use GetLastError/FormatMessage. Open, in progress.
  • Merlin 4.7-413 build (issue #1993): opam install merlin fails on Ubuntu 25.04 with OCaml 4.13.1 due to a missing seq library. Open, unresolved.

ocaml/ocaml

Permalink

Features

OCaml stdlib: String.{drop,take,cut}_{first,last}_while merged, adding predicate-based string splitting to the standard library. #14362

OCaml parser: PR proposes allowing arbitrary structure items (except let bindings and include) inside let expressions, extending the language grammar. #14040

OCaml language: Modular explicits (fun (M : S) -> …) enable dependent functions over module parameters, a long-requested alternative to functors. #13275

OCaml stdlib: Atomic.Array module proposed, providing atomic get/set/exchange/compare-and-set on array elements for low-level concurrent code. #14380

OCaml stdlib: Lazy.Concurrent_blocking proposed as a mutex-protected lazy thunk for safe concurrent initialization without blocking on user-level schedulers. #14393

Fixes

OCaml Dynlink: Dynlink.loadfile now calls dlclose when a .cmxs fails to load before initialisation code runs, allowing a corrected file to be reloaded in the same process. #14391

OCaml runtime: Memory corruption reported in Queue/ref-table overflow on x86_64 (5.3.0 and 5.4.0), producing spurious values and segfaults; reproduced on Linux and Windows. #14396

Compatibility and Releases

OCaml runtime: Relocatable OCaml ld.conf handling merged: lines with ./ or ../ are resolved relative to the file, and ld.conf is now loaded from all candidate locations rather than only OCAMLLIB. #14243

ocaml/ocaml-lsp

Permalink

Features

ocaml-lsp: Merged #1563 makes the server fall back to .merlin files when no dune-project is found, eliminating the need for --fallback-read-dot-merlin. Closes issue #1522.

ocaml-lsp 4.14 branch: Open #1574 backports hover fixes, .mlx file support, configurable code-lens, and a merlin-lib 4.18 compatibility fix to the 4.14 LTS branch.

Compatibility and Releases

ocaml-lsp: Merged #1573 adds dune pkg installation instructions to the README, noting the command requires dune ≥ 3.21.0.

ocaml-lsp: Merged PRs #1400, #1404, and #1480 remove remaining stdune dependencies from the code generator, I/O layer, and list utilities.

ocaml/ocaml.org

Permalink

Fixes

  • ocaml.org tutorials: fixes three typos in tutorials/language, merged by @CSharperMantle. #3399

ocaml/odoc

Permalink

Fixes

  • odoc: removes obsolete symlinks that prevent building with dune pkg, as Dune package management does not support symlinks. Merged by Sudha247. #1392

ocaml/opam

Permalink

Releases

opam 2.5.0: Released 2025-11-27 with no significant changes from 2.5.0~beta1. Release notes

Fixes

opam performance (PR #6515, merged): Merged 2025-11-28. Reduces GC pressure in version comparison and cache unmarshalling; opam show drops from ~900 ms to ~380 ms on OCaml 5.4. PR

opam init (PR #5979, merged): Merged 2025-11-25. Displays an appropriate error when --config points to a missing file or VCS URL instead of triggering an assertion failure. PR

Features

opam env (PR #6812, open): Sets XDG_DATA_DIRS and FPATH in opam env output to enable bash and zsh completion from the active switch. PR

opam show (PR #6818, open): Reduces I/O by reading switch selections once instead of once per displayed package version. PR

Compatibility

opam 2.5.0 build (issue #6822, closed): Fails with Dune 3.20.0 due to an s-expression parsing regression; closed as a Dune-side issue. Issue

opam env_hook (issue #6815, open): The PROMPT_COMMAND hook re-prepends the switch bin to PATH before every prompt, overriding user-set prefixes. Issue

opam sandboxing on KDE Neon (issue #6820, open): bwrap fails with RTM_NEWADDR: Operation not permitted under KDE Neon's stricter AppArmor policies. Issue

ocaml/opam-repository

Permalink

Features

  • opam 2.5.0: Merged into the repository as eight library packages (opam-client, opam-core, opam-solver, etc.). A draft PR updates the repo announcement pending the Discuss post. #28978, #28961

  • cmdliner 2.1.0: Adds PowerShell completion, a --standalone-completion option for generating self-contained scripts, and improved bash/zsh completion. Merged 2025-11-26. #28962

  • Raven 1.0.0~alpha2: Merged 2025-11-26 as an 11-package ML ecosystem release covering Nx, Rune, Kaun, Talon, Saga, Fehu, and Sowilo with major performance and API changes. #28827

  • New packages: arc.0.0.1 and dmarc.0.0.1 merged 2025-11-29; checked_oint.1.0.1, xdge.1.0.0, quickjs.0.2.0, and otp.0.2.2 are open PRs awaiting merge. #28996, #28995, #29003, #28998, #29000, #29004

Fixes

  • OCaml 5.4.0 compatibility: Upper bounds added to why3 1.6.0–1.8.0, boltzgen.0.9.5, bogue.20250224, and runtime_event_tools* due to AST changes (Longident.t, labelled tuples, Array.compare). All merged 2025-11-27. #28973, #28971, #28974, #28972

  • conf-libclang.21 and .19: conf-libclang.21 uses a generic configure script accepting a maximum-version argument; conf-libclang.19 adds per-distribution depexts. Both merged to unblock frama-clang and other LLVM-dependent packages. #28950, #28968

  • MSys2 conf-package side-conditions: Corrected os/os-distribution guards for eight conf-* packages (conf-libffi, conf-libssl, conf-ncurses, etc.) that were subtly wrong since opam 2.2. Merged 2025-11-26. #28944

Compatibility and Releases

  • Periodic archival run: Maintainers agreed to snapshot the repository in early December, run the maintenance-intent tool, and announce orphaned packages with a test branch; users have until January 1 to opt out. The minimum supported OCaml version (currently 4.08) is under discussion for a bump to 4.14. #28489

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml (PR #2132): Open PR by hhugo adds runtime improvements in preparation for Deno runtime support. Not yet merged.
  • js_of_ocaml (issue #2131): Open feature request to replace the binaryen-bin opam dependency with conf-binaryen, allowing use of distribution-provided binaryen tools. Affects wasm_of_ocaml installation.

oxcaml/merlin

Permalink

Features

  • Merlin (PR #200, open): Adds type hover for jkind abbreviations, displaying the expanded form. Opened by liam923; not yet merged. Link

Compatibility and Releases

  • Merlin (PR #201, merged): Merges oxcaml 5.2.0minus-24. New -I-manifest and -H-manifest parameters are not yet handled. Link

Fixes

  • Merlin (PR #201, merged): Adjusts documentation file lookup priority so .cmti docs are not shadowed by newly generated .cms files in stdlib. Link

oxcaml/opam-repository

Permalink

Features

  • oxcaml/opam-repository: Open PRs add Dune package management compatibility patches for ocamlbuild and odoc-parser, working around the absence of symlink support in Dune package management (#12736). #21, #22

Fixes

  • oxcaml/opam-repository: Merged fix for eio.1.3+ox on latest oxcaml; explicit currying in eio_mock resolves a surplus-argument error from oxcaml's application checking. #24
  • oxcaml/opam-repository: Open PR updates ocamlbuild, async_ssl, alcotest, sedlex, topkg, and uutf to resolve constraint errors blocking upstream package compilation. #23

oxcaml/oxcaml

Permalink

Features

OxCaml x86 peephole pass: A new post-emission peephole optimization pass for the x86 backend is now in place, with merged rules for MOV-chain elimination, dead-register move deletion, MOV+ADD→LEA rewriting, MOV-sequence→XCHG, and redundant CMP removal. The umbrella PR #5063 collecting further rules remains open.

OxCaml register allocation affinity: PR #5059 (open) adds a simple affinity mechanism to all three register allocators, guided by CFG move-frequency counts. Enabled via -regalloc-param AFFINITY:on; benchmarks show up to −12% move instructions with the greedy allocator.

OxCaml third-party signal handlers: PR #5044 (open) extends Sys.signal_behavior with a Signal_external constructor so that handlers installed by foreign runtimes (e.g. Python in PyOCaml) are preserved and re-installable. Also fixes a space leak in the handler table and a race between install and dispatch.

OxCaml GADT with-bounds: PR #5046 (open) re-enables with-bounds normalization for GADTs, previously disabled in #4242. Correctness is targeted; performance work in #5047 (merged) reduces repeated fuel exhaustion on large jkinds.

OxCaml separability as scannable axis: PR #5031 (open) promotes separability from a non-modal to a scannable axis and renames the base sort Value to Scannable internally. This unifies layout annotations and improves error messages for layout mismatches.

Fixes

OxCaml loose staticity checking: PR #5054 (merged) forces common expressions (if, try/with, pattern-match branches) to dynamic in the mode system, preventing miscompilation when slambda v1 encounters unsupported static forms.

OxCaml env fold laziness: PR #5066 (merged) changes Env.fold_modules and Env.fold_modtypes to pass a Subst.Lazy instead of forcing substitutions, reducing unnecessary work for Merlin.

Compatibility and Releases

OxCaml manifest files: PR #4986 (merged) adds -I-manifest and -H-manifest flags, letting the compiler resolve source files from a build-system manifest rather than directory search paths. Paths are relative to $DUNE_MANIFEST_LOAD_PATH_ROOT.

14 repositories · no changes