Features
-
wasm_of_ocaml --enable wasinow produces a WASI binary runnable by wasmtime or wizeng. Merged in #1831 (by vouillon). Output convention unchanged: a.jsfile plus an.assets/directory. -
Documentation migrated from wiki to odoc + wodoc under a single
dune build @doctarget. Merged in #2261 (by balat). The wiki pipeline, Python tooling, and highlight.js are removed;wodoc buildgenerates 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_rightreturned wrong values for negative operands with shift counts 41–47 (e.g.Int64.shift_right (-1L) 44gave0xffffffffff0fffffinstead 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_constantpass now correctly matchesrequire(notrequires), preventing node-target programs from emittingrequire(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.