Fixes
-
Fixed Wasm
--opt 2compilation of hinted ocamlc that consumed >8 GB due to unbounded functor-like inlining of open recursion through records. Merged. #2599 -
Fixed Wasm
RuntimeError: illegal castfor 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//Aliasname. Merged. #2604 -
Fixed
Int32.of_string/Nativeint.of_stringerror messages,%hformatting (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 docnow 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.sexpwas 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-sentinelrestores 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