Repository activity
40458 results across all weeks
Dead code elimination drops stores that keep values alive for Weak
Hello,
Vincent Balat (@balat)Ensure empty float arrays use tag 0 rather than 254
The following paths in wasm emit an empty float array with tag 254 rather than 0, leading to behaviour mismatches with native code:
Leo Lee (@smjleo)Fix float formatting to match native
Jérôme Vouillon (@vouillon)Flow and phi simplification: improvements and small fixes
@hhugo: Small pr description please
Jérôme Vouillon (@vouillon)Global data flow analysis: cleanup
Jérôme Vouillon (@vouillon)Global deadcode elimination: performance improvements
Jérôme Vouillon (@vouillon)Improve variable naming (Js_assign)
@hhugo: Can you explain how you choose this function ?
Jérôme Vouillon (@vouillon)Manual: update the performance charts, add Wasm_of_ocaml
Updates the charts of the performance page, last generated in November 2022, and adds Wasm_of_ocaml.
hhugoMore Wasm-level optimizations
Jérôme Vouillon (@vouillon)Runtime/Wasm: add the system constants needed with --disable staticeval
The primitives caml_sys_const_backend_type, caml_sys_const_big_endian and caml_sys_const_naked_pointers_checked are usually evaluated statically (see Eval), so the Wasm runtime did not implement them (big_endian was exported under the misspelled name caml_sys_const_bigendian). Compiled with --disable staticeval, every program then failed at startup, when ini…
Jérôme Vouillon (@vouillon)Runtime: faster multi-byte reads and writes on bytes
caml_bytes_get{16,32,64}u read the Uint8Array directly when the bytes are in the array representation, instead of going through caml_bytes_unsafe_get for each byte (and allocating an 8-element array for 64-bit reads).
Jérôme Vouillon (@vouillon)Runtime: fix a few primitives to match the C runtime
Int32.of_string and Nativeint.of_string were aliases of int_of_string, and failed with its message ("int_of_string") instead of "Int32.of_string" and "Nativeint.of_string".
Jérôme Vouillon (@vouillon)Runtime: hash strings in a single pass
caml_hash checked whether a JavaScript string was an OCaml string with caml_is_ml_string, which scans it with a regular expression, before hashing it; caml_hash_mix_jsstring then scanned it a second time to check that its code units fit in a byte. This showed up at about 7% of a Hashtbl-with-string-keys profile in the default (use-js-string) mode.
hhugoSwitch to dune 3.23
It uses js_of_ocaml --build-config to manage config details.
Jérôme Vouillon (@vouillon)Tests: update the md5 expectations after the chart refresh
Master CI fails in every test job (js_of_ocaml, wasm_of_ocaml, quickjs, bun) on compiler/tests-io/md5.expected / md5_nat.expected.
hhugoUnboxing of function and block parameters
Jérôme Vouillon (@vouillon)Wasm inlining improvements
Jérôme Vouillon (@vouillon)Wasm: collect the shapes of compilation units
collects_shapes only recognized the JavaScript form of the global registration of a compilation unit (caml_register_global with a native string), not the Wasm one (a string constant). So Wasm compilation units never exported their shapes (shapes.sexp was empty), and separate compilation could not use the arity and purity of the functions of other units.
Jérôme Vouillon (@vouillon)[wasm] Option to implement OCaml strings with JavaScript strings
Conditional compilation of Wasm runtime
Jérôme Vouillon (@vouillon)Add Dune package management compatibility patch for `ocamlbuild`
Adds a patch to ocamlbuild to maintain compatibiltiy with dune package management, extracted from our branch at https://github.com/gridbugs/ocamlbuild/tree/0.16.1%2Bdune. This will enable the package to work when a project that requires this as a dependency is built with Dune package management. It will also continue working with opam. Some of this has been …
Sudha Parimala (@Sudha247)