Features
-
js_of_ocaml variable coalescing (PR #2166): Open proposal to merge variables with disjoint lifespans in generated JavaScript. Reduces V8 stack slots by 74–91% and gzip size by 10–16% on benchmarks. Affects output size and runtime stack pressure for large programs.
-
js_of_ocaml
--build-config/--apply-build-config(PR #2177): Open proposal adding two compiler flags.--build-configprints build-relevant settings as key=value pairs;--apply-build-configoverrides them, taking precedence over other flags. Enables coherent compilation when linking units that must share settings. -
js_of_ocaml Wasm dynlink/toplevel (PR #2187): Open proposal to support dynlink and toplevel execution in the Wasm backend. References existing
compiler/tests-toplevelandtoplevel/examples/lwt_toplevelas test targets. -
js_of_ocaml Wasm native effects (PR #2189): Open proposal to emit native Wasm effects, extending the Wasm backend's capability set.
Fixes
-
js_of_ocaml Wasm string/arraybuffer (PR #2124): Merged 2026-02-17. Optimises string conversion and copy operations to and from
ArrayBufferin the Wasm backend. -
js_of_ocaml Wasm safepoint table (PR #2165): Open workaround for V8 safepoint-table bloat caused by large
array.new_fixedcalls. Introduces a 100-element threshold above which explicit stores replace inline initialisation, reducing safepoint size from 8.5 MB to 435 KB on the PRT benchmark. A Chrome 147 canary commit may make the workaround unnecessary. -
js_of_ocaml stack overflow with menhir parsers (issue #2122): Open bug, updated 2026-02-19. Menhir-generated AArch64 parsers trigger stack overflow in Firefox on macOS with js_of_ocaml 5.5.0; other browsers and platforms work. A fix in PR #2166 did not resolve the Firefox/macOS case.