1327 Commits
Author SHA1 Message Date
Karoy Lorentey 7b847a3b70 Merge pull request #525 from apple/interim-1.3-branch
One last round of documentation updates
1.3.0
2025-09-29 10:01:27 -07:00
Karoy Lorentey ccb6059969 Update docs
Final documentation pass
2025-09-29 09:23:00 -07:00
Karoy Lorentey bf71f06667 Merge pull request #524 from apple/interim-1.3-branch
More release preparations for 1.3.0
2025-09-29 00:50:24 -07:00
Karoy Lorentey 68eca94124 RigidArray: Fix discrepancy between adjusted copy() behavior and its test 2025-09-29 00:17:58 -07:00
Karoy Lorentey aae7896e3b Merge branch 'release/1.2' into interim-1.3-branch
# Conflicts:
#	cmake/modules/PlatformInfo.cmake
2025-09-28 23:06:30 -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 c6cc6ed150 Add some rudimentary docs to Box 2025-09-27 16:05:25 -07:00
Karoy Lorentey e5577bb12b Update DocC documentation 2025-09-27 16:05:12 -07:00
Karoy Lorentey c185d8dfbc Update Swift Package Index configuration 2025-09-27 13:28:45 -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 987ae0b5c3 run-benchmarks.sh: Invoke swift through xcrun on Darwin 2025-09-27 11:51:52 -07:00
Karoy Lorentey f8ce8fe58b [CMake] fix invalid comment syntax 2025-09-26 23:56:06 -07:00
Karoy Lorentey bdfaffbba6 Merge pull request #505 from Steelskin/fabrice/main-build-install-swift-libraries-arch-folder
build: Install libraries in an `arch` sub-folder
2025-09-26 23:51:16 -07:00
Karoy Lorentey de074f2c4d Merge pull request #523 from apple/interim-1.3-branch
Prepare for tagging 1.3.0
2025-09-26 23:29:55 -07:00
Karoy Lorentey f4d851a739 Disable CI testing with Xcode 26 for now
SwiftPM’s command line test runner is unable to load the Span backdeployment library (libswiftCompatibilitySpan.dylib) when trying to execute tests for the new modules (BasicContainers, ContainersPreview and TrailingElementsModule) on older macOS releases.

I see no obvious way to work around this.
2025-09-26 22:44:36 -07:00
Karoy Lorentey 3a4dba97b5 Don’t set TrailingElementsModule as a dependency of Collections
We are not reexporting this from the top-level `Collections` module.
2025-09-26 22:38:18 -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 5cc7f613d6 Update README 2025-09-26 22:38:18 -07:00
Karoy Lorentey 76c643222f Update CMake config 2025-09-26 22:38:18 -07:00
Karoy Lorentey 097ea09b6a Update Collections.xcodeproj 2025-09-26 22:38:17 -07:00
Karoy Lorentey 31d3abcc22 Reindent TrailingElementsModule 2025-09-26 22:38:16 -07:00
Karoy Lorentey 346934794a Add package-wide source file header to TrailingElementsModule components 2025-09-26 18:53:13 -07:00
Karoy Lorentey db092b7de9 Disable container preview trait while we’re debugging a runtime crash 2025-09-26 18:40:00 -07:00
Karoy Lorentey 2ae7f11ecf Add draft version of borrowable Container protocol 2025-09-26 18:40:00 -07:00
Karoy Lorentey 155a8a010e InputSpan: Set availability to be consistent with other Span types 2025-09-26 18:40:00 -07:00
Karoy Lorentey 62ba5cf1ee Disable struct Shared for now 2025-09-26 18:39:59 -07:00
Karoy Lorentey 89c7e027ec struct Inout → struct Mut 2025-09-26 18:39:59 -07:00
Karoy Lorentey c0943d7658 struct Borrow → struct Ref 2025-09-26 18:39:59 -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
Alejandro Alonso 377d2a55a8 Fix landing page of collections documentation 2025-09-24 23:21:02 -07:00
Alejandro Alonso 0374dfc621 Merge pull request #517 from Azoy/renaming-to-xcodeproj
Add BasicContainer rename to xcodeproj
2025-09-18 11:59:30 -07:00
Alejandro Alonso 90934a152b Add BasicContainer rename to xcodeproj 2025-09-18 11:19:20 -07:00
Karoy Lorentey c5059a58aa Merge pull request #516 from lorentey/container-previews-1
Containers: Naming updates, minor tweaks
2025-09-17 15:59:29 -07:00
Karoy Lorentey 6340fa0e9b Add an unavailable Box on prior Swift toolchains 2025-09-17 12:51:50 -07:00
Alejandro Alonso 1fd30364b5 Merge pull request #515 from Azoy/trailing-xcodeproj
[Xcode] Add trailing elements to xcodeproj
2025-09-16 09:48:58 -07:00
Alejandro Alonso 101bac2d30 Add trailing elements to xcodeproj
asdasd
2025-09-15 18:27:47 -07:00
Guillaume Lessard 4cfab5d3f1 Merge pull request #513 from DougGregor/trailing-elements
Add "trailing elements" module with facilities for tail-allocated storage
2025-09-12 15:11:22 -07:00
Doug Gregor 43367db377 [TrailingArray] Handle trailing arrays where the element has greater alignment than the header
When this happens, we over-allocate and use the alignment of the
elements, and then move the start of the header after the point of
allocation such that the properly-aligned elements follow it
immediately.
2025-09-12 11:23:07 -07:00
Guillaume Lessard cb5b73104c [actions] exclude Xcode 26 beta 6
This version of Xcode includes SDKs that don’t support backdeployment of `Span` and friends. This is fixed in Xcode 26 17A321 released on September 9th.
2025-09-12 10:49:07 -07:00
Doug Gregor aa36f635ad Rename PaddedStorage to TrailingPadding 2025-09-08 18:59:45 -07:00
Doug Gregor e08ba6087d [TrailingElementsModule] Rename "takePointer" to "leakStorage", which is more descriptive 2025-09-08 18:56:51 -07:00
Doug Gregor b6208a9836 Rename IntrusiveManagedBuffer to TrailingArray 2025-09-08 18:54:48 -07:00
Doug Gregor ad56b1c8c4 [TrailingElementsModule] Underscore internal, ABI-exposed stored properties 2025-09-08 18:52:47 -07:00
Doug Gregor 2e7fb3e12a Add "trailing elements" module with facilities for tail-allocated storage
Introduce new types `IntrusiveManagedBuffer` and `PaddedStorage` that
consist of a fixed-sized header followed by variable-sized storage. The
design of these types is inspired by the existing `ManagedBuffer` type
in the standard library, but has been adjusted both to make them
non-copyable and to eliminate the requirement for heap allocation.
2025-09-05 15:52:27 -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
Karoy Lorentey b5fc030a8e Merge pull request #508 from lorentey/container-previews-1
First round of noncopyable constructs: `Box`, `RigidArray`, `DynamicArray`
2025-08-29 18:23:24 -07:00
Karoy Lorentey 5cd51978a4 [Arrays] Use _assumeNonNegative on capacity properties
I’m not convinced this has a real effect, but.
2025-08-29 17:13:34 -07:00
Karoy Lorentey 3ff65774bd [DynamicArray] Reduce growth factor to 1.5 2025-08-29 17:12:19 -07:00