Thicket thicket
ocaml
REPOS 9

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W41.2026 · 5–11 Oct

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

  • js_of_ocaml and wasm_of_ocaml whole-program mode now pass -bytecode-hints when linking the bytecode executable, starting with OCaml 5.6. Merged in #16560.
  • Proposed (job_slots ...) rule lets a build compute and expose a slot count via an environment variable for polyglot sub-builds (e.g. Cargo). Requires a dune version bump. Open in #16475.

Compatibility and Releases

  • The installed-package version-gate regression (introduced by #16362) is backported to the 3.25.0-rc branch with its regression test. Merged in #16558.
  • The development ppxlib cap below 0.39 is lifted; Nix flake locks are refreshed and ppxlib 0.39 describe snapshots are promoted. Merged in #16566.

Fixes

  • 3.25.0-rc introduced a ~5× zero-build slowdown and ~9× peak-RSS increase on large Rocq workspaces (7 s → 34 s, 722 MiB → 6.7 GiB). A memoization patch reduces this to 11.5 s / 1.5 GiB; a follow-up alias-based cache brings it to 7.6 s. Open in #16543.
  • Merlin now selects the correct reader for preprocessed filenames without an extension, fixing wrong implementation/interface lookup in editors. Merged in #16536.
  • A SIGKILL after an action writes targets but before _build/.db is saved leaves stale targets that the next build trusts and stores in the shared cache, corrupting downstream builds across workspaces. Open in #16559.
  • Stdlib paths under _build are now localized only when they fall within a registered context, restoring the oxcaml trunk build broken by the sandboxed-stdlib change in #16374. Open in #16563.

ocaml/merlin

Permalink

Fixes

  • #2138 (open, updated 2026-10-05): Corrects diagnostic deduplication in query_commands.ml. Previously, two distinct diagnostics sharing the same start/end position were collapsed into one by a position-only comparison; the fix orders by severity then raw text before discarding duplicates. Affects editor error/warning display in Merlin 4.14.

ocaml/ocaml-lsp

Permalink

Fixes

  • #2229 (opened, not merged): Corrects the getDocumentation server capability name in spec docs from handleDocumentation to handleGetDocumentation, matching what the server actually advertises. Also fixes typos in locate-spec.md, locate-types-spec.md, merlinJump-spec.md, phrase-spec.md, inferIntf-spec.md, and jumpToTypedHole-spec.md. Documentation only; no code changes.

Open Issues

  • #2143 (open, updated 2026-10-05): On OCaml 4.14, when multiple diagnostics share the same range, the LSP server reports only the first (a warning-as-error) and suppresses the subsequent real type error. A comment references a fix at #2138; the comment carries no timestamp, so its posting date is unconfirmed.

ocaml/odoc

Permalink

Features

  • Merged: OCaml 5.6 compatibility. Odoc now builds against OCaml 5.6 trunk. (#1472, closes #1470)
  • Open: OxCaml parameterized library support. Adds rendering and cross-references for Lib[Param:Impl] syntax. (#1464, by art-w)
  • Open: OxCaml kind abbreviation rendering and linking. Introduces a new namespace for kind abbreviations. (#1467, by art-w)
  • Open: Display [@atomic] annotation on mutable fields in generated docs. Requires OCaml 5.4+ or OxCaml. (#1496, by ElectreAAS)
  • Open: Tracking issue for new markup extensions (quotes, strikethrough, definition lists, details/spoiler, footnotes). Each extension is a separate ticket; no implementation merged yet. (#1497, #1498, #1499, #1500, #1501)

Fixes

  • Merged: Corrected inconsistent handling of type equalities in signatures containing include. Enables dropping include sig ... end bodies, a significant speedup on ppx_template-heavy code. (#1481, by jonludlam)
  • Merged: Suppressed non-actionable informational messages from crunch during builds to reduce noise. (#1493, by Leonidas-from-XIV)

ocaml/opam

Permalink

Features

  • opam now sets safe.directory=. when invoking git, allowing repositories owned by a different local user (e.g. in Docker containers). Fixes git ls-files failures under CI. #6980, backported to 2.6 in #7182.
  • Explicit Haiku platform support added: vmin handling corrected for Haiku's vmin=4, and platform-specific code paths adjusted. #7138 (merged 2026-10-08).

Compatibility and Releases

  • opam 2.6.1 released 2026-10-07. Includes the git safe.directory fix, the GIT_CONFIG_* Windows fix, and the lockfile update. See release notes.
  • FAQ now documents that since 2.6.0, global/system git config is ignored, and that GIT_CONFIG_COUNT, GIT_CONFIG_KEY_<n>, GIT_CONFIG_VALUE_<n> environment variables remain available for URL rewriting and similar use cases. #7187.

Fixes

  • FreeBSD/i386 build failure (ptrdiff_t typedef conflict in vendored checkseum) resolved by updating the lockfile to checkseum 0.5.4 and decompress 1.6.1. #7172, backported in #7181.
  • GIT_CONFIG_GLOBAL/GIT_CONFIG_SYSTEM now use /dev/null on Windows as well as Unix, working around a bug in Git-for-Windows 2.56.0.windows.1 that rejects NUL. #7085, backported in #7191.
  • opam install --depext-only now installs depexts only for newly added packages rather than all packages in the solution, preventing spurious system-package installs for packages being removed or updated. #7166.
  • Removed redundant set operations in OpamSwitchState.universe that caused opam to consider a larger package set than necessary, eliminating unwanted recompilation of already-installed packages. #7154.

ocsigen/js_of_ocaml

Permalink

Fixes

  • #2495 (merged 2026-10-07): inline_recursively no longer duplicates a closure at every nested-functor level. The fiat-crypto benchmark, which previously exhausted memory, compiles again in ~42 s / 1.4 GB.

  • #2492 (merged 2026-10-05): Str.string_partial_match no longer allows a group's start to exceed its end (OSEC-2026-21). The JS runtime also stops the matcher on a partial match instead of looping until heap exhaustion.

  • #2504 (merged 2026-10-09): The Wasm linker fixes instruction decoding (legacy exceptions, SIMD immediates, memory.atomic.fence, stack switching), segment/table retargeting, continuation-type equality, and export ordering.

  • #2499 (merged 2026-10-08): Array.make, Float.Array.create, Array.append/concat, Obj.new_block, Weak.create, and unmarshaling now enforce Max_wosize and raise the same exceptions as OCaml, instead of trapping or silently succeeding on oversized allocations.

Features

  • #2493 (merged 2026-10-05): The JS and Wasm runtimes implement Sys.filepath_exists (OCaml 5.6), returning false only on ENOENT/ENOTDIR and raising Sys_error otherwise.

  • #2423 (open): A new Split_toplevel pass outlines the Wasm toplevel function at liveness boundaries, controlled by the split-toplevel flag and toplevel_split_size parameter, to keep JIT compilers from stalling on a single huge function.

Compatibility

  • #2494 (merged 2026-10-09): With OCaml 5.6, EQ/NEQ carrying Hint_int_equality_test compile to a plain ref.eq in Wasm without boxing, removing unnecessary caml_js_strict_equals calls.

  • #2502 (merged 2026-10-09): The JS backend no longer emits ES2021 logical-assignment operators (&&=, ||=, ??=) and preserves blocks around a single block-scoped declaration, restoring compatibility with older engines.

3 repositories · no changes