Scattered collection PoC#427
Closed
mmastrac wants to merge 4 commits into
Closed
Conversation
2a79cd3 to
a330cf8
Compare
mmastrac
added a commit
that referenced
this pull request
May 5, 2026
Broken off from #427 - this is the basic crate structure and supporting macros.
0e9e658 to
825fa5e
Compare
mmastrac
added a commit
that referenced
this pull request
May 15, 2026
Implement two of the collections from #427: slice and sorted-slice, both of which are pretty trivial. As part of this work, fixing some link-section issues re: mutable slices: windows requires them to be in `UnsafeCell`.
763bc64 to
3a435cd
Compare
68d983a to
47f0360
Compare
Merged
Owner
Author
|
Closing - PoC completed. |
mmastrac
added a commit
that referenced
this pull request
May 19, 2026
Adds a scattered iterable, completing the set of collections for #427
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.
This is the PoC for a new crate built on top of ctor and link-section: scattered-collect. This won't land directly -- it will get carved up into smaller PRs and polished.
The idea is:
Why?
Distributed slice is awesome and nearly perfect but it's a static snapshot out of the linker and downstream code occasionally needs more functionality on top of it, ie:
Also, it doesn't support WASM which is a tougher to fix.
Inventory supports pretty much everything, but it's just a
#[ctor]with a linked list and doesn't offer easy random access.TODO
I'll spin some PRs off of this one and slowly land some pieces:
Data types
There are "referenced" and "unreferenced" versions of the slices - the unreferenced versions may be faster as the code is free to re-organize the data more easily.
Const hashing
Platform challenge notes