Skip to content

[pull] main from B-Lang-org:main#175

Merged
pull[bot] merged 7 commits into
chenm001:mainfrom
B-Lang-org:main
Jun 26, 2026
Merged

[pull] main from B-Lang-org:main#175
pull[bot] merged 7 commits into
chenm001:mainfrom
B-Lang-org:main

Conversation

@pull

@pull pull Bot commented Jun 26, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

quark17 and others added 7 commits June 26, 2026 22:18
Add macos-26-intel, ubuntu-26.04, ubuntu-24.04-arm, ubuntu-26.04-arm
This avoids assuming that GHCup is installed on the runner (which it
is not, for GitHub's Ubuntu ARM runners).  It replaces shell code that
had been used for a similar situation for macOS runners.
splitITAp accumulated arguments with `as ++ [a]` while recursing down the
type-application spine. That is O(n^2) in the spine length and reallocates
the argument list at every level (~21% of allocation when compiling wide
split-port types). Use a reverse-accumulator (descend the spine prepending
args) so it is O(n) with no repeated appends. Result is identical.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
isTFun (and PredTrie.isTFunTyCon) tested membership with
`i `elem` numOpNames ++ strOpNames`, which rebuilds the (10-element)
list and does a linear scan of idEq comparisons on every call. isTFun is
called once per type constructor during type expansion/normalization, so
on wide types it dominates: profiling a 521-port always_ready struct
method (a port-shape boundary module) showed id_fs/idEq/isTFun as the top
cost centres, ~30% of allocation.

Precompute the operator-name set once and use Set membership instead.
Semantics-preserving. On the struct-form module above this cut the BscV
elaboration ~12% (131.3s -> 115.6s, isolated).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Jun 26, 2026
@pull pull Bot added the ⤵️ pull label Jun 26, 2026
@pull pull Bot merged commit 4bc48fa into chenm001:main Jun 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants