2028 Commits
Author SHA1 Message Date
Karoy Lorentey 35a1edcb8e Merge pull request #757 from lorentey/work/enable-traits-in-cmake
CMake: Enable UnstableContainersPreview and UnstableHashedContainers by default
1.7.3
2026-10-12 13:35:52 -07:00
Karoy Lorentey e42143e2f4 CMake: Enable UnstableContainersPreview and UnstableHashedContainers by default 2026-10-12 12:59:30 -07:00
Karoy Lorentey ce32cbc5a2 Merge pull request #756 from lorentey/build-config-cleanups
1.7.3: Clean up minor issues in build configuration
2026-10-12 12:44:49 -07:00
Karoy Lorentey 891f7b6b8d Package: Stop enabling obsolete BorrowingSequence feature
Also, don’t enable SuppressedAssociatedTypesWithDefaults below Swift 6.4.
2026-10-12 12:24:56 -07:00
Karoy Lorentey 24339ad6a3 CMake: Remove obsolete references to source variables 2026-10-12 12:24:03 -07:00
Karoy Lorentey d04869f2a6 Merge pull request #755 from hamed75kazemii/fix-replace-subrange-multiple-spans
Copy every source span in replaceSubrange(copying:)
2026-10-12 12:11:47 -07:00
Karoy Lorentey 35aedf3937 Remove unnecessary explanation 2026-10-12 11:29:41 -07:00
hamedandCursor a4f5085a7c Copy every source span in replaceSubrange(copying:).
The replacement callback took a single span and then required the source count to be exhausted, so a container stored in more than one span trapped.

Fixes #751

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-10 22:56:07 +03:30
Karoy Lorentey 935f696a54 Merge pull request #753 from lorentey/cmake-toolchain-revival
Revive configuration for Foundation toolchain module builds
2026-10-08 19:08:02 -07:00
Karoy Lorentey 961043b4b2 Fix _RopeModule’s CMake config in single-module mode 2026-10-08 18:51:51 -07:00
Karoy Lorentey 320dba8df9 [CI] cmake-build: Build in single-module mode and Foundation toolchain module mode 2026-10-08 18:38:24 -07:00
Karoy Lorentey 463946edae ContainersPreview: Adjust import statements in Foundation toolchain module mode 2026-10-08 18:32:47 -07:00
Karoy Lorentey 9cabf522ec CMake: Fix building ContainersPreview as a Foundation toolchain module 2026-10-08 18:32:15 -07:00
Karoy Lorentey e9da0fb277 Merge pull request #752 from parkera/parkera/embedded_bigstring
Build BigString in Embedded Swift - with a custom implementation of grapheme walking instead of using the stdlib
2026-10-08 18:29:51 -07:00
Karoy Lorentey 6c138f92d8 Merge pull request #742 from Joseph-Cursio/sortedcollections-hashable
[SortedCollections] Check the BidirectionalCollection, Equatable and Hashable conformances
2026-10-08 17:33:06 -07:00
Karoy Lorentey 34151d7731 Merge pull request #746 from aniketatgithub/fix-sortedset-sequence-setalgebra
SortedSet: generalize set operations to arbitrary Sequences
2026-10-08 17:31:51 -07:00
Karoy Lorentey 260c04cc17 Merge pull request #749 from kwy404/fix-counted-isequalset-sequence
[BitCollections] Fix BitSet.Counted.isEqualSet(to:) rejecting sequences with duplicates
2026-10-08 17:31:15 -07:00
Tony Parker 500233e8c0 Use _addressString in debug description 2026-10-08 17:28:56 -07:00
Karoy Lorentey 75cd22c7aa Update comments
Co-authored-by: Karoy Lorentey <klorentey@apple.com>
2026-10-08 17:07:58 -07:00
Tony Parker d014985b5f Build BigString in Embedded Swift - with a custom implementation of grapheme walking instead of using the stdlib 2026-10-08 16:41:20 -07:00
Karoy Lorentey c6c659c25a Merge pull request #750 from rksharma-owg/codex/collections-73-heap-permutations
[Heap] Add exhaustive permutations and duplicate-value coverage
2026-10-08 16:29:19 -07:00
Joseph Cursio 13bda5d66d Merge remote-tracking branch 'origin/main' into sortedcollections-hashable 2026-10-08 08:48:15 -05:00
RKS 234e946302 [Heap] Add exhaustive permutations and duplicate-value coverage 2026-10-05 22:39:35 -04:00
kwy404 ea599358e6 [BitCollections] Fix BitSet.Counted.isEqualSet(to:) rejecting sequences with duplicates
The generic `isEqualSet(to: some Sequence<Int>)` overload returned false
whenever `other.underestimatedCount` exceeded `count`. A sequence with
duplicate items can be longer than the set it equals, so
`([1, 2, 3, 4] as BitSet.Counted).isEqualSet(to: [4, 1, 1, 2, 3, 3, 4] as [Int])`
returned false, contradicting the documented behavior.

Forward straight to `BitSet.isEqualSet(to:)`, which already handles
duplicates and keeps the count shortcut for unique collections.
2026-10-02 17:54:38 -03:00
Karoy Lorentey 3b69cedbaa Merge pull request #747 from lorentey/strict-memory-safety
Enable strict memory safety on Swift 6.4
1.7.2
2026-10-01 14:18:10 -07:00
Karoy Lorentey 017f766cb9 Update package manifest for benchmarks
- Bump required toolchain to 6.4
- Add availability macros for 6.4 and 6.5.
2026-10-01 13:41:06 -07:00
Karoy Lorentey 1b936eda0b Disable strict memory safety on older toolchains
It would take too much effort to try to mitigate stdlib differences.

