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
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
14da0b618d
Fix UniqueDeque with COLLECTIONS_INTERNAL_CHECKS
2026-01-26 12:31:37 -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
f496dcfb61
Flesh out UniqueDeque 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
fdaf3fe24c
[RigidArray, HashTrees] Mark deinitializers inlinable
2026-01-26 10:22:59 -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
a617f5e2b1
Don’t use @unsafe/unsafe in code that needs to work on 6.1
2026-01-16 17:32:53 -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
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
16aac1913c
[RigidDeque] Clean up initializers
2026-01-06 15:49:14 -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
4e93bbdb8d
[DequeModule] Move Deque sources to a subdirectory
2026-01-05 16:29:01 -08:00
Karoy Lorentey
ec3fef1899
Merge pull request #549 from AZero13/ok
...
first should get the Initialized elements
2025-12-17 16:16:39 -08:00
Karoy Lorentey
3e306a23f1
Merge pull request #550 from AZero13/typo
...
Typo: symmetric difference should be the xor, not intersection
2025-12-17 16:16:09 -08:00
Karoy Lorentey
4c06858e2c
Merge pull request #551 from AZero13/floyd-typo
...
Change useFloyd heuristic to match comment
2025-12-17 16:15:51 -08:00
Karoy Lorentey
464d529f2a
Merge pull request #553 from AZero13/hash
...
Compare self.value to other, not itself
2025-12-17 16:14:29 -08:00
Nate Cook
ec89f90bd0
Expand RigidDeque test coverage
2025-12-15 10:39:46 -06:00
Karoy Lorentey
8687ef52ea
[BitCollections] Add missing imports for InternalCollectionsUtilities
...
Recent development compiler versions have started emitting errors for previously undiagnosed cases where a conformance in another module is referenced by a source file that does not itself explicitly import that module. Add the missing imports.
2025-12-11 14:49:27 -08:00
Karoy Lorentey
ad17682739
Update Sources/ContainersPreview/InputSpan.swift
2025-12-09 11:21:18 -08:00
AZero13
174b3135c3
Compare self.value to other, not itself.
2025-12-06 13:13:09 -05:00
AZero13
7f8a32c5a9
Change useFloyd heuristic to match comment
...
Comment says exceed, but this checks if it is less than the limit.
2025-12-06 12:58:07 -05:00
AZero13
3534960194
Typo: symmetric difference should be the xor, not intersection
...
Otherwise it is the same as the intersection.
2025-12-06 12:50:59 -05:00
AZero13
1c840e63da
first should get the Initialized elements
2025-12-06 12:41:27 -05:00
Nate Cook
8320ac8215
Add additional API and tests
2025-11-02 14:59:55 -06:00
Alejandro Alonso
3975774393
wip
2025-10-23 15:05:12 -07:00
Alejandro Alonso
de68a98a82
wip
2025-10-16 14:45:22 -07:00
Alejandro Alonso
691855a60f
Bring back _isUTF16TrailingSurrogate
2025-10-14 09:50:14 -07:00
Ben Rimmington
e2e2d00881
[BitSet] Amend return value of update(with:) method
2025-10-14 09:26:56 +01:00
Karoy Lorentey
6b8aa0202c
[RopeModule] Update CMakeLists.txt
2025-10-10 16:01:03 -07:00
Karoy Lorentey
006ab60c42
Xcode/Collections.xcodeproj: Fix ability to build & test BigString
2025-10-10 15:53:16 -07:00
Karoy Lorentey
359726d1c1
Merge pull request #534 from lorentey/fix-warnings
2025-10-02 19:15:33 -07:00