Commit Graph
78 Commits
Author SHA1 Message Date
Guillaume Lessard c37a48dff1 enable strict memory safety 2025-03-05 10:15:18 -08:00
Guillaume Lessard 8cb5b628ae Rename module to Span 2025-02-21 19:13:48 -08:00
Guillaume Lessard 1d8147baf9 Update MutableSpan and MutableRawSpan 2025-02-21 19:04:51 -08:00
Guillaume Lessard 6ae687fc31 update span to match stdlib prototype implementation 2024-10-06 10:26:27 -07:00
Guillaume Lessard c290bd3d04 Copy Span prototype to its own branch 2024-10-06 10:24:54 -07:00
Guillaume Lessard 6c8dcadca4 swiftLanguageVersion is now swiftLanguageMode 2024-10-02 08:56:09 -07:00
Karoy Lorentey 3310a4c21c [Deque] Add HypoDeque and DynoDeque 2024-08-06 10:45:21 -07:00
Karoy Lorentey 1401648016 [manifest] Adjust name of utilities module 2024-08-06 10:39:23 -07:00
Karoy Lorentey d58c5b60a5 Merge branch 'main' into future
# Conflicts:
#	Sources/CMakeLists.txt
#	Sources/InternalCollectionsUtilities/Compatibility/UnsafeMutableBufferPointer+SE-0370.swift.gyb
#	Sources/InternalCollectionsUtilities/Compatibility/UnsafeMutablePointer+SE-0370.swift.gyb
#	Sources/InternalCollectionsUtilities/Compatibility/UnsafeRawPointer extensions.swift.gyb
#	Sources/InternalCollectionsUtilities/Compatibility/autogenerated/UnsafeMutableBufferPointer+SE-0370.swift
#	Sources/InternalCollectionsUtilities/Compatibility/autogenerated/UnsafeMutablePointer+SE-0370.swift
#	Sources/InternalCollectionsUtilities/Compatibility/autogenerated/UnsafeRawPointer extensions.swift
#	Sources/InternalCollectionsUtilities/Specialize.swift.gyb
#	Sources/InternalCollectionsUtilities/autogenerated/Specialize.swift
2024-08-05 20:31:30 -07:00
Karoy Lorentey e149704930 [RopeModule] Revert to Swift 5 mode 2024-08-05 20:04:38 -07:00
Karoy Lorentey a57ab2acec [manifest] Revert to Swift 5 for the test suite
TestContext is not anywhere near concurrency ready
2024-08-05 19:37:21 -07:00
Karoy Lorentey c1dd7622c4 [manifest] Bump to v6.0 toolchain and language mode
- Enable SuppressedAssociatedTypes to allow experimentation with protocols
- Mark _CollectionsTestSupport as a test dependency on FutureTests
2024-07-31 16:20:16 -07:00
Karoy Lorentey 0d4376d5cd [_CollectionsUtilities] Delete obsolete compatibility definitions 2024-07-29 13:18:25 -07:00
Alejandro Alonso 17194f3e45 Add box and cell 2024-07-02 11:26:22 -07:00
Guillaume Lessard d3dbe2b292 Update Package.swift
tools-version 6.0 requires Xcode 16 beta, which doesn’t correctly handle the nightly post-6.0 toolchains required to compile this branch.
2024-06-14 11:23:54 -07:00
Alejandro Alonso aecceb8d2e Update Package.swift 2024-06-12 14:36:02 -07:00
Alejandro Alonso 908dafa21b Introduce the Inout type 2024-06-12 13:52:12 -07:00
Karoy Lorentey 21264913c5 [manifest] Update name of shared utilities module 2024-06-05 18:35:19 -07:00
Karoy Lorentey ad79ce5b6a Merge branch 'release/1.1'
# Conflicts:
#	.swiftci/5_10_ubuntu2204
#	.swiftci/5_7_ubuntu2204
#	.swiftci/5_8_ubuntu2204
#	.swiftci/5_9_ubuntu2204
#	.swiftci/nightly_6_0_macos
#	.swiftci/nightly_6_0_ubuntu2204
#	.swiftci/nightly_main_macos
#	.swiftci/nightly_main_ubuntu2204
2024-06-05 10:28:47 -07:00
Karoy Lorentey 35d5746117 Rename _CollectionsUtilities to InternalCollectionsUtilities
We are forced to do this due to an Xcode issue (#364) with underscored module names.

This module remains unstable, despite the removal of the underscore. Directly importing it from outside the package remains unsupported. This module and/or its entire contents may go away or change in incompatible ways in any future swift-collections release.
2024-05-29 14:00:13 -07:00
Karoy Lorentey 5316942c30 Add a dummy Future module
This is a temporary staging area for prototyping potential future stdlib additions.

(We do not expect to ship it in any tagged release of swift-collections.)
2024-05-29 13:36:34 -07:00
Karoy Lorentey e004cd36fa Merge branch 'release/1.1' into merge.1.1→main
# Conflicts:
#	CMakeLists.txt
#	README.md
2024-02-07 17:35:40 -08:00
Karoy Lorentey 55db6d936c Remove workaround for SR-14663
Our updated minimum toolchain requirement is Swift 5.7, and the stdlib in that version has the fix included.

We’ve seen reports that the bug may not deploy back in all cases to earlier OS releases, but it still seems worth trying to remove the workaround, as it has some undesirable runtime implications.
2024-01-31 19:34:37 -08:00
Karoy Lorentey 3bc1c3be46 [BitCollections] Update copyright dates 2024-01-30 18:09:37 -08:00
Karoy Lorentey ce8fbb6c5d [Package.swift] Add missing exclude for RopeModule’s CMakeLists 2024-01-30 18:07:33 -08:00
Karoy Lorentey db3bd17b40 [BitCollections] Adopt some instead of classic generic where possible 2024-01-30 18:07:00 -08:00
Karoy Lorentey 1c76be64fd Bump required Swift toolchain to 5.7 2024-01-30 17:56:58 -08:00
Karoy Lorentey 3f4d8f9912 Merge branch 'release/1.1' into 'main'
# Conflicts:
#	Package.swift
2023-04-24 14:24:15 -07:00
Karoy Lorentey 4b6978bf8b Require Swift 5.6
Swift 5.8 is out now, so let’s bump the minimum required toolchain to Swift 5.6. (The package wants to support three major language releases, and now that 5.8 is out, supporting 5.5 would bump that to four.)
2023-04-10 17:08:50 -07:00
Karoy Lorentey a0666cdcce Resolve some leftover build issues 2023-03-23 14:23:45 -07:00
Karoy Lorentey 8a4c842ad3 Disable COLLECTIONS_SINGLE_MODULE by default
Also, remove COLLECTIONS_ENABLE_UNSTABLE_MODULES as it is no longer doing anything.
2023-03-22 22:04:47 -07:00
Karoy Lorentey f17cf642c1 Add support building with COLLECTIONS_SINGLE_MODULE
- Sources/_CollectionsTestSupport → Tests/_CollectionsTestSupport
- Refactor Package.swift to allow switching between the default
   polymodule and the new monomodule product configurations
   (by editing the manifest file).
- Fix build errors in the monomodule variant.
2023-03-22 21:44:23 -07:00
Karoy Lorentey 2453c1bc23 Also generate @usableFromInline attributes, as needed 2023-03-22 20:01:23 -07:00
Karoy Lorentey cbab9e3737 Introduce COLLECTIONS_SINGLE_MODULE condition 2023-03-21 18:42:33 -07:00
Karoy Lorentey 09577a31ee RopeModule→_RopeModule. Stop reexporting it from Collections.
This module is not source stable; mark it as such by prepending
the module name with an underscore.
2023-03-20 16:47:56 -07:00
Karoy Lorentey 79f1e16afd Don’t skip building/testing BitCollections and HeapModule 2023-03-20 16:38:38 -07:00
Karoy Lorentey 975a8902ff Disable modules that haven’t gone through API review yet
These are disabled on the package manifest level.

To locally reenable them, Package.swift needs to be manually edited to enable COLLECTIONS_ENABLE_UNSTABLE_MODULES.

To mark a module as ready for production use, it has to be defined using `registerLibrary` instead of `registerUnstableLibrary`. This can only be done once the module has gone through API review. (Or if it becomes an underscored — i.e., explicitly unstable — module.)
2023-03-20 15:26:11 -07:00
Karoy Lorentey 4849d54675 Add a compile-time conditional for enabling randomized testing, enabled by default 2023-03-20 13:12:14 -07:00
Karoy Lorentey 150a165d73 Add experimental rope implementation 2023-03-20 13:11:21 -07:00
Karoy Lorentey 10a01bd9fb Merge branch 'release/1.1'
# Conflicts:
#	Package.swift
2022-11-30 16:36:22 -08:00
Karoy Lorentey b8ef14f0c0 ShareableHashedCollections → HashTreeCollections 2022-11-28 21:35:37 -08:00
Karoy Lorentey e8fc3ee4cd [PersistentCollections] Rename to SharableHashedCollections
`PersistentSet` → `ShareableSet`
`PersistentDictionary` → `ShareableDictionary`
`PersistentCollections` → `ShareableHashedCollections`
2022-11-07 18:10:16 -08:00
Karoy Lorentey d3987c79a1 Merge branch 'release/1.1'
# Conflicts:
#	Package.swift
#	Sources/PersistentCollections/PersistentSet/PersistentSet+Extras.swift
#	Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra isEqual.swift
#	Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra isStrictSubset.swift
2022-10-19 18:25:48 -07:00
Karoy Lorentey 291623d391 [BitSet] Implement isEqual(to:) family of functions 2022-10-19 01:40:06 -07:00
Karoy Lorentey 51a1554f89 Introduce _UniqueCollection & _SortedCollection
These marker-like protocols will allow certain
generic operations to get a performance boost
if the passed-in value happens to be guaranteed
to contain unique elements or to be sorted.

Also, review API checker protocols for Sets and
sorted collections and adjust things as needed.

BitSet gains custom implementations for min()
and max() as part of these improvements.
2022-10-19 01:40:06 -07:00
Karoy Lorentey 1490835b28 [manifest] Exclude CMakeLists.txt; remove unnecessary path settings; reindent 2022-10-18 20:44:46 -07:00
Karoy Lorentey 5f70117c55 [Heap] Start using _CollectionsTestSupport for testing 2022-10-12 16:30:52 -07:00
Karoy Lorentey b1506b6225 [SortedCollections] Remove for now
These are still on track for 1.2.0, but I’ll need to bump them from
the release/1.1 branch.
2022-10-11 17:55:35 -07:00
Karoy Lorentey 453de13e1c Require a Swift 5.5 toolchain in Swift Collections 1.1.0
It is not tenable to continue supporting ancient toolchains
indefinitely, as each supported toolchain version adds a nontrivial
amount of prerelease testing work. Additionally, working around
bugs in older toolchains that have been long since resolved is not a
productive use of anyone’s time.

Users who are stuck on older toolchains are of course welcome to
continue using the last package release that supports their
platform. (And they may continue to receive bug fix updates, as
we can always tag new bugfix releases on older minor release
branches.)
2022-10-09 16:49:12 -07:00
Karoy Lorentey 33b759b842 [Heap] PriorityQueueModule → HeapModule 2022-10-09 15:44:44 -07:00