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
a446b47d6e
Merge pull request #571 from lorentey/deque-docs
...
`RigidDeque`/`UniqueDeque`: Add some top-level documentation
2026-02-13 14:09:43 -08:00
Alejandro Alonso
3bf8de6e2b
Add new span taking copying initializers to Rigid and UniqueArray
2026-02-12 11:01:30 -08:00
Karoy Lorentey
b21316ea08
[DequeModule] Add some top-level RigidDeque/UniqueDeque docs
2026-02-09 17:28:31 -08:00
Karoy Lorentey
8ef702c8a5
Remove workaround for OutputSpan.wUMBP bug
2026-02-05 17:07:03 -08:00
Karoy Lorentey
35e09984f5
[doc] Add missing colon after “Parameters”
2026-02-05 16:48:05 -08:00
Karoy Lorentey
b9fd3ed56e
RigidArray, UniqueArray: Move remaining deprecations to dedicated file
2026-02-05 16:46:14 -08:00
Karoy Lorentey
653a60b8e7
replaceSubrange(_:...) → replace(removing:...)
2026-02-05 14:56:51 -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
2318ef4c4e
Fix random issues in single-module mode
2026-02-04 17:35:18 -08:00
Karoy Lorentey
84e9932478
Rigid/Unique types: Review consumption methods and unify their shapes
...
Drain-returning variants will need to be added on RigidArray/UniqueArray later.
2026-02-04 17:32:41 -08:00
Karoy Lorentey
06f2ec073d
Rigid, Unique types: Rework OutputSpan-based append/prepend/insert/replaceSubrange primitives
2026-02-04 17:29:43 -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
b768d22393
[BasicContainers] RigidArray, UniqueArray: “precisely once” → “at most once”
...
Loosen guarantees about how many times closure arguments are getting called, so that e.g. insertions of zero items do not necessarily need to call their callback with an empty OutputSpan.
(For these array types we can reinstate the guarantee later, if it turns out to be important/useful. However, the generalized primitives will need to allow their callbacks to get called an arbitrary number of times, and it seems useful to establish that (at least partially) with these simple array types too.)
2026-02-04 10:09:00 -08:00
Karoy Lorentey
99da8a72e0
[BasicContainers] RigidArray, UniqueArray: Add formIndex(before:)
2026-02-03 15:10:11 -08:00
Karoy Lorentey
030f751515
[BasicContainers] RigidArray, UniqueArray: Fill out missing indexing APIs
2026-02-03 14:06:03 -08:00
Karoy Lorentey
1e310e2908
[BasicContainers] RigidArray, UniqueArray: Rename copy() → clone()
2026-02-03 13:20:48 -08:00
Karoy Lorentey
3d4423f33e
[BasicContainers] RigidArray, UniqueArray: Gather all public initializers into the same source file
2026-02-03 13:20:09 -08:00
Karoy Lorentey
0c376aceb6
[BasicContainers] Move array implementations into subdirectories
...
(This sets the stage for more data structures in BasicContainers)
2026-02-03 13:05:03 -08:00
Karoy Lorentey
80b8a6fb80
Use the OutputSpan workaround everywhere
2026-01-29 15:35:35 -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
e8d53861ae
Move OutputSpan.wUMBP workaround to ContainersPreview, and use it there, too
2026-01-29 11:36:52 -08:00
Guillaume Lessard
1fe2fb03a8
rearrange horribleness to insert preconditions
...
(cherry picked from commit 085fc446b1bf449c5eedf4754bcc5f17c5fe7c42)
2026-01-29 11:26:42 -08:00
Guillaume Lessard
bcbee23816
use the horrible replacement
...
(cherry picked from commit 3f38800c5abd3fa7decf813e8421b4421ec1dd72)
2026-01-29 11:26:31 -08:00
Guillaume Lessard
942cfbfd68
Add temporary workaround for broken OutputSpan.wUMBP in current toolchain snapshots
...
(cherry picked from commit 0b1ff87d6773fe568945d8af86a236dbbf9157d9)
2026-01-29 11:26:13 -08:00
Karoy Lorentey
b186c82bb8
Merge branch 'inlinable-deinits' into all-hands-on-deque
2026-01-26 12:31:38 -08:00
Karoy Lorentey
4c9a0da7f1
Update CMake configuration
2026-01-26 12:31:36 -08:00
Karoy Lorentey
9a4ee93406
Simplify some RIgidArray operations
2026-01-26 11:18:59 -08:00
Karoy Lorentey
f496dcfb61
Flesh out UniqueDeque operations
2026-01-26 11:18:59 -08:00
Karoy Lorentey
fdaf3fe24c
[RigidArray, HashTrees] Mark deinitializers inlinable
2026-01-26 10:22:59 -08:00
Karoy Lorentey
e4aba4c1c9
Iterable → BorrowingSequence, BorrowIterator → BorrowingIterator
2026-01-25 16:42:37 -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
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
e84db1974d
[RigidDeque] Update removals
2026-01-08 13:11:52 -08:00
Karoy Lorentey
5943e6eb5c
[RigidDeque] Flesh out insertions
2026-01-07 17:46:25 -08:00
Karoy Lorentey
54494e1c98
[RigidDeque] Flesh out prepend methods
2026-01-06 15:14:07 -08:00
Karoy Lorentey
722ed6ae90
[RigidDeque] Flesh out append methods
2026-01-05 18:29:31 -08:00
Karoy Lorentey
ccb6059969
Update docs
...
Final documentation pass
2025-09-29 09:23:00 -07:00
Karoy Lorentey
8df8ae3537
More doc updates
2025-09-28 22:56:02 -07:00
Karoy Lorentey
9cf2cf254a
Update RigidArray API docs
2025-09-27 17:26:13 -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
174efda735
RigidArray/UniqueArray: Final API cleanup pass
...
- Set availability to match Span availability
- Split implementation into multiple source files
- Add OutputSpan-based primitives that can be the bases of all append/insertion/replaceSubrange variants
- Add the ability to consume a subrange of items using an InputSpan
- Add bulk copying operations generic over the new Container protocol
2025-09-26 18:39:56 -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
7a4e26b4c3
Renaming: DynamicArray → UniqueArray; ArrayModule → BasicContainers
2025-09-04 15:26:13 -07:00