Repository navigation
Remove the hand-written Vec.sort and Vec.swap (sorting comes from STC, Phase 3) - #2280
Merged
Merged
Conversation
Sorting comes from the migrated corpora (docs/proposals/ stdlib_sourcing_plan.md, D37): STC's algorithm layer, migrated whole and exposed through the std.algorithms facade in Phase 3, which closes #940. libstd-spec §1.2: "Nothing native is written for this section." The heapsort added in #2274 was the native rewrite the ruling rejects, under public names no spec text defines (and unstable, which Python's and Rust's `sort` are not). Nothing outside its own test called it.
ehartford
force-pushed
the
drop-native-sort
branch
from
October 9, 2026 04:33
dea5a75 to
8f678c9
Compare
Contributor
Author
|
Battery GREEN on f329092 (stack top: #2280, #2284, #2285, #2286), The first battery, on 859e562, was red. It found three defects the fixed-array default had hidden, plus a red main, all fixed in f329092 and f57ba3c:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sorting comes from the migrated corpora (docs/proposals/stdlib_sourcing_plan.md, D37): STC's algorithm layer behind the std.algorithms facade, Phase 3, which closes #940. libstd-spec §1.2: "Nothing native is written for this section." The heapsort from #2274 was a native rewrite, public under names no spec text defines, and unstable. Only its own test called it. Gate green; the battery runs with the STC stack above it.