Thicket thicket
ocaml
REPOS 1

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

W41.2026 · 5–11 Octocsigen/js_of_ocaml

Fixes

  • #2495 (merged 2026-10-07): inline_recursively no longer duplicates a closure at every nested-functor level. The fiat-crypto benchmark, which previously exhausted memory, compiles again in ~42 s / 1.4 GB.

  • #2492 (merged 2026-10-05): Str.string_partial_match no longer allows a group's start to exceed its end (OSEC-2026-21). The JS runtime also stops the matcher on a partial match instead of looping until heap exhaustion.

  • #2504 (merged 2026-10-09): The Wasm linker fixes instruction decoding (legacy exceptions, SIMD immediates, memory.atomic.fence, stack switching), segment/table retargeting, continuation-type equality, and export ordering.

  • #2499 (merged 2026-10-08): Array.make, Float.Array.create, Array.append/concat, Obj.new_block, Weak.create, and unmarshaling now enforce Max_wosize and raise the same exceptions as OCaml, instead of trapping or silently succeeding on oversized allocations.

Features

  • #2493 (merged 2026-10-05): The JS and Wasm runtimes implement Sys.filepath_exists (OCaml 5.6), returning false only on ENOENT/ENOTDIR and raising Sys_error otherwise.

  • #2423 (open): A new Split_toplevel pass outlines the Wasm toplevel function at liveness boundaries, controlled by the split-toplevel flag and toplevel_split_size parameter, to keep JIT compilers from stalling on a single huge function.

Compatibility

  • #2494 (merged 2026-10-09): With OCaml 5.6, EQ/NEQ carrying Hint_int_equality_test compile to a plain ref.eq in Wasm without boxing, removing unnecessary caml_js_strict_equals calls.

  • #2502 (merged 2026-10-09): The JS backend no longer emits ES2021 logical-assignment operators (&&=, ||=, ??=) and preserves blocks around a single block-scoped declaration, restoring compatibility with older engines.