Repository activity
40458 results across all weeks
test: cover stale load paths across typer states
This extends the existing cmi-appears.t regression test to cover two typechecker states that share the same build directory.
Rudi Grinberg (@rgrinberg)Add Atomic.compare_and_exchange
As suggested in #14889, I added the compare_and_exchange function in Atomic :
JeannalyseAdd Stdlib.Char.Ascii.is_punct
Add Stdlib.Char.Ascii.is_punct, which behaves like ispunct from the C standard library: https://en.cppreference.com/c/string/byte/ispunct.
Benoit (@benjub)Add Sys.filepath_exists and improve clarity of Sys.file_exists
Hi ; ) Following what has been discussed in #12393, this PR introduces the proposed Sys.filepath_exists function and some tests along with the docstrings, attempting to improve the clarity of the existing Sys.file_exists function for users as well.
Khalid (@khalidbelk)Add missing EV_MINOR_EPHE_CLEAN constructor to runtime_phase
The runtime has emitted this phase since 5.4 (#13643), when a minor collection has to clean locked ephemerons, but the OCaml type had no constructor for it, so consumers were handed an out-of-range value and crashed when matching on it.
Tim McGilchrist (@tmcgilchrist)An attempt at optimization path-equivalence checks modulo normalization
This PR, which is a draft for discussion with @Octachron and during the type-system meeting, builds on top of #14950. It tries to optimize the equivalence check for (mod)type paths modulo normalization, by skipping the construction of the normalized path completely.
Gabriel Scherer (@gasche)Bug: Functor application in recursive modules is not approximated
The approximation phase of recursive module typechecking skips parts of signatures such as value declarations and the RHS of type declarations, allowing it to skip replacing types during a destructive substitution. However, we do not approximate module type of, causing approximated module types arising from destructive substitution to be observed. This cause…
Ryan Tjoa (@rtjoa)Correct typo in `Array2#init`
Array2#init accidentally says that dim2 will specify the size of the first dimension, when it should be dim1.
Tristan F.-R. (@tristan-f-r)Disable the parsetree bot on forks
I opened a self-PR and had this infernal bot tag people again! It it turns out the fix is more straight-forward than I'd expected - I've checked that what's given here definitely doesn't trigger on forks, and I temporarily changed it to dra27/ocaml to confirm that it the and trigger should still happen on ocaml/ocaml.
David Allsopp (@dra27)Dynarray.append_iarray, Pqueue.of_iarray
Two Iarray-related additions. This avoids a need to copy an iarray into an array or to use usafe code.
Nicolás Ojeda Bär (@nojb)Dynarray.unsafe_{get,set}
On a synthetic microbenchmark on my machine, I observed [unsafe_set] being about 1.40x faster than [set], and [unsafe_get] being about 2.5x faster than [get].
Gabriel Scherer (@gasche)Elide the occurs-check for parameters that are fresh variables
It seems that a lot of the time is spent doing the occurs check while expanding the large object types to a form that can eventually be handled.
Stefan Muenzel (@smuenzel)Enable -g by default, including in the bytecode compiler
I propose to enable -g by default, including in the bytecode compiler. (Currently we enable -g by default in native, but not in bytecode.)
Gabriel Scherer (@gasche)Fix compiler cloning in the opam sandbox on macOS
This is an alternate to #14901, but owes its core to @kit-ty-kate's investigation and fix. I wasn't too happy with the additional subshells being spawned, and fixing that suggested changing the argument order for the script which was all becoming a bit noisy just add to @kit-ty-kate's PR, so here it is as a separate one!
David Allsopp (@dra27)Fix expect test trailing output
I missed printing the expect "container" for the trailing output in #14643, this fixes it
Stefan Muenzel (@smuenzel)Fix minor_allocated_bytes conversion.
Should use Wsize_bsize(minor_allocated_bytes) to convert bytes to words.
Tim McGilchrist (@tmcgilchrist)Fix win32 select handle leak
This is a LLM-driven bug reported initially by liquidsoap users at https://github.com/savonet/liquidsoap/pull/5290 and confirmed on the code base.
Romain Beauxis (@toots)Fix with module type precedence
Fixes #14874.
314eterGeneralization of Seq.group
The Seq.group function introduced by #10583 (and also Haskell's group) has the following behavior where elements are compared against the first element in each group instead of their adjacent elements: (I will write Seq.t in the list notation.)
favonia (@favonia)Generate native atomic exchange and compare-and-set across all architectures
G'day!
Zane Hambly (@Zaneham)