Thicket thicket
ocaml
REPOS 1

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

W45.2026 · 2–8 Novocsigen/js_of_ocaml

Fixes

  • Fixed Wasm --opt 2 compilation of hinted ocamlc that consumed >8 GB due to unbounded functor-like inlining of open recursion through records. Merged. #2599

  • Fixed Wasm RuntimeError: illegal cast for programs using objects; array element types are now derived from the array type rather than global flow analysis, which missed constant blocks. Merged. #2596

  • Fixed separate compilation runtime failure (runtime.alias is not a function) when a unit calls a primitive defined in a non-builtin runtime file by its //Alias name. Merged. #2604

  • Fixed Int32.of_string/Nativeint.of_string error messages, %h formatting (precision 0, ties-to-even rounding, sign for infinities/NaNs), and Marshal header size to match the C runtime. Merged. #2602

Features

  • Performance page regenerated with Wasm_of_ocaml data; added compressed-size and compile-time charts. make doc now copies manual images next to odoc pages for direct viewing. Merged. #2565

  • Wasm compilation units now export their shapes (arity, purity) for separate compilation; shapes.sexp was previously always empty for Wasm. Merged. #2587

  • Proposal to signal exceptions via a sentinel return value in the JS backend instead of throw; ocamlc benchmark 16.5 s → 8.9 s, boyer 6.0 s → 0.61 s. Enabled by default with --effects=disabled; --disable exn-sentinel restores previous output. Open. #2582

  • Avoids holey arrays in V8 by using 0 for dead fields and packed allocation in the runtime; ocamlc 2–4 % faster, peak memory 4 % lower, fannkuch_redux −17 %. Opened. #2609