Thicket thicket
ocaml
REPOS 9

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

W38.2025 · 15–21 Sepocsigen/js_of_ocaml

Features

js_of_ocaml WASI runtime (PR #1831, open): wasm_of_ocaml --enable wasi produces a WASI binary runnable via wizeng or wasmtime -W=all-proposals=y. Adding --enable exnref targets wasmtime compatibility. Link

js_of_ocaml Stack Switching effects (PR #1832, open): Generates Wasm using the Stack Switching proposal for OCaml effects. Requires Binaryen dev build (or v124) and wasm_of_ocaml --enable wasi. Link

js_of_ocaml exception optimisation (PR #2098, open): Ongoing work to optimise exception handling in the Wasm backend. No public API change described yet. Link

Compatibility and Releases

js_of_ocaml Wasm number unboxing (PR #2101, merged 2025-09-16): Unboxes numeric values across function calls in the Wasm backend, reducing reference overhead. Link

js_of_ocaml Wasm comparison and bigarray specialisation (PR #1954, merged 2025-09-17): Specialises number comparisons and bigarray operations in generated Wasm code. Link

js_of_ocaml OCaml 5.4 support (PR #2103, open): Adds CI testing against OCaml 5.4. Wasm testing remains blocked by janestreet package incompatibility with ppxlib >= 0.36. Link

js_of_ocaml Wasm test tracking (issue #2061, open): Tracks upstream PRs required to unblock Wasm testing; janestreet ppx_css, basement, typerep, core_kernel, and bigstringaf changes are pending. Link

js_of_ocaml function optimisations (PR #2054, closed 2025-09-15): Meta-PR split into individual sub-PRs (unboxing, parameter passing, return-value unboxing). Individual PRs remain open. Link