Repository activity
40458 results across all weeks
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…
ainageorgesNon-scanned layouts cross externality inherently rather than syntactically
We currently have a syntactic implication that non-value base layouts such as bits32, etc., imply mod external_ (#5162).
Ryan Tjoa (@rtjoa)Optimization in zap scope
Compute floor and ceiling bounds lazily when populating zap scopes, avoiding these calculations unless a non-generic variable needs them.
ainageorgesOptimization: lazy adjoints in hints
Makes hint adjoints in the mode solver lazy. Morph_hint.left_adjoint/right_adjoint used to walk and rebuild the whole hint tree on every submode through an edge, even though hints are only read when an error is printed.
ainageorgesOptimization: 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.
ainageorgesOverhaul of sort variable levels
@jbachurski: I'm now convinced lowest_level is correct. nongen_level would just end up in the wrong pool and we might be allowed to generalise it after leaving the current level, which is bad.
Jakub Bachurski (@jbachurski)Pattern matching: support jump tables for unboxed values
(As per title; not reviewed yet.)
Xavier Clerc (@xclerc)Peephole on tag_int(x lsr n): make #int array length primitive as good as standard array length
There was a missing peephole optimisation for this primitive.
Pierre Chambart (@chambart)Persistent_env checks an import's CRC vector twice on a checked cold lookup
Persistent_env checks an imported interface's CRC vector twice on every checked cold lookup.
Rudi Grinberg (@rgrinberg)Potential n-way join performance improvements
These can wait until later unless match-in-match is hitting them.
Mark Shinwell (@mshinwell)Pre-cache Effect.Preemption, and don't lookup via caml_named_value during preemption
While we're in the middle of preemption, it's very important that we never allocate, since we might be holding onto a continuation that has been allocated but not yet initialized. This change fixes one case where that could have happened, where if the call to caml_named_value to look up the named Effect.Preemption effect value hits lock contention in the tab…
Aspen Smith (@glittershark)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:
ainageorgesProduce structured mode diagnostics
This PR introduces the diagnsotics/ directory, which consumes errors in the compiler and produces "structured diagnostics".
Gavin Gray (@gavinleroy)Read the Claude workflows' model and effort from repo variables
Both Claude workflows hardcoded --model claude-fable-5 and --effort xhigh in claude_args, so changing either required a PR. This reads them from the CLAUDE_MODEL and CLAUDE_EFFORT repository variables instead, which repo admins can change from Settings → Actions → Variables without a PR.
Jacob Van Buren (@jvanburen)Recompute `value_kind`s for records with `any`-fields
Compute better value_kinds for records containing any in value_kind_record. This improves codegen for records with any-fields.
Ryan Tjoa (@rtjoa)Record synchronized Merlin import for interface strengthener
Second branch for the interface strengthener worktree. external/merlin/scripts/import-ocaml-source.sh reported that Merlin was already synchronized, so this layer contains only the administrative synchronization commit.
Gavin Gray (@gavinleroy)Refactor lowering and add expect_asm tests for lowering of index-like atomic primitives
We currently expose three Lambda primitives for each atomic operation on block
Joe Kerrigan (@joe-kerrigan)Register the source file as DWARF-5 line table file 0 on macOS
Seventh in the series (on top of #6926), fixing the .debug_line issue reported in this comment on #6923 — with one correction to that comment's analysis: the problem is independent of -gdwarf-version (and predates this stack entirely). The Apple assembler emits DWARF-5 line tables by default regardless of our flag, so the duplicate entry appears in DWARF-4…
Mark Shinwell (@mshinwell)Remove locations printed in the let_poly tests
This changes an assertion failure to a fatal error to stop compiler source locations from being printed in test output so that it's stable across compiler changes.
Jack Rickard (@Skepfyr)Remove old compaction algorithm
Since #3179 we've had two compaction algorithms and a tweak for choosing between them. The new algorithm has proved itself, and is essential for huge pages. This PR removes the old algorithm and the switching mechanism.
Nick Barnes (@NickBarnes)