Repository activity
40458 results across all weeks
Many, many untypeast/pprintast fixes
It looked like untypeast/pprintast were broken again, so I made Claude find bugs in it and fix them. It ran untypeast/pprintast on every test in the testsuite and and found many bugs, some of them existing upstream as well. AI-generated text explaining the bugs that were fixed below:
Nathanaëlle Courant (@Ekdohibs)Miscellaneous improvements/fixes for the LTO version of the reaper
This PR adds a couple of remaining fixes that are required for the link-time optimization version of the reaper to work. It should not be merged as is and, instead, requires a little bit more work.
Simon Spies (@spiessimon)Mode Polymorphism Demo
This PR combines various existing PRs into a working mode polymorphism demo.
ainageorgesMode Polymorphism Parsing
This PR adds a parser for mode polymorphism. In function types, argument and result mode annotations may now be mode variables ('m) or bounds ([< ... > ...]):
ainageorgesMode polymorphic primitives
This PR adds support for mode polymorphic primitives, such as:
ainageorgesMode polymorphism parsing: morphisms
This PR is part of a stacked PR for mode polymorphism parsing.
ainageorgesMode polymorphism parsing: typing
This PR is part of a stacked PR for mode polymorphism parsing.
ainageorgesMore refactoring of sexp printing functions
This builds up on #4767 to use the new printing functions from Misc.Sexp to replace a lot of hand-written print functions.
Guillaume Bury (@Gbury)Moregen fast path
Representative benchmarks hit the fast path 70% of the time (or more). Variants are not currently handled by the fast path, as the row machinery is complex. There is room to expand some of the kind and mode checks (like a "fast mode crossing" path); right now, we bail out.
Zack Eisbach (@zackbach)Move merlin ci into build.yml
This PR migrates the Merlin CI check into the build.yml workflow. Merlin is still built and tested in a separate CI check from the checks that build and test the compiler.
Liam Stevenson (@liam923)Only use guard pages for currently-active stacks
Enable millions of fibers without stack checks.
Nick Barnes (@NickBarnes)Parsing: mode variables, mode bounds and morphisms
This PR is part of a stacked PR for mode polymorphism parsing.
ainageorgesPartially revert "Add `env_alloc_mode` to `Tpat_fun_layout` (#5662)"
env_alloc_mode was incorrect because it didn't take into account partial application, now that we use the function's mode we don't need this.
Jack Rickard (@Skepfyr)Pass Ox Ptr values to C as pointers
Experimental draft PR that adds @ox_ptr annotations to parameters of [@noalloc] external calls. These parameters are understood as a "fat pointer" of base and offset, with value_or_null & bits64 layout, such as an Ox.Ptr.t. The compiler adds the two words of the fat pointer together to get a single address word, which can be passed to a C function expecting …
Nick Barnes (@NickBarnes)Peephole optimise imul to lea for multipliers 3,5,9.
We already use lea in place of imul for simple constant multipliers in some places. In experimenting with writing hash functions in OxCaml, @nmatschke found some places where that was not done. This adds a peephole stage on the backend to pick up those cases.
Nick Barnes (@NickBarnes)Post-dominators computation for SSA
As per title; it implements the same algorithm
Xavier Clerc (@xclerc)Prevent bits8/16 parameters in C calls
Exceptions are [@@builtin]s and parameters tagged with [@unsafe_unextended]. This restriction does not apply to, e.g. (int16[@unboxed]), since tagged integers are sign-extended instead of having garbage in their upper bits. It is not possible to put [@unsafe_unextended] on a component of an unpacked product.
James Rayman (@jra4)Printing and hiding a mode polymorphic curry mode
This PR makes the following changes to the printer of mode polymorphic variables, all related to curry mode:
ainageorgesPropagate kind constraints through with-bounds
When resolving kind constraints with with-bounds on the left, propagate the constraints to the variables in with-bounds if possible. This means we can now type:
dkalinichenko-jsPrototype for language support for testing
Not ready for review
Simon Spies (@spiessimon)