Thicket thicket
ocaml
REPOS 9

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

W08.2026 · 16–22 Feb

Tools repository summaries

6 active · 3 unchanged

Back to weekly digest

ocaml/dune

Permalink

Features

Dune OxCaml: merged support for js_of_ocaml with parameterised libraries, enabling separate compilation for OxCaml projects. Closes #12564 via #13414.

Dune pkg: open proposal to detect relocatable OCaml compilers (5.5 or the relocatable-compiler meta-package) and build them as regular packages, eliminating toolchain rebuilds. See #13321 and tracking issue #13229.

Dune pkg: three open issues split from #11868 to unify portable lock directory solving into a single SAT pass, default the platform set to the current OS, and enforce cross-platform version consistency (#13645, #13646, #13647).

Compatibility and Releases

Dune 3.21.1: release branch merged to main on 2026-02-19 via #13627. A NetBSD build fix was found to be missing from the vendored LMDB; the changelog is being amended (#13076).

Fixes

Dune C stubs: build rules now declare dependencies on *.h files in the OCaml runtime directory, so switching compilers under the same prefix triggers C stub recompilation. Merged in #13652, fixing #13651.

Dune Rocq: multiple rocq.extraction stanzas in one directory no longer produce a "multiple rules" error. Merged in #13531, fixing #8042.

Dune pkg: the := and =: operators in withenv now add trailing/leading separators when the variable is unset, matching opam's documented semantics. Merged in #13634, fixing #10440.

Dune jsoo: library archive rules are generated on demand per requested configuration instead of upfront for all variants, reducing rule volume and enabling more incremental builds. Merged in #13611.

ocaml/merlin

Permalink

Features

  • Merlin enclosing command: open RFC (#2029) proposes a -stop flag so enclosing returns only nodes spanning a range rather than a single point. Intended to fix locate-types and annotate-type LSP actions that currently select the wrong sub-expression.

  • Merlin code actions: open issue (#2037) requests that the "Destruct-line (enumerate-cases, use existing match)" action be available on the match token itself, not only on individual pattern lines. Currently, jumping to a diagnostic on match does not surface the fix.

Fixes

  • Merlin signature help: merged (#2032, 2026-02-18) corrects signature-help output when labelled or optional parameters are present in the function being called.

  • Merlin signature help (let..in): open PR (#2036) addresses incorrect signature-help results for let..in bindings. CI shows a regression in the issue_fun_name test; the PR is not yet merged.

ocaml/ocaml-lsp

Permalink

Features

  • ocaml-lsp (PR #1584): proposes a custom LSP request exposing Merlin's locate-types data, including a compact field-set of all reachable types. Still open; not yet merged.

Fixes

  • ocaml-lsp (issue #1588): the "Construct an expression" code action sends the VSCode-specific command editor.action.triggerSuggest, which Helix and other editors reject. Discussion suggests restricting the action to clients that declare support. Open.
  • ocaml-lsp (issue #1587): hover does not trigger for some_class or super in class inheritance syntax (e.g. inherit [some_ty] some_class as super). Open.

ocaml/odoc

Permalink

Features

  • odoc PR #1399: Open proposal (updated 2026-02-19) to upstream OxCaml support, building on #1398 for ocaml-config:ox detection. Replaces the prior OCAML_VERSION heuristic with exact identification available since dune 3.21. PR link.

ocaml/opam

Permalink

Fixes

  • opam (PR #6489, merged): Depexts availability is now computed during opam update (repository cache reload) instead of on demand. Resolves the opam show slowdown from 2.0.7 to 2.1.0-alpha and aligns depexts support across platforms.

  • opam (PR #6860, merged): Adds a regression test confirming opam switch link does not corrupt an existing local _opam switch.

Features

  • opam (PR #6859, open): Proposes the opam init shell hook update the switch bin directory in place within PATH rather than prepending it, preserving the user's original directory ordering. Does not affect eval $(opam env).

Compatibility and Releases

  • opam (issue #6857, open): Reports opam switch link silently breaking an existing _opam switch. A comment notes the latest opam version handles this correctly; the issue remains open pending confirmation.

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml variable coalescing (PR #2166): Open proposal to merge variables with disjoint lifespans in generated JavaScript. Reduces V8 stack slots by 74–91% and gzip size by 10–16% on benchmarks. Affects output size and runtime stack pressure for large programs.

  • js_of_ocaml --build-config / --apply-build-config (PR #2177): Open proposal adding two compiler flags. --build-config prints build-relevant settings as key=value pairs; --apply-build-config overrides them, taking precedence over other flags. Enables coherent compilation when linking units that must share settings.

  • js_of_ocaml Wasm dynlink/toplevel (PR #2187): Open proposal to support dynlink and toplevel execution in the Wasm backend. References existing compiler/tests-toplevel and toplevel/examples/lwt_toplevel as test targets.

  • js_of_ocaml Wasm native effects (PR #2189): Open proposal to emit native Wasm effects, extending the Wasm backend's capability set.

Fixes

  • js_of_ocaml Wasm string/arraybuffer (PR #2124): Merged 2026-02-17. Optimises string conversion and copy operations to and from ArrayBuffer in the Wasm backend.

  • js_of_ocaml Wasm safepoint table (PR #2165): Open workaround for V8 safepoint-table bloat caused by large array.new_fixed calls. Introduces a 100-element threshold above which explicit stores replace inline initialisation, reducing safepoint size from 8.5 MB to 435 KB on the PRT benchmark. A Chrome 147 canary commit may make the workaround unnecessary.

  • js_of_ocaml stack overflow with menhir parsers (issue #2122): Open bug, updated 2026-02-19. Menhir-generated AArch64 parsers trigger stack overflow in Firefox on macOS with js_of_ocaml 5.5.0; other browsers and platforms work. A fix in PR #2166 did not resolve the Firefox/macOS case.

3 repositories · no changes