Thicket thicket
ocaml
REPOS 9

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

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)