Karoy Lorentey
204e94cb63
[ContainersPreview] Conform span types to some of the container protocols
...
This is currently limited to `Container`, `BidirectionalContainer`, `RandomAccessContainer` and `MutableContainer`. `OutputSpan` and `InputSpan` should also be `RangeReplaceableContainer`s, but that is proving tricky to express in current Swift.
2026-07-07 14:18:09 -07:00
Karoy Lorentey
12b1cf8020
[ContainersPreview] Make Drain refine CountedProducer
...
This lets us avoid having to pass an explicit count when using a drain to populate a container.
2026-06-18 13:22:16 -07:00
Karoy Lorentey
85cdb77d25
Fix build issues
2026-06-17 16:17:36 -07:00
Nate Cook
dca015d7e8
Align Iterable with proposal
...
Adds throwing and ~Escapable elements
2026-06-17 14:27:29 -07:00
Nate Cook
4bda43f4a9
Renaming BorrowingSequence_ to Iterable_
2026-06-17 14:27:29 -07:00
Franz Busch
3c373b900c
Use the defines from traits directly
...
Package traits already pass defines with their trait name when building. Instead of adding our own conditional defines based on the traits we can use the trait provided defines directly. I observed that various tooling behaves better with the trait provided defines.
2026-05-06 07:41:02 -07:00
Karoy Lorentey
f652543a50
[ContainersPreview] Producer.ProducerError ⟹ Producer.Failure
...
Reserving a unique name for Producer’s failure type seems unwise, especially if we end up Producer refining a throwing BorrowingSequence protocol.
2026-04-30 13:31:28 -07:00
Karoy Lorentey
2417a006e2
Also adjust tests
2026-04-03 17:23:11 -07:00
Karoy Lorentey
597b7a7dd2
Revert most of the availability constraints from 419e2f and 4c0482 🎉
2026-03-27 11:25:43 -07:00
Nate Cook
a99a015934
Disambiguate ContainersPreview and stdlib
...
Adds trailing underscores to the BorrowingSequence protocols and
requirements, in order to allow both parallel conformances and
the ability to evolve the requirements in this package.
2026-03-27 07:41:32 -05:00
Karoy Lorentey
4c04822689
[ContainersPreview] Exhibit B in the case against prototyping things in the stdlib 😳
2026-03-26 18:13:22 -07:00
Karoy Lorentey
d2d3b917ca
[BasicContainers, ContainersPreview, DequeModule] More SuppressedAssociatedTypesWithDefaults fixups
2026-03-26 18:12:41 -07:00
Karoy Lorentey
70a25f1f69
[ContainersPreview] Bump required toolchain to 6.4 for new protocols
2026-03-26 14:51:08 -07:00
Karoy Lorentey
8f88cce7c7
[BasicContainers, ContainersPreview] Make sure package traits “work” on 6.2 toolchains
...
“Work” in this case means that they can be enabled without breaking the build — not necessarily that all features are available.
Swift 6.2 is highly prone to runtime crashes in `swift_getTypeByMangledName` in generic code that uses ownership features. Swift 6.3 will resolve that.
2026-03-17 15:38:34 -07:00
Karoy Lorentey
cde6e86f4f
[ContainersPreview] Underscore elementsEqual for now, to avoid ambiguity with the Sequence method
2026-03-13 09:14:15 -07:00
Karoy Lorentey
11443c0531
Enforce uniform license headers
2026-03-07 10:26:28 -08:00
Karoy Lorentey
1c69635852
Add SPDX-License-Identifier tags
2026-03-05 19:39:24 -08:00
Karoy Lorentey
d4722f4f82
[tests] Adjust visibility of API checker protocols
2026-03-05 19:39:23 -08:00
Karoy Lorentey
d9b09ecde8
Update copyright dates
2026-03-05 19:39:20 -08:00
Karoy Lorentey
214d75cb73
BorrowingSequence: estimatedCount ⟹ underestimatedCount
...
EstimatedCount is largely pointless. Knowing the exact count does enable a fast negative path for `elementsEqual`, but we can otherwise make do with just the (much simpler to understand/deal with) `underestimatedCount` that already exists on `Sequence`.
2026-03-05 15:33:27 -08:00
Karoy Lorentey
ffdc48e67e
[BasicContainers] Finalize requirements for hashed containers
...
- UnstableNoncopyableKeys → UnstableHashedContainers
- Delete the GeneralizedEquatable and GeneralizedHashable protocols, replacing them with the standard generalizations in the 6.4 stdlib
- Require Swift 6.4 for {Rigid,Unique}{Set,Dictionary}.
2026-03-03 16:01:45 -08:00
Karoy Lorentey
d453fa1816
[BasicContainers] RigidSet: Test bulk insertions
2026-02-27 18:02:40 -08:00
Karoy Lorentey
0ed3abd92c
Fix some build errors in some configurations
2026-02-16 17:16:02 -08:00
Karoy Lorentey
bf9a7033a0
[BasicContainers] Add early drafts for RigidSet/RigidDictionary
2026-02-16 17:15:59 -08:00
Karoy Lorentey
e6d6731124
Don’t flood Xcode with a million unit test failures
2026-02-05 14:56:53 -08:00
Karoy Lorentey
7692d9c4b3
RigidArray: Add test coverage; revive some container-based operations
2026-02-04 22:41:33 -08:00
Karoy Lorentey
2318ef4c4e
Fix random issues in single-module mode
2026-02-04 17:35:18 -08:00
Karoy Lorentey
9503f8fe57
Improve consistency of precondition failure messages
...
More uniform message strings should feel better, and they should ever so slightly reduce code size.
2026-02-04 10:27:17 -08:00
Karoy Lorentey
b48508a3a3
Fix another build regression
2026-01-26 12:56:00 -08:00
Karoy Lorentey
27655b8a92
Update Xcode project
2026-01-26 12:31:37 -08:00
Karoy Lorentey
3a1498781a
Fix support for older compilers
2026-01-26 11:18:59 -08:00
Karoy Lorentey
76fa120c27
More RigidDeque testing
2026-01-26 11:18:57 -08:00
Karoy Lorentey
29b31e5e0d
RigidDeque: Add test coverage; fix issues
2026-01-25 16:42:41 -08:00
Karoy Lorentey
70a36c2c47
RigidDeque: Another iterative design pass on deque operations
...
- Adopt and embrace Drain and Producer to simplify moving data in and out of deques.
- Fully generalized core range replacement primitive using higher-order functions based around InputSpan and OutputSpan
2026-01-25 16:42:40 -08:00
Karoy Lorentey
e4aba4c1c9
Iterable → BorrowingSequence, BorrowIterator → BorrowingIterator
2026-01-25 16:42:37 -08:00
Karoy Lorentey
fabe5d8c87
RigidArray, UniqueArray, RigidDeque tests: Rework some assertions
2026-01-20 17:46:23 -08:00
Karoy Lorentey
7b5221ea24
RigidDeque: Add Container conformance and allow copying from Containers
2026-01-20 10:51:17 -08:00
Karoy Lorentey
67abaf5182
Replace Container with a far less powerful (but more universal) Iterable construct
...
I’m hoping Container will return later.
2026-01-08 17:28:23 -08:00
Karoy Lorentey
1dc2b7717f
Revert "Don’t allow backdeployment of any Span types below the most recent Darwin OS releases"
...
This reverts commit 485e69bfb1 .
# Conflicts:
# CMakeLists.txt
2025-09-27 12:15:30 -07:00
Karoy Lorentey
485e69bfb1
Don’t allow backdeployment of any Span types below the most recent Darwin OS releases
...
References to Span types trigger an issue where SwiftPM isn’t able to run command line executable targets or tests on older OSes.
Set the availability of everything that needs span types to the most recent Apple OS releases.
Hopefully we’ll be able to revert this once we figure out a better workaround.
2025-09-26 22:38:18 -07:00
Karoy Lorentey
2ae7f11ecf
Add draft version of borrowable Container protocol
2025-09-26 18:40:00 -07:00
Karoy Lorentey
8890f47600
Remove workaround for lack of recent snapshots for Swift 6.2 on Windows
2025-09-04 15:28:15 -07:00
Karoy Lorentey
fd8eb146ec
[TestSupport] Add TestPrintable protocol
2025-08-17 21:18:13 -07:00
Karoy Lorentey
b71cc36f2d
[TestSupport] Add Container validator and StaccatoContainer
...
These are precursors for container protocols, referenced by the new array tests
2025-08-17 13:33:41 -07:00
Karoy Lorentey
f679ec91b5
[ArrayModule] Add new module with RigidArray and DynamicArray
2025-08-17 13:33:39 -07:00
Karoy Lorentey
0e8dd37073
Box → ClassBox
...
In preparation of adding the public, noncopyable Box type
2025-08-17 13:33:28 -07:00
Karoy Lorentey
2ca8bca67d
Resolve Swift 6 concurrency issues
...
This is just slapping `nonisolated(unsafe)` on global variables in the test suite.
Our tests do not support concurrent execution.
2025-08-17 13:33:28 -07:00
Karoy Lorentey
59bc4a4824
Add support for lifetime tracked noncopyable structs
2025-08-17 13:33:27 -07:00
Karoy Lorentey
04408a450d
Minimal collections: add support for testing contiguous collection APIs
2025-08-17 13:23:01 -07:00
Karoy Lorentey
54c65310f4
Adopt #filePath in test assertions
2025-08-17 13:23:00 -07:00