Repository activity
40458 results across all weeks
Runtime: faster int64 division, formatting and parsing
MlInt64.udivmod divided one bit at a time (up to 64 iterations, each allocating), and caml_int64_format called it once per digit, so Int64.to_string of a 19-digit value took about 20 µs. Int64.div, Int64.rem and Int64.of_string (which divided once per call to compute its overflow threshold) went through it too. Base's Int63 is an Int64 in JS, so this is on …
Jérôme Vouillon (@vouillon)Tests: do not check the tag of empty float arrays on OCaml 5.4
When their result is empty, the OCaml runtime's caml_floatarray_gather returns an array with tag 254, which is then not equal to Float.Array.create 0. This bug appeared in 5.3.0, where it affects Float.Array.sub and Float.Array.append; from 5.4.0, Float.Array.concat goes through the same function. It is fixed upstream by ocaml/ocaml#14635, in 5.5.0, and the …
Jérôme Vouillon (@vouillon)Toplevel: depend on js_of_ocaml-ppx
Fixes #2626.
hhugoUse the 0.1 release of ppx_devtools
ppx_devtools-optcomp and ppx_devtools-expect are released as 0.1 (https://github.com/ocsigen/ppx_devtools/releases/tag/0.1).
hhugoWasm: make Binaryen optional
Binaryen's wasm-opt is now the only Binaryen tool wasm_of_ocaml uses (linking and dead code elimination moved to our linker in #2506, and Wax assembles the runtime since #2373). This makes it optional.
hhugo[BUG] `js_of_ocaml-toplevel.worker_lwt_client` silently missing unless `js_of_ocaml-ppx` is installed first
Describe the bug
Cuihtlauac Alvarado (@cuihtlauac)wasm: fix invalid code for numbers used as other values on dead paths
A variable known to be an integer or an unboxed number can reach, in a dead branch (with GADTs, typically), a use expecting another kind of value. The generated module then failed to validate in these cases:
Jérôme Vouillon (@vouillon)No partial upgrades on Arch
Such a strange package manager...
David Allsopp (@dra27-js)OxCaml installation depends on rsync
Hello folks!
barun511ppxlib: check by default in drivers linking ppxlib.runner
The ppx drivers that link ppxlib.runner (unlike dune's, which use
Robin Ricard (@rricard)ppxlib: check locations by default, along with the other checks
The location check now runs inside [if !perform_checks], and is on by
Robin Ricard (@rricard)ppxlib: explain syntax errors with lrgrep
When the parser rejects a file, ppxlib reports "Syntax Error. LRGrep
Robin Ricard (@rricard)ppxlib: let distributions link location check errors to their docs
Location check errors end with "For more information see: " when
Robin Ricard (@rricard)"Unexpected free names" when compiling with n-way join
The following program:
Leo Lee (@smjleo)%arrayblit between float arrays keeps a local box for each element at -Oclassic
At -Oclassic, %arrayblit between two float arrays allocates a boxed float on the local stack for each element and keeps them until the copy ends. Copying 10,000,000 elements grows the local stack to 256 MB; under ulimit -v 450000 the program ends with Local allocation stack overflow.
Mark Shinwell (@mshinwell)%makearray_dynamic at an unboxed product does not test the length for overflow
%makearray_dynamic at an unboxed product does not test the length times the number of components for overflow. With four int64# components and length min_int + 1 it returns an array of length 1; other lengths give an array of length 0 or a segmentation fault. Bytecode raises Invalid_argument.
Mark Shinwell (@mshinwell)(DRAFT) Only read the .cmx files of required globals when needed
Compilenv.require_global no longer reads the .cmx file of each required global before the middle end. It records the unit as required, and the .cmx file is read only if its contents are needed. A required global whose .cmx file is never read is imported without a CRC and no longer triggers warning 58. The import order is unchanged.
Zesen Qian (@riaqn)(DRAFT) Record cmi locations under `-persistent-deps`
Based on #7506 (introduce-cui).
Zesen Qian (@riaqn)(DRAFT) Record cmx locations under `-persistent-deps`
Stacked on #7031.
Zesen Qian (@riaqn)(Refactor) Stop deriving global names by stripping pack prefixes
Stacked on #8216. Groundwork for #7506: remove Compilation_unit.to_global_name_without_prefix, which manufactured a global name by stripping the pack prefix off an implementation.
Zesen Qian (@riaqn)