Repository activity
40458 results across all weeks
Improved testing infrastructure for Flambda 2
Mark Shinwell (@mshinwell)Install dynamic scopes behind existing bindings
Changes caml_dynamic_use_scope to install the scope at the bottom of the current fiber's binding stack instead of assuming the fiber has no bindings. This makes integration with the parallel/concurrent libraries easier.
Max Slater (@TheNumbat)Keep functions specialisable after lambda lifting
The reaper lambda-lifts closures that do not escape: their value slots
Mark Shinwell (@mshinwell)Kind-template module coercions
Adds kind template coercions to the module coercions.
Jakub Bachurski (@jbachurski)LTO prototype
[DRAFT] WIP prototype not ready for review yet
Simon Spies (@spiessimon)Log mutations in newvar_below
Solver.newvar_below obj m might make mutations to m, such as adding a vlower bound to it. Currently these changes are not logged, under the assumption that newvar_below never fails. While this assumption is correct, explicit snapshots and backtracks might still need to revert those changes. Otherwise, we may observe a leak in code such as:
ainageorgesLpoly v-0
Jack Rickard (@Skepfyr)Make externality a "secret" mode axis
Instead of hardcoding externality as a special-cased non-modal axis, make it a regular modal axis. Hide it and prevent users from writing annotations for externality modes and modalities, allowing them in mode-crossing only.
dkalinichenko-jsMake probe handlers return `#()` to avoid reaper issues
[%probe] handlers were compiled as functions returning unit, and To_cmm_expr.translate_apply0 unconditionally materialised that result as (seq (probe ...) 1). This went wrong with the reaper. Since the probe handler is a direct call to known code whose result nobody reads, the reaper deletes the return value, giving the apply an empty return_arity and a para…
ttebbi-janestreetMake the local iarray functions zero-alloc compatible
Wraps local IArray functions that are clearly meant to be local with [@zero_alloc assume] much like #6147 does
ericlovesmath (@ericlovesmath)Merge LTO
Nathanaëlle Courant (@Ekdohibs)Merlin-lib + OCaml-lsp-server +ox2 installs with OxCaml Compiler 5.2.0minus40 but can't read .cmi files
Note: This is my first OxCaml interaction other than waiting 30 minutes for the entire thing to compile 😄 .
Bohdan Purtell (@LeEmperor)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 ([< ... > ...]):
ainageorgesMore complete type inference with `eval` and concrete types
Motivation
Jakub Bachurski (@jbachurski)Morphism meets and joins
The solver keys vlower/vupper arrows by (variable, morphism), so constraints between the same two variables with different morphisms are separate edges. Since f u <= v and g u <= v together mean (f join g) u <= v, and dually with meet for upper arrows, one edge per pair suffices if morphisms can be joined and met. This PR adds join_morph/meet_morph to Lattic…
ainageorgesMove `any`-fields to stable
Move any-kinded fields and arguments to stable (undoing #6173).
Ryan Tjoa (@rtjoa)New Flambda -> Cmm phantom let translation scheme
Alternative to #6519's handling of phantom lets in To_cmm, for comparison with the reference-erasure scheme there. Part of the dwarf202607 series; stacked on #6822 (same base branch as #6519).
Mark Shinwell (@mshinwell)Optimization: prevent adding trivial meet- and join constraints
Skip constant operations at their identity elements. In the underlying solver lattice, meet max m = m and imply max m = m, so the resulting constraints are trivial m < m. Monadic modes use the opposite lattice, where join_const and subtract_const are implemented as meet and imply. This PR skips these cases to prevent adding trivial solver edges.
ainageorges