-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safe Access to Contiguous Storage #2307
Open
glessard
wants to merge
52
commits into
swiftlang:main
Choose a base branch
from
glessard:safe-shared-contiguous-storage
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,208
−0
Open
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
8093cad
[draft proposal] Safe Access to Contiguous Storage
glessard 548b250
edit placeholder proposal url
glessard 7cfd46d
link to pitch thread
glessard 9993694
declare typealiases correctly
glessard fece228
add “first” and “last” properties
glessard a3784fe
fix inits from raw pointers
glessard ceb261d
Update proposals/nnnn-safe-shared-contiguous-storage.md
glessard 2480ca2
add `view(as: T)`
glessard 441a5c8
incorporate feedback from pitch discussion
glessard b360a50
enclose index and iterator types in the main type
glessard 9aa96ea
update protocol declaration
glessard 1adba6d
link to additional related pitches
glessard 300591d
fix a stored property type
glessard ed5fea2
rename type, adopt new syntax
glessard 7b2bb1f
various updates
glessard f876043
add more RawSpan API, doc-comment fixes
glessard 844e661
Added more prose, added TODOs for further clarification
milseman 15de4ab
Update proposals/nnnn-safe-shared-contiguous-storage.md
glessard be180f1
remove some trailing whitespace from code blocks
glessard 26a7637
Update
milseman 50a38df
Update
glessard 6add19b
lots of updates
glessard 5d19ead
Apply suggestions from code review
glessard d46c815
Move byte parsing helpers into a future direction
milseman d87f041
Fill out the index appendix
milseman a5239b4
tweaks and corrections
glessard 99f305a
add missing keywords
glessard b3db4b4
Apply editing suggestions from review
glessard d728217
annotation adjustments, various edits
glessard a0d3b87
some more edits
glessard 90890a5
move `ContiguousStorage` to future directions
glessard 2d463ab
edits about unsafe initializer usage
glessard c8b2d5c
remove “generally” from index-sharing note
glessard 859a071
improve index validation functions
glessard e924bab
omit some duplicated documentation
glessard 1844c97
add html anchors to important sections
glessard 385cccb
add link to second pitch thread
glessard 5266e65
more cleanup surrounding `ContiguousStorage`
glessard 913f6e1
whitespace fixes
glessard ba482d9
Change some uses of the word “view” to “span” instead
glessard 9370b13
fix misspelling
glessard 572a236
add missing doc-comment paragraph
glessard c9c312c
change `uncheckedBounds` to `unchecked`
glessard 42170bf
fix doc-comments
glessard 1319b1d
rework `load` and company
glessard 66bcb19
add the `SurjectiveBitPattern` future direction
glessard f84aefc
more about `SurjectiveBitPattern`, plus an alternative
glessard 4b13bcd
move reference to SE-0256 to the ContiguousStorage item
glessard 7a88571
reword coroutine accessors
glessard a183439
remove undesirable annotations and default values
glessard 0a12619
add containment utilities
glessard 3c9ef51
Apply suggestions from code review
glessard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added more prose, added TODOs for further clarification
- Loading branch information
There are no files selected for viewing
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the record, I remain very much unconvinced that it'll be wise to encourage folks to create APIs that can only operate on contiguous storage, as opposed to a series of contiguous storage chunks.