Karoy Lorentey
ecf44620d2
Also disable SortedCollections benchmarks
2025-05-20 15:23:02 -07:00
Karoy Lorentey
0b9f4064b3
Disable SortedCollections module
...
The sorted collection types are not yet ready for production use. Remove them from the package manifest.
Keep the code in place for now, although it will likely make more sense to track their development in a separate feature branch of this package.
2025-05-20 15:13:39 -07:00
Karoy Lorentey
d4946c5dcb
Remove obsolete language checks
2025-05-20 15:12:32 -07:00
Karoy Lorentey
6bcb663b41
Merge pull request #450 from lorentey/merge.release-1.2→main
...
Merge release/1.2 to main
2025-05-20 15:11:35 -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
c180559615
Merge pull request #476 from lorentey/v1.2-fixups
...
Prerelease updates
1.2.0
2025-05-16 19:05:50 -07:00
Karoy Lorentey
e1be57c0f5
Also exclude Swift 5.9 on Windows
2025-05-16 18:28:02 -07:00
Karoy Lorentey
4161e4da0a
Oops, fix thinko
2025-05-16 18:25:20 -07:00
Karoy Lorentey
5e3a056312
Prerelease updates
2025-05-16 16:55:09 -07:00
Karoy Lorentey
578ea312be
Merge pull request #474 from lorentey/avoid-index-description
...
[Rope] Resolve deprecation warnings on `String.Index._description`
2025-05-16 14:06:52 -07:00
Karoy Lorentey
98697da900
Merge pull request #475 from lorentey/drop-5.9
...
Drop support for the Swift 5.9.* toolchains
2025-05-16 13:58:41 -07:00
Karoy Lorentey
a09d7cdf45
Drop support for the Swift 5.9.* toolchains
2025-05-16 13:05:36 -07:00
Karoy Lorentey
c25a388c13
[Rope] Avoid calling String.Index._description
...
On recent enough stdlibs, we can now just print the index directly to get the same effect.
2025-05-16 11:02:52 -07:00
Karoy Lorentey
d3c6642698
Merge pull request #473 from lorentey/cherry-pick-1.2
...
Cherry pick recent PRs destined for 1.2
2025-05-16 01:13:44 -07:00
Karoy Lorentey
d5f3b81e69
[Heap] removeAll(where:): Fix exception safety
2025-05-16 00:25:57 -07:00
Karoy Lorentey
7523978866
[Heap] Add a test for throwing midway through removeAll(where:)
2025-05-16 00:25:50 -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
659120d490
[Heap] Add quick tests for consistent tie breaks
2025-05-16 00:25:26 -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
Evan Wilde
bb73c1cc4a
Remove CMP0091 check
...
CMP0091 was added in CMake 3.15. The minimum version is CMake 3.16 so
we don't need to do the check anymore.
2025-05-16 00:21:50 -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
8349280c51
Add test
2025-05-16 00:16:10 -07:00
Peter Meyers
3fb4855e0e
[OrderedSet] Add OrderedSet.appending(contentsOf:)
2025-05-16 00:16:00 -07:00
Karoy Lorentey
66e29ece4f
Merge pull request #454 from DakshinD/heap-remove-all
...
Add Heap.removeAll(where:)
2025-05-15 23:54:07 -07:00
Karoy Lorentey
dbc2866bb5
[Heap] removeAll(where:): Fix exception safety
2025-05-15 21:39:55 -07:00
Karoy Lorentey
333760bd9c
[Heap] Add a test for throwing midway through removeAll(where:)
2025-05-15 21:39:54 -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
4e48f1d0c6
[Heap] Add quick tests for consistent tie breaks
2025-05-15 17:34:14 -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
f17ad98e30
Merge pull request #471 from lorentey/editorconfig
...
Add .editorconfig
2025-05-15 14:58:18 -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
117a1aad2d
Don’t set a global tab width; indent_width is a fine default for it
...
Still override it to 4 in actual code with indent_size 2, in case we have stray tabs in there somewhere.
2025-05-15 14:15:30 -07:00
Karoy Lorentey
b0020457d5
Merge pull request #472 from lorentey/specialize
...
Reimplement `_specialize(_:for:)` for the 5.9 stdlib
2025-05-15 14:10:06 -07:00
Karoy Lorentey
cb7bb04262
Fix some omissions
2025-05-14 17:20:05 -07:00
Evan Wilde
302b122f61
Merge pull request #470 from etcwilde/ewilde/install-module-triples
...
Install swiftmodules with full module triple
2025-05-14 16:50:47 -07:00
Karoy Lorentey
0bd8dec08b
Reimplement _specialize(_:for:) for the 5.9 stdlib
2025-05-14 16:40:25 -07:00
Karoy Lorentey
79d2904ac7
Add .editorconfig
2025-05-14 16:14:58 -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
Evan Wilde
a9ff98fce6
Remove CMP0091 check
...
CMP0091 was added in CMake 3.15. The minimum version is CMake 3.16 so
we don't need to do the check anymore.
2025-05-12 20:33:56 -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
Karoy Lorentey
9241bc09b9
Merge pull request #453 from apple/add-github-actions-1.2
...
[release/1.2] [CI] Add support for GitHub Actions
2025-03-05 16:31:22 -08:00