Thicket thicket
ocaml
REPOS 9

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

W42.2026 · 12–18 Octocsigen/js_of_ocaml

Features

  • Share identical literals at bytecode parse time, reducing JS size by 51% and Wasm by 68% on Fiat-Crypto. Breaking: identical literals may now be physically equal. (#2547, merged)
  • Three fixes to debug-event parsing (CRC table, array naming, memoized sanitization) cut parsing from 1.24 s to 1.04 s on a small Core/Async program. (#2548, merged)
  • Integer comparisons with 0 used as conditions compile to !x/x instead of 0 === x/0 !== x. Minified size −2398 B on js_of_ocaml.bc. (#2538, merged)
  • Redundant break l at the end of an if-then inside a labelled block is removed; following statements sink into the else-branch. 144 of 522 labelled blocks removed on js_of_ocaml.bc. (#2513, merged)

Fixes

  • caml_wrap_exception is no longer imported under WASI, where it is never called. Fixes a linking failure that appeared once wasm-opt was skipped at --opt 1. (#2543, merged)
  • The JS and Wasm runtimes rewrite CONIN$/CONOUT$/CON to \\.\NAME before passing to fs.openSync on Windows. Fixes ENOENT when opening the console from compiled programs. (#2525, merged)

Compatibility and Releases

  • 6.5.0 release preparation merged: changelog cleaned up, VERSION bumped, improvement numbers referenced from #2468. (#2518, merged)
  • Replaces wasm-merge and wasm-metadce with an in-tree linker. Compile time −10% (--opt 1) to −50% (small programs) on Wasm output. (#2506, open)