46 Commits
Author SHA1 Message Date
Karoy Lorentey 4160bcb98d [BasicContainers] RigidDictionary, UniqueDictionary: Add debugging methods 2026-03-05 15:33:25 -08:00
Karoy Lorentey ffdc48e67e [BasicContainers] Finalize requirements for hashed containers
- UnstableNoncopyableKeys → UnstableHashedContainers
- Delete the GeneralizedEquatable and GeneralizedHashable protocols, replacing them with the standard generalizations in the 6.4 stdlib
- Require Swift 6.4 for {Rigid,Unique}{Set,Dictionary}.
2026-03-03 16:01:45 -08:00
Karoy Lorentey 978ebeda02 [BasicContainers] Fix spelling of a source file
Renaming `_Htable+Debugging.swift` to `_HTable+Debugging.swift` did not stick — rename the file to `_HTable+Debug.swift` to get rid of the lowercase t for good.
2026-03-02 16:14:20 -08:00
Karoy Lorentey d453fa1816 [BasicContainers] RigidSet: Test bulk insertions 2026-02-27 18:02:40 -08:00
Karoy Lorentey 318ac805ea [BasicContainers] Add Index to hashed containers. Implement dictionary iteration using indices 2026-02-27 12:19:54 -08:00
Karoy Lorentey 4df9b24789 [BasicContainers] Fix typo in filename 2026-02-26 16:10:38 -08:00
Karoy Lorentey e8cbb2f528 [BasicContainers] Make some tiny headway into UniqueDictionary test coverage 2026-02-24 16:48:51 -08:00
Karoy Lorentey 0538000ffd [BasicContainers] Hashed containers: Add Equatable/Hashable conformances and related methods 2026-02-24 16:40:45 -08:00
Karoy Lorentey 0e12c9e748 Update CMake and Xcode build configurations 2026-02-23 14:13:42 -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 d318a65867 [BasicContainers] Add UniqueDictionary 2026-02-19 17:57:34 -08:00
Karoy Lorentey a1902c30aa [BasicContainers] Make _HTable nonfrozen and most of its operations noninlinable
This is a nongeneric type, so it makes sense to see if Swift has matured enough to use opaque/resilient types in high-performance contexts. It would be ideal if the core hash table implementation would remain flexible.

We may need to sprinkle some effect attributes over these.
2026-02-19 17:56:22 -08:00
Karoy Lorentey 099aa3b312 [BasicContainers] Add UniqueSet 2026-02-18 22:05:22 -08:00
Karoy Lorentey bf9a7033a0 [BasicContainers] Add early drafts for RigidSet/RigidDictionary 2026-02-16 17:15:59 -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 030f751515 [BasicContainers] RigidArray, UniqueArray: Fill out missing indexing APIs 2026-02-03 14:06:03 -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 eac10abae2 Stop using @_exported import
- Stop using unstable import attributes with undefined/flaky semantics in package contexts.
- Freeze the contents of the Collections module. Do not make the new RigidDeque/UniqueDeque types from there, at least not yet. Replace reexported types with typealiases, and reexported protocol extensions with redefinitions forwarding to a common implementation in the original module.
2026-01-30 12:07:28 -08:00
Karoy Lorentey 27655b8a92 Update Xcode project 2026-01-26 12:31:37 -08:00
Karoy Lorentey 006ab60c42 Xcode/Collections.xcodeproj: Fix ability to build & test BigString 2025-10-10 15:53:16 -07:00
Karoy Lorentey bb8d566833 Adopt package access modifier and get rid of gybbing 2025-09-29 11:56:14 -07:00
Karoy Lorentey e5577bb12b Update DocC documentation 2025-09-27 16:05:12 -07:00
Karoy Lorentey 097ea09b6a Update Collections.xcodeproj 2025-09-26 22:38:17 -07:00
Alejandro Alonso 90934a152b Add BasicContainer rename to xcodeproj 2025-09-18 11:19:20 -07:00
Alejandro Alonso 101bac2d30 Add trailing elements to xcodeproj
asdasd
2025-09-15 18:27:47 -07:00
Karoy Lorentey fd8eb146ec [TestSupport] Add TestPrintable protocol 2025-08-17 21:18:13 -07:00
Karoy Lorentey b71cc36f2d [TestSupport] Add Container validator and StaccatoContainer
These are precursors for container protocols, referenced by the new array tests
2025-08-17 13:33:41 -07:00
Karoy Lorentey a95daaa253 [ArrayModule] Add (not yet functional) experimental/unstable API 2025-08-17 13:33:40 -07:00
Karoy Lorentey c68a2f924f [ContainersPreview] Add InputSpan 2025-08-17 13:33:40 -07:00
Karoy Lorentey c358154342 [ContainersPreview] Add unstable previews Borrow, Inout, Shared 2025-08-17 13:33:40 -07:00
Karoy Lorentey f679ec91b5 [ArrayModule] Add new module with RigidArray and DynamicArray 2025-08-17 13:33:39 -07:00
Karoy Lorentey b6050e3643 Add _isIdentical, _extracting(first:)/_extracting(last:) as UnsafeBufferPointer extensions 2025-08-17 13:33:29 -07:00
Karoy Lorentey c4433dd90c Add ContainersPreview module with struct Box 2025-08-17 13:33:29 -07:00
Karoy Lorentey a0417c18ea Add unsafe primitives for overriding lifetime dependencies 2025-08-17 13:33:28 -07:00
Karoy Lorentey 0e8dd37073 Box → ClassBox
In preparation of adding the public, noncopyable Box type
2025-08-17 13:33:28 -07:00
Karoy Lorentey 59bc4a4824 Add support for lifetime tracked noncopyable structs 2025-08-17 13:33:27 -07:00
Karoy Lorentey d6dc7df494 Bump required toolchain to Swift 6.0
- Update minimum toolchain version to Swift 6.0.
- Add a separate package manifest for Swift 6.2+.
- Upgrade to Swift 6 language mode.
   - Except in _RopeModule, which has uncovered a language-mode related regression in debug builds.
- Define availability macros.
- Enable the Builtin module.
- For the 6.2+ manifest:
   - Add a new package trait called “UnstableContainersPreview”. This is not yet functional.
   - Enable experimental language features `Lifetimes` and `InoutLifetimeDependence`.
   - Stop supporting COLLECTIONS_SINGLE_MODULE in package builds.
- Update CMake & Xcode configurations to also assume Swift 6.2, reflecting the changes above.
2025-08-17 13:22:46 -07:00
Karoy Lorentey ed81088202 [Xcode] Update Xcode project 2024-09-25 17:01:23 -07:00
Guillaume Lessard 0f138be402 remove references to a deleted file 2024-08-19 18:17:03 -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 8e64f064f5 [Xcode] Update the Xcode project 2024-02-02 22:02:05 -08:00
Karoy Lorentey bd1a622735 [CMake, Xcode] Update buid configurations 2023-10-18 15:54:07 -07:00
Karoy Lorentey 99adbe97af [Xcode] Update Xcode project
- Update to Xcode 14.3
- Update source filelists
- Remove DEFINES_MODULE and related settings — this package does not define a clang module.
2023-04-10 19:15:38 -07:00
Karoy Lorentey c81f73f05a Move build settings from Xcode project into xcconfig files 2023-03-23 16:27:05 -07:00
Karoy Lorentey 0a55894501 Add an Xcode project exercising a monomodule configuration
This is going to ship as is, with no promises about it remaining in future versions. It is going to be a load bearing component of the package, though — just not necessary a stable one.
2023-03-23 13:42:18 -07:00