Fix low-hanging warnings, but turn off `.strictMemorySafety` on older toolchains by splitting the package manifest.
2026-10-01 13:40:27 -07:00
Karoy Lorentey 9e7949017a Tests: add unsafe keywords where needed 2026-10-01 11:44:47 -07:00
Karoy Lorentey d07dc32dfa Sources: Add unsafe keywords where needed 2026-10-01 11:14:29 -07:00
Karoy Lorentey 13f71ad927 Enable strict memory safety 2026-09-30 20:40:09 -07:00
Aniket 0d731a673c SortedSet: generalize set operations to arbitrary Sequences
SortedSet's set operations only accepted another SortedSet, so
SortedSet([1, 2]).union(0 ..< 10) did not compile and the type could
not conform to SetAPIChecker.

Add the customary Sequence generalizations for all 13 operations,
keeping the existing Self overloads as the fast path (concrete beats
generic in overload resolution). Arbitrary sequences fall back through
a temporary SortedSet or, for the membership predicates, allSatisfy.

Fixes #743.

Signed-off-by: Aniket <aniketkomailkro@gmail.com>
2026-09-30 03:14:10 -07:00
Karoy Lorentey a5b094974f Merge pull request #745 from lorentey/migrate-from-spi-to-package
Stop using `@_spi` attribute and `@testable import`
2026-09-29 18:51:34 -07:00
Karoy Lorentey c991c8543a Update SortedCollections for un-@testable testing 2026-09-29 18:32:58 -07:00
Karoy Lorentey 0ec72a9532 Stop using @_spi attribute and @testable import 2026-09-29 18:32:55 -07:00
Karoy Lorentey afb6141ea0 Merge pull request #744 from lorentey/separate-containers-preview
[Xcode, CMake]: Build ContainersPreview as a standalone module
2026-09-29 16:24:25 -07:00
Karoy Lorentey 77e71ebc78 Update Xcode Project Build job
Build the `ContainersPreview` scheme in addition to `Collections`.
2026-09-29 15:45:04 -07:00
Karoy Lorentey c410b3cd3a Remove obsolete/disabled APIs 2026-09-29 15:41:06 -07:00
Karoy Lorentey 44b674265c Update import statements 2026-09-29 15:41:05 -07:00
Karoy Lorentey 1be474f795 Xcode, CMake: Spin off ContainersPreview into its own target 2026-09-29 15:41:03 -07:00
Joseph CursioandClaude Opus 5.5 92a1f6184e Check SortedDictionary.SubSequence's Hashable conformance
test_subSequence_Equatable only compared three single-leaf slices with
expectEqual and expectNotEqual. Also run checkHashable, adding empty
slices, equal slices cut from bulk-built and inserted dictionaries, and
ones that differ from them only in a value or only in their keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 23:13:08 -05:00
Joseph CursioandClaude Opus 5.5 7237739c6b Check SortedDictionary.Values's Hashable conformance
test_values_Equatable only ran checkEquatable over single-leaf
dictionaries. Run checkHashable instead, and add a multi-level class
built in bulk and by insertion with different keys but the same values,
plus one that differs in a single value past the first leaf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 23:13:08 -05:00
Joseph CursioandClaude Opus 5.5 a091324030 Check SortedDictionary.Keys's Hashable conformance
test_keys_Equatable only ran checkEquatable over single-leaf
dictionaries. Run checkHashable instead, and add a multi-level class
built in bulk and by insertion with different values, plus one that
differs in a single key past the first leaf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 23:13:08 -05:00
Joseph CursioandClaude Opus 5.5 a7f70f3c9f Check SortedDictionary's Equatable and Hashable conformances
SortedDictionary conforms to Hashable but was never run through
checkHashable. The multi-level dictionary is built both in bulk and by
insertion, so equal dictionaries with different tree layouts must
compare and hash equal; the last two classes differ from it in one key
or one value past the first leaf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 23:13:08 -05:00
Joseph CursioandClaude Opus 5.5 e4c7f6e3d8 Check SortedSet.SubSequence's Equatable and Hashable conformances
SortedSet.SubSequence has its own copy of SortedSet's == and
hash(into:), and neither was tested. Equal slices are taken from
bulk-built and inserted sets, so they start at different leaf offsets;
the last two classes match the evens slice in count and endpoints and
differ only past the first leaf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 23:13:08 -05:00
Joseph CursioandClaude Opus 5.5 fac3148fe7 Check SortedSet's Equatable and Hashable conformances
SortedSet conforms to Hashable but was never run through checkHashable.
Multi-level sets are built both in bulk and by insertion, so equal sets
with different tree layouts must compare and hash equal. The last two
classes match the evens in count and endpoints and differ only past the
first leaf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 17:19:34 -05:00
Joseph CursioandClaude Opus 5.5 973218da0a Check SortedSet's BidirectionalCollection conformance
SortedSet conforms to BidirectionalCollection but was never run through
checkBidirectionalCollection. The counts sit on either side of the sizes
where a debug-build tree gains a level, and each is checked both
bulk-built and built by insertion, since the two give differently shaped
trees.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 17:19:26 -05:00
Karoy Lorentey 98ef3c9860 Merge pull request #740 from lorentey/release-prep
Version 1.7.1 release preparations
1.7.1
2026-09-25 16:44:01 -07:00
Karoy Lorentey a1f0f1411c Update README 2026-09-25 16:01:45 -07:00
Karoy Lorentey 935af54791 [Xcode] Remove obsolete file references 2026-09-25 16:01:42 -07:00
Karoy Lorentey 2ba0f6e59f Merge pull request #739 from lorentey/drop-unused-code
Avoid using `Ref` in Swift 6.4
2026-09-25 15:18:19 -07:00