Thicket thicket
ocaml
REPOS 9

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

October 2026Tools

The js_of_ocaml 6.5.0 release, published 22 October, adds OCaml 5.6 support, compiles large programs roughly a quarter faster, and produces smaller JavaScript and Wasm output. An inliner fix in the same release resolves a memory-exhaustion problem that made some cryptographic libraries impractical to compile for the browser. Merged after the release, the Wasm backend now uses a lighter reference type at the JavaScript boundary and a reworked exception path that cuts runtime by about a quarter at the top optimisation level. (Source)

Opam 2.6.1, available since 7 October, tells git to treat the current directory as safe before running version-control commands, which fixes failures in containers where the repository is owned by a different user. It also restores the behaviour of installing a target package's own system dependencies when using the deps-only flag. An open proposal would extend opam's confirmation prompt to every action by default, not just unnamed packages, so scripts that do not pass the yes flag would start seeing prompts. (Source, Source)

Editor tooling moved on 12 October with ocaml-lsp 1.28.0 and merlin 5.9. Completions now carry snippet edit slots for constructors, destructors, and multi-argument calls, and ocp-indent can act as the on-type formatter. Merlin's destruct command understands let-binding patterns, and a new configuration field lets a project declare its PPX dependencies so the language server can resolve them. (Source, Source)

W44.2026 · 26 Oct – 1 NovTools

Features

  • js_of_ocaml — Wasm-JS boundary now uses externref; floats pass as f64, integers as i32. Method-call overhead drops from ~16 ns to ~5 ns on V8. (#2563, merged)

  • js_of_ocaml — Functions under a handler store the exception in caml_exception and return null; the caller tests with br_on_null. At --opt 2, run time drops 24%. (#2098, merged)

  • dune — PPX rewriters receive a compilation-mode cookie identifying the OCaml or Melange target. Available under (lang dune 3.26). (#16699, merged)

  • dune — Assembly sources (.s, .S, .asm) are recognised in foreign_stubs via (language asm). The C compiler serves as assembler on most platforms; MSVC requires a separate binary. (#16849, open)

  • ocaml-lsp — New ocamllsp/completePrefixAtPos custom LSP request lets an Emacs client complete a prefix at a position without spawning a separate merlin complete-prefix process. (#2230, merged)

Fixes

  • dune — Watch-mode builds no longer hang when the file watcher loses a sync-file notification. Pending syncs retry with fresh marker IDs after a five-second timeout. (#16756, #16850, merged)

  • opam — Interrupting opam repository add with SIGINT no longer leaves the repository in the configuration. The initial fetch is wrapped so any exception triggers cleanup before re-raising. (#7227, open)

  • js_of_ocaml — wasm_of_ocaml no longer invokes wasm-opt at --opt 1; internal passes replace it. Compilation time drops ~60% for the test suite. (#2238, merged)

Compatibility and Releases

  • js_of_ocaml — Without wasm-opt, wasm_of_ocaml uses internal passes and warns at --opt 2/3. A plain dune build now compiles Wasm targets. (#2571, open)

  • odoc — 3.2.2 released 2026-10-26: adds OCaml 5.6 support and removes reliance on ocamllex raising Failure for unescaped braces.

  • odoc — The formatter code path, disabled since 2020, is re-enabled. Safe with the minimum OCaml version at 4.08. (#1508, merged)

  • merlin — New --standalone flag for ocaml-index inlines component-index data into the output file, removing external pointer dependencies. (#2148, open)