Karoy Lorentey
d4946c5dcb
Remove obsolete language checks
2025-05-20 15:12:32 -07:00
Karoy Lorentey
0f73f0ace7
Merge branch 'release/1.2'
...
# Conflicts:
# .github/workflows/pull_request.yml
# .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
2025-05-20 11:13:32 -07:00
Karoy Lorentey
5e3a056312
Prerelease updates
2025-05-16 16:55:09 -07:00
Karoy Lorentey
a09d7cdf45
Drop support for the Swift 5.9.* toolchains
2025-05-16 13:05:36 -07:00
Karoy Lorentey
d5f3b81e69
[Heap] removeAll(where:): Fix exception safety
2025-05-16 00:25:57 -07:00
Dakshin Devanand
027b92153b
Add Heap.removeAll(where:)
2025-05-16 00:25:42 -07:00
Karoy Lorentey
60746986d8
[Heap] Fix remaining tie break inconsistency in popMax
2025-05-16 00:25:35 -07:00
Karoy Lorentey
6950b7e77d
[Heap] Follow the spelling of stdlib’s min/max; add note explaining expectations
...
The existing expressions had the same effect, but they used different operators (`<=` instead of `<` and `>` instead of `>=`). The distinction is usually irrelevant, but there is no reason not to just follow what the stdlib is doing exactly.
2025-05-16 00:25:18 -07:00
Evan Wilde
4467318e2f
Use full module triple for swift modules
...
Install swiftmodules with the full module triple expected by the
compiler instead of attempting to compute the correct architecture name
in CMake.
2025-05-16 00:24:43 -07:00
3405691582 and Karoy Lorentey
29cdb59bf9
Update Sources/HashTreeCollections/HashNode/_HashTreeStatistics.swift
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2025-05-16 00:21:38 -07:00
3405691582
8bbbe287c3
ManagedBuffer.capacity is unavailable on OpenBSD.
...
ManagedBuffer.capacity depends on malloc introspection (e.g.,
`malloc_size`), which is not available on this platform -- and is thus
marked as such.
Here, _HashNode.Storage is a ManagedBuffer. Thankfully, the uses of
.capacity are fairly limited: one for statistic purposes, which we just
completely omit on the platform, and the other, setting a minimum
capacity in the header by the buffer's .capacity; the alternative being
setting that minimum capacity directly.
2025-05-16 00:21:24 -07:00
Dakshin Devanand
0495c7b6a1
Make Heap._UnsafeHandle min/maxValue tie-breaker consistent with Swift.min/max
2025-05-16 00:19:24 -07:00
Peter Meyers
3fb4855e0e
[OrderedSet] Add OrderedSet.appending(contentsOf:)
2025-05-16 00:16:00 -07:00
Karoy Lorentey
dbc2866bb5
[Heap] removeAll(where:): Fix exception safety
2025-05-15 21:39:55 -07:00
Dakshin Devanand
c7c38028cd
Add Heap.removeAll(where:)
2025-05-15 21:39:50 -07:00
Karoy Lorentey
ace6afa65b
Merge pull request #455 from DakshinD/heap-max-func
...
Align Heap._UnsafeHandle min/maxValue tie-breaking with Swift.min/max
2025-05-15 21:08:49 -07:00
Karoy Lorentey
225159599d
[Heap] Fix remaining tie break inconsistency in popMax
2025-05-15 17:34:16 -07:00
Karoy Lorentey
d93a6ab8a1
[Heap] Follow the spelling of stdlib’s min/max; add note explaining expectations
...
The existing expressions had the same effect, but they used different operators (`<=` instead of `<` and `>` instead of `>=`). The distinction is usually irrelevant, but there is no reason not to just follow what the stdlib is doing exactly.
2025-05-15 17:30:25 -07:00
Karoy Lorentey
e63f444a26
Merge pull request #456 from 3405691582/nocapacity
...
ManagedBuffer.capacity is unavailable on OpenBSD.
2025-05-15 14:57:30 -07:00
Karoy Lorentey
42fd02dd1a
Merge pull request #452 from pm-dev/ordered-set-appending
...
[OrderedSet] Add `OrderedSet.appending(contentsOf:)`
2025-05-15 14:19:55 -07:00
Karoy Lorentey
0bd8dec08b
Reimplement _specialize(_:for:) for the 5.9 stdlib
2025-05-14 16:40:25 -07:00
Evan Wilde
a7fec81fc4
Use full module triple for swift modules
...
Install swiftmodules with the full module triple expected by the
compiler instead of attempting to compute the correct architecture name
in CMake.
2025-05-12 20:34:02 -07:00
3405691582 and Karoy Lorentey
25509c0b88
Update Sources/HashTreeCollections/HashNode/_HashTreeStatistics.swift
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2025-05-02 17:04:54 -04:00
3405691582
9523b6a85d
ManagedBuffer.capacity is unavailable on OpenBSD.
...
ManagedBuffer.capacity depends on malloc introspection (e.g.,
`malloc_size`), which is not available on this platform -- and is thus
marked as such.
Here, _HashNode.Storage is a ManagedBuffer. Thankfully, the uses of
.capacity are fairly limited: one for statistic purposes, which we just
completely omit on the platform, and the other, setting a minimum
capacity in the header by the buffer's .capacity; the alternative being
setting that minimum capacity directly.
2025-03-29 13:12:52 -04:00
Dakshin Devanand
5edd1be23c
Make Heap._UnsafeHandle min/maxValue tie-breaker consistent with Swift.min/max
2025-03-08 10:08:39 -06:00
Peter Meyers
e00243217e
[OrderedSet] Add OrderedSet.appending(contentsOf:)
2025-02-20 15:34:04 -05:00
Karoy Lorentey
973459e875
Merge pull request #449 from lorentey/typo-fix-1.2
...
[1.2][OrderedDictionary] fix a typo
2025-02-06 17:57:28 -08:00
김봉균
1cb3ca50a6
fix typo
2025-02-06 17:54:37 -08:00
Fabrice de Gans
99db3179fc
Change file names for toolchain module build
...
This also reverts 40adeb7 , which seems to have been done in error.
2025-02-03 15:42:44 -08:00
Michael Chiu
40adeb7fd7
shouldnot install .swiftdoc as .swiftmodule
2025-01-27 15:13:00 -08:00
김봉균
4450b7c622
fix typo
2025-01-07 11:26:40 +09:00
Karoy Lorentey
2709b96947
Minor code style updates
2024-11-18 13:59:31 -08:00
David Nadoba
13245da5f5
Optimize unspecialized OrderedSet.init and OrderedSet.firstIndex(of:)
2024-11-18 13:59:23 -08:00
Karoy Lorentey
84087c786e
[BTree] Rephrase some comments
2024-10-21 11:03:33 -07:00
Karoy Lorentey
755c06dd88
Adopt _pointerBitWidth
2024-09-25 14:17:32 -07:00
Karoy Lorentey
e4cd17cc53
Remove support code for outdated toolchains
2024-09-25 14:14:48 -07:00
Karoy Lorentey
28f66a0ce5
Mark empty singletons as nonisolated(unsafe)
2024-09-25 14:06:31 -07:00
Karoy Lorentey
09cbf9b271
[_CollectionsUtilities] Fix visibility modifiers in single module mode
2024-09-25 14:02:36 -07:00
Karoy Lorentey
596f00fe91
[_CollectionsUtilities] Delete obsolete compatibility definitions
...
(cherry picked from commit 0d4376d5cd )
# Conflicts:
# 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-09-25 14:02:04 -07:00
LamTrinh.Dev
7f49fa5164
Add more file in Sources/BitCollections/CMakeLists.txt
2024-09-04 18:18:09 +07:00
Guillaume Lessard
0f138be402
remove references to a deleted file
2024-08-19 18:17:03 -07:00
Guillaume Lessard
73f45ac311
[concurrency] conform Deque.Iterator uncheckedly to Sendable
2024-08-19 18:03:24 -07:00
Karoy Lorentey
5dd817c33d
Merge branch 'release/1.1'
2024-08-05 20:10:26 -07:00
Karoy Lorentey
293314a584
Merge pull request #403 from quokkaKyu/release/1.1
...
add 'final' keyword to class
2024-07-18 14:38:35 -07:00
Karoy Lorentey
5e1fe6e8f0
[BigString] Fix accidentally quadratic BigString.init
...
When ingesting a `String` instance, `BigString` assumes that the input string has a reasonably efficient UTF-8 view.
Unfortunately, that is very much not the case when the input happens to be backed by a bridged NSString object — it appears that in this case, the ingester loop invokes some operation(s) with linear complexity in the size of the entire input, rendering the ingester’s overall complexity quadratic.
The BigString ingester is only expected to operate within a single chunk at the time. It’s unclear precisely which operation triggers the quadratic behavior; ideally we should figure it out and resolve it with a more targeted fix.
In the meantime, a blunt stopgap fix is to force-transcode the input string to UTF-8 at the time the ingester is initialized. This unnecessarily wastes some (temporary) memory on holding the transcoded string, but it avoids the quadratic cliff.
2024-07-15 13:13:44 -07:00
quokkakyu
6b8276e252
add 'final' keyword to class
2024-07-15 09:27:27 +09:00
Jeremy Schonfeld
3d2dc41a01
[CMake] Reduce the size of the _FoundationCollections module ( #395 )
2024-07-08 11:23:21 -07:00
Jeremy Schonfeld
3e120b48bb
[CMake] Reduce path lengths in single-module build ( #392 )
...
* Eliminate relative paths from the cmake single-module build
* Attempt to reduce length of paths in single module build
2024-06-26 08:39:11 -07:00
Jeremy Schonfeld
af8349c392
Install the foundation toolchain module during the static swift build ( #391 )
2024-06-18 15:09:16 -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