Thicket thicket
ocaml
REPOS 9

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

W24.2026 · 8–14 Junocsigen/js_of_ocaml

Features

  • wasm_of_ocaml --enable wasi now produces a WASI binary runnable by wasmtime or wizeng. Merged in #1831 (by vouillon). Output convention unchanged: a .js file plus an .assets/ directory.

  • Documentation migrated from wiki to odoc + wodoc under a single dune build @doc target. Merged in #2261 (by balat). The wiki pipeline, Python tooling, and highlight.js are removed; wodoc build generates the themed site published to gh-pages.

Compatibility and Releases

  • Release 6.4 is tracked in #2241 (ongoing), targeting OCaml 5.5 compatibility. A comment notes OCaml 5.5.0 is expected within a week of the 2026-06-12 update.

Fixes

  • Int64.shift_right returned wrong values for negative operands with shift counts 41–47 (e.g. Int64.shift_right (-1L) 44 gave 0xffffffffff0fffff instead of -1L). Merged in #2278.

  • Str engine: SIMPLEOPT/SIMPLESTAR/SIMPLEPLUS opcodes now bound-check against string length, fixing an infinite loop on patterns like [^;]*; against a string without a semicolon. Merged in #2277. Instruction arguments are no longer masked to 8 bits, fixing silent mismatches for regexps with >256 constant-pool entries. Merged in #2298.

  • Ephemeron data WeakMaps are now keyed on the dereferenced key object rather than the WeakRef wrapper, restoring the liveness model: data is collected once all keys are dead. Merged in #2274.

  • The share_constant pass now correctly matches require (not requires), preventing node-target programs from emitting require(str_node_fs) where a bundler expects a literal. Merged in #2284.

  • Marshal BLOCK32 reader uses an unsigned shift (>>> 10), fixing round-trip of blocks with ≥ 2²¹ fields that previously desynchronised the stream. Merged in #2275.