Repository activity
40458 results across all weeks
Set up workflow static analysis
This PR enables zizmor static analysis, github advanced security, and sets up dependabot to help us regularly upgrade our actions to newer versions.
Jacob Van Buren (@jvanburen)Share record label-access typechecking code between projection and mutation
Merge solve_Pexp_field into type_label_access, so the same code is used for field projection, Pexp_setfield, and [%atomic.loc].
Ryan Tjoa (@rtjoa)Simplifier: extend collapse of `compare x y = 0` to direct comparison
Simplify already recovers a direct comparison from a three-way compare result
Xavier Clerc (@xclerc)Simplifier: extend constant-folding to bit-counting, mulhi and int32-shift builtins
The [@@builtin] intrinsics cross Flambda2 as opaque C calls
Xavier Clerc (@xclerc)Simplify rec info aliases
Rec info aliases (let depth x = x) are currently not simplified (see the output of the test in the first commit of this PR) because we convert them to an alias type, which we forget about in the provers.
Basile Clément (@bclement-ocp)Simplify, optimize, and fix the `lf_skiplist` implementation
See the individual commits for more details. Here is a brief summary:
Vesa Karvonen (@polytypic)Split off ocamlfrontend from ocamlcommon
ocamlcommon is necessarily linked with -linkall in order to ensure the type checker is initialised correctly.
David Allsopp (@dra27-js)Start leaving breadcrumbs
Add a Breadcrumbs module.
Ryan Tjoa (@rtjoa)Store dynamic bindings outside of stack_info
Allocates the per-fiber dynamic binding table separately from the fiber's stack_info struct, which moves when the fiber's stack grows (assuming stack checks are in use). This allows us to store a stable pointer to a running fiber's dynamic state in a following PR.
Max Slater (@TheNumbat)Store the data in CMR files we need to resume the reaper
Adds code for serialising the necessary data to CMR files: everything we need to solve and rebuild programs, less what's already in CMX files.
Miriam Vellacott (@mirivella)Strengthen CFG invariants
As per title; this pull request makes the
Xavier Clerc (@xclerc)Support layout polymorphism over records and variants with [any]-fields
Stacked on #6496.
Ryan Tjoa (@rtjoa)Swap lkindinstantiate's mode to a return_mode
return_mode_of_locality_mode is a weird function, this change removes the only place that was calling it and removes the function itself. lkindinstantiate's mode is only used to fill in an Lapply's return mode and it's semantically a return mode so this just swaps it from a locality mode to a return mode.
Jack Rickard (@Skepfyr)Synchronize merlin
Liam Stevenson (@liam923)The reaper
Mark Shinwell (@mshinwell)Tighten location of `Pexp_hole` in `?_` and `~_`
Possible oversight in #4956? It seems inconsistent that ?label and ~label give the location for label but ?_ and ~_ give the location for ?_ and ~_ rather than just the _
David Allsopp (@dra27-js)Track staticity of functors and their applications
A functor's staticity equals its parameter's: a functor taking a static parameter is static, one taking a dynamic parameter is dynamic, and generative functors are always dynamic. On application, the functor's original staticity is recovered (its own staticity must be below the parameter's) and attached to Tmod_apply; the functor's own staticity is attached …
Zesen Qian (@riaqn)Unknown locations
Anonymous functions, anonymous modules and partial-application wrappers have no
Tim McGilchrist (@tmcgilchrist)Unmerge comments in Merlin
This PR is a downstreaming of ocaml/merlin#2092. These changes were already reviewed and merged upstream, so review of this PR should only consist of ensuring that I downstreamed the changes correctly.
Liam Stevenson (@liam923)Update `HACKING.jst.md`
Replace external/merlin/HACKING.jst.md with up-to-date instructions for working on Merlin. The new text was already reviewed by @dkalinichenko-js and @dra27-js.
Liam Stevenson (@liam923)