Karoy Lorentey
1c69635852
Add SPDX-License-Identifier tags
2026-03-05 19:39:24 -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
b7545b990b
[BasicContainers] Add bulk insertions to hashed set types
2026-02-27 13:36:37 -08:00
Karoy Lorentey
4452b1c960
[ContainersPreview] Mark ProducerError as a primary associated type of Producer
2026-02-24 16:41:31 -08:00
Karoy Lorentey
a14f9eb61c
[BasicContainers] Add missing imports of ContainersPreview
2026-02-23 13:56:38 -08:00
Karoy Lorentey
3941dab5b0
[BasicContainers] Implement removals on RigidSet and UniqueSet
...
Dictionaries are still to be done.
2026-02-20 18:19:51 -08:00
Karoy Lorentey
bf9a7033a0
[BasicContainers] Add early drafts for RigidSet/RigidDictionary
2026-02-16 17:15:59 -08:00
Karoy Lorentey
934ad786d2
Merge pull request #570 from lorentey/remove-outputspan-workaround
...
Remove workaround for bug in OutputSpan.wUMBP
2026-02-16 17:14:44 -08:00
Karoy Lorentey
5a4ee8be66
Update docs for Container.nextSpan(after:maximumCount:)
...
Oops, the docs did not explain `maximumCount`.
2026-02-16 15:49:33 -08:00
Karoy Lorentey
8ef702c8a5
Remove workaround for OutputSpan.wUMBP bug
2026-02-05 17:07:03 -08:00
Karoy Lorentey
6c1d4ab9c8
Update Xcode and CMake build configurations
2026-02-04 23:24:11 -08:00
Karoy Lorentey
e4a874b67a
Rigid & Unique types: Add Equatable, Hashable, Custom[Debug]StringConvertible operations
...
Currently these are all conditional on copyable elements, and the types cannot conform to the actual protocols yet.
2026-02-04 23:24:08 -08:00
Karoy Lorentey
7692d9c4b3
RigidArray: Add test coverage; revive some container-based operations
2026-02-04 22:41:33 -08:00
Karoy Lorentey
0b8e5971d8
Another spot where we call the stdlib’s OutputSpan.wUMBP
2026-02-04 17:47:50 -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
030f751515
[BasicContainers] RigidArray, UniqueArray: Fill out missing indexing APIs
2026-02-03 14:06:03 -08:00
Karoy Lorentey
772c426bc9
Oh this is proving a bit more difficult than ideal
2026-01-29 15:02:53 -08:00
Karoy Lorentey
801d361bbb
Reinstate OutputSpan additions accidentally removed during merge
2026-01-29 14:39:07 -08:00
Karoy Lorentey
70dd9cd5d9
Merge branch 'main' into all-hands-on-deque
...
# Conflicts:
# Sources/BasicContainers/RigidArray+Insertions.swift
# Sources/ContainersPreview/OutputSpan+Extras.swift
2026-01-29 14:29:47 -08:00
Karoy Lorentey
d1efcb19db
More wrinkles! Shar Peis are adorable
2026-01-29 13:23:07 -08:00
Karoy Lorentey
ffc56156a5
Wrinkles on top of wrinkles…
2026-01-29 13:16:39 -08:00
Karoy Lorentey
31e9e7c2f0
Oops, don’t use the workaround in 6.2
...
The 6.2 implementation works okay, but it loses the base address in the exposed buffer happens to be empty.
2026-01-29 13:04:57 -08:00
Karoy Lorentey
1bced00e1c
Sigh, disable withTemporaryOutputSpan on 6.2
...
The RigidDeque effort will land a polyfill for temporary allocations to let us use this on 6.2.
2026-01-29 12:08:01 -08:00
Karoy Lorentey
e8d53861ae
Move OutputSpan.wUMBP workaround to ContainersPreview, and use it there, too
2026-01-29 11:36:52 -08:00
Karoy Lorentey
4c9a0da7f1
Update CMake configuration
2026-01-26 12:31:36 -08:00
Karoy Lorentey
3a1498781a
Fix support for older compilers
2026-01-26 11:18:59 -08:00
Karoy Lorentey
9a4ee93406
Simplify some RIgidArray operations
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
0e52141a65
withTemporary{Input,Output}Span: Add support for stdlibs before 6.3
2026-01-20 11:17:00 -08:00
Karoy Lorentey
7b5221ea24
RigidDeque: Add Container conformance and allow copying from Containers
2026-01-20 10:51:17 -08:00
Karoy Lorentey
cda49ed5a8
Merge remote-tracking branch 'origin/main' into all-hands-on-deque
...
# Conflicts:
# Sources/InternalCollectionsUtilities/UnsafeMutableBufferPointer+Extras.swift
2026-01-17 00:20:32 -08:00
Karoy Lorentey
7f7089eae6
Update Producer and Drain, fleshing them out a bit
2026-01-16 16:06:27 -08:00
Karoy Lorentey
33b50fdb76
FactoryIterator → Producer, ConsumingIterator → Drain
2026-01-12 14:10:25 -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
d1d757e425
[RigidDeque] Implement replacement operations
2026-01-08 17:25:21 -08:00
Karoy Lorentey
ad17682739
Update Sources/ContainersPreview/InputSpan.swift
2025-12-09 11:21:18 -08:00
AZero13
1c840e63da
first should get the Initialized elements
2025-12-06 12:41:27 -05:00
Alejandro Alonso
3975774393
wip
2025-10-23 15:05:12 -07:00
Karoy Lorentey
c6cc6ed150
Add some rudimentary docs to Box
2025-09-27 16:05:25 -07:00
Karoy Lorentey
e5577bb12b
Update DocC documentation
2025-09-27 16:05:12 -07: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
76c643222f
Update CMake config
2025-09-26 22:38:18 -07:00
Karoy Lorentey
097ea09b6a
Update Collections.xcodeproj
2025-09-26 22:38:17 -07:00
Karoy Lorentey
2ae7f11ecf
Add draft version of borrowable Container protocol
2025-09-26 18:40:00 -07:00
Karoy Lorentey
155a8a010e
InputSpan: Set availability to be consistent with other Span types
2025-09-26 18:40:00 -07:00