Karoy Lorentey
2d33a0ea89
Merge pull request #111 from neonichu/fix-aarch64
...
[CMake] Match lowercase "aarch64"
1.0.1
2021-09-14 12:05:08 -07:00
Karoy Lorentey
20784100fd
Merge pull request #112 from lorentey/OrderedSetAlgebra
...
[OrderedSet][doc] Fix thinko
2021-09-14 12:01:03 -07:00
Karoy Lorentey
7f57a0ed1c
[OrderedSet][doc] Fix thinko
2021-09-14 11:50:31 -07:00
Boris Buegling
39a16a15cc
[CMake] Match lowercase "aarch64"
...
Seems like it is also possible for "aarch64" to be spelled lowercase, this fixes building on Ubuntu on arm at least.
2021-09-13 16:30:41 -07:00
Karoy Lorentey
07e47b1e93
Merge pull request #110 from lorentey/burn-again-shell
...
[run-full-tests.sh] Fix bashism: == vs =
1.0.0
2021-09-10 14:10:14 -07:00
Karoy Lorentey
103008aca4
[run-full-tests.sh] Fix bashism: == vs =
2021-09-10 13:57:23 -07:00
Karoy Lorentey
37e15aed66
Merge pull request #107 from lorentey/let’s-table-that
...
[OrderedSet] Don't let the unchecked init create large sets with no hash table
2021-09-10 11:15:36 -07:00
Karoy Lorentey
f69104b507
[OrderedSet] Don't set a default value for the primary initializer's second argument
...
This will hopefully prevent issues like the one fixed in the previous commit from reoccurring in the future.
2021-09-09 16:44:06 -07:00
Karoy Lorentey
e4f62c1520
[OrderedSet] Don't let the unchecked init create large sets with no hash table
...
In debug builds, the `OrderedSet.init(uncheckedUniqueElements:)` initializer always created a set with no hash table, even if it had an element count >15. This is technically an invariant violation (caught by `_checkInvariants()`), although it generally only triggers (very) slow performance. (The set reverts to linear searching.)
2021-09-09 16:44:06 -07:00
Karoy Lorentey
95fa069858
Merge pull request #106 from lorentey/check-please
...
[1.0][OrderedSet] Make _checkInvariants public and call it in more operations
2021-09-09 11:46:12 -07:00
Karoy Lorentey
96100d4b6a
[NFC] Cosmetic/doc updates
2021-09-08 21:12:52 -07:00
Karoy Lorentey
e959a64528
[OrderedDictionary] Add some more _checkInvariants() calls
2021-09-08 21:12:52 -07:00
Karoy Lorentey
1ae008a410
[OrderedSet] Make _checkInvariants public and call it in more operations
...
It seems useful to be able to manually call `_checkInvariants` while debugging a package issue. This is public as in `public`, not public as in Public API -- it's underscored.
2021-09-08 21:12:52 -07:00
Karoy Lorentey
4e4bad9c30
Merge pull request #102 from lorentey/release-prep
...
1.0 release preparations
2021-09-08 11:50:55 -07:00
Karoy Lorentey
8303a77bc2
[Utils] run-full-tests.sh: Add disclaimer about needing to tweak the script sometimes
2021-09-07 14:51:02 -07:00
Karoy Lorentey
227710b76f
Update xcodebuild schemes
2021-09-03 19:40:09 -07:00
Karoy Lorentey
4520853f49
Update README for 1.0
2021-09-03 19:11:29 -07:00
Karoy Lorentey
9adbe3e87b
[docs] Add a release checklist
2021-09-03 19:11:29 -07:00
Karoy Lorentey
9d4bb8cdf8
[OrderedDictionary] Remove deprecated API
...
Mark the deprecated `subscript(offset:)` and `modifyValue(...)` APIs unavailable and replace their bodies with fatalError().
2021-09-03 19:11:29 -07:00
Karoy Lorentey
6fbf995006
[Utils] Add run-full-tests.sh script
...
This script builds and tests the package a tiny fraction of the full support matrix. It's useful for prerelease testing.
2021-09-03 15:58:19 -07:00
Karoy Lorentey
f1f48d569a
[test] CollectionsTestSupport → _CollectionsTestSupport
...
The underscored module name makes it clear that this isn't public API.
2021-09-03 15:57:09 -07:00
Karoy Lorentey
01f1104841
Move development .xcworkspace under Utils/
...
This (undocumented) workspace allows benchmark developers to work on the collection benchmarks and the benchmarking infrastructure within Xcode, with minimal pain. Moving it under Utils/ makes it easier to build the package with the xcodebuild utility; it also makes it (hopefully) clear that the workspace isn't source stable.
2021-09-03 14:20:20 -07:00
ejmarchant
4c22d00065
Follow stdlib's leading underscore rule ( #95 )
2021-08-30 15:44:27 -07:00
Edward Marchant
751ae1b08b
Documentation: Remove in-place mutation comments
2021-08-30 15:44:27 -07:00
Karoy Lorentey
56b82b1b7f
Freeze some types for consistency with their inlinable initializers
...
Note: @frozen does *not* mean that we actually consider these struct types frozen. Their layout may arbitrarily change between even minor releases.
2021-08-30 15:31:12 -07:00
Karoy Lorentey
9d8719c8be
[OrderedDictionary] Deprecate subscript(offset:) for now ( #92 )
...
* [OrderedDictionary] Deprecate index(forKey:), subscript(offset:) and friends for now
* [OrderedDictionary] Update tests
* Update benchmarks
* Un-deprecate index(forKey:)
0.0.7
2021-08-19 19:26:41 -07:00
Karoy Lorentey
0bf9755eb6
Add Benchmarks package to workspace ( #93 )
2021-08-19 19:26:41 -07:00
Karoy Lorentey
1e68069c98
[OrderedDictionary] modifyValue → updateValue ( #91 )
...
* [OrderedDictionary] modifyValue → updateValue
* Update CMakeLists.txt
2021-08-19 19:26:41 -07:00
Karoy Lorentey
6b86e2cf4a
Stop depending on swift-collections-benchmark ( #86 )
...
* Stop depending on swift-collections-benchmark
Instead, move the benchmark suite into its own private nested package, under `Benchmarks/`.
The recommended way to build & run benchmarks is via the `Utils/run-benchmarks.sh` script, which continues to work as before with this change.
* Delete top-level Package.resolved file
# Conflicts:
# .swiftpm/xcode/xcshareddata/xcschemes/swift-collections-benchmark.xcscheme
# Package.swift
2021-08-19 19:26:41 -07:00
ejmarchant
5ff8c003b0
Fix documentation for types conforming to ExpressibleByArrayLiteral or ExpressibleByDictionaryLiteral ( #82 )
...
# Conflicts:
# Sources/PriorityQueueModule/Heap+ExpressibleByArrayLiteral.swift
2021-08-19 19:26:41 -07:00
ejmarchant
85a207063b
Fix typos: missing subscript parameters ( #81 )
...
* Fix typos: missing subscript parameters
* Fix typos: more missing subscript parameters
* Improve symbol documentation
2021-08-19 19:26:41 -07:00
Boris Bügling
0959ba76a1
Add arm64 support to CMake build ( #64 )
...
This is pretty speculative, I just copied the `SwiftSupport.cmake` from swift-argument-parser which seems to have support for arm64.
0.0.5
2021-07-29 19:57:47 -07:00
Karoy Lorentey
3426dba9ee
[test] checkCollection: Don’t pass decreasing indices to distance(from:to:) ( #63 )
...
Also, try running the conformance checkers on the minimal collection types to catch similar issues.
0.0.4
2021-07-08 18:48:48 -07:00
Karoy Lorentey
fa45de1018
Work around another MergeModules crash ( #62 )
...
* [utils] Add utility for shuffling sources to help reproduce MergeModules issues
* [Deque] Collapse Sequence/Collection conformances into a single file
The MergeModules phase in the compiler is broken: it isn’t always able to correctly handle circular dependencies across source files, like the ones that keep organically popping up with Sequence/Collection conformances that are defined in separate files.
Such dependencies sometimes triggers a compiler crash, depending on some (unknown) environmental parameters.
Trying to manually find and eliminate these circular dependencies has not proved productive. Instead, roll all Collection conformances into a single, huge source file.
* [Deque] Update CMakeLists
2021-07-08 17:02:00 -07:00
Karoy Lorentey
4a4aecf0ce
[CMake] swift-collections → SwiftCollections ( #60 )
...
* [CMake] swift-collections → SwiftCollections
This is an integration FIXME for SwiftPM: https://github.com/apple/swift-package-manager/pull/3595#issuecomment-875201764
* [CMake] Generate exports under cmake/modules/SwiftCollectionsConfig.cmake
2021-07-08 11:59:56 -07:00
Andrew Monshizadeh
f1c6cb4a4f
Mark OrderedSetDiffingTests with availability ( #54 )
2021-06-21 10:42:49 -07:00
Rodrigo Kreutz
c0549b6284
Fixing a small typo on quick help documentation. ( #55 )
2021-06-12 12:06:19 -07:00
Vihan
2aeaac76ae
Update invalid OrderedDictionary invariant check. ( #53 )
2021-06-10 10:54:34 -07:00
3405691582
57bbf14270
Changes to support OpenBSD. ( #52 )
...
* [cmake] Support amd64 architecture name.
On OpenBSD, "x86_64" is called "amd64", and therefore recognition of this
name is required for the cmake build.
* [cmake] Add missing file.
This is required since, for example, `Deque+Extras` requires
`_withContiguousStorageIfAvailable_SR14663`.
* ManagedBuffer.capacity is unavailable on OpenBSD.
ManagedBuffer requires nonstandard API to implement `capacity` and
subsequently is unavailable on OpenBSD. For portability, just use
`minimumCapacity` on this platform.
2021-06-01 13:15:07 -07:00
Karoy Lorentey
d45e63421d
[Deque][NFC] Remove unused code ( #49 )
0.0.3
2021-05-27 20:08:42 -07:00
Karoy Lorentey
3358c448bf
[meta] Update dependencies ( #48 )
...
(This only affects local development.)
2021-05-27 19:48:12 -07:00
Karoy Lorentey
b0aa6a55d6
[manifest] Ignore CMake files ( #47 )
...
The package manager doesn’t like it when it finds unexpected non-source files in source directories.
2021-05-27 19:43:58 -07:00
Karoy Lorentey
de5f1e6061
[Deque] Work around stdlib issue with Array.withContiguousStorageIfAvailable ( #44 )
...
Resolves #27 .
2021-05-27 18:59:45 -07:00
Saleem Abdulrasool
4d73202c18
git: ignore vim swap files ( #41 )
2021-05-24 17:45:07 -07:00
Saleem Abdulrasool
689c485dfe
build: add a CMake based build system ( #42 )
...
Add a CMake based build system to enable bootstrapping the toolchain
with the ability to use Swift Collections in SPM.
2021-05-21 19:54:59 -07:00
Vihan
fcb788c79b
Add Xcode template file with license comment. ( #40 )
2021-05-20 20:30:39 -07:00
Karoy Lorentey
f1f0fa8e03
Remove the benchmark product from the package manifest ( #36 )
2021-05-12 09:02:35 -07:00
François Lamboley
f6d8f82627
Replace Index with Int where possible ( #32 )
2021-05-10 16:36:10 -07:00
Saleem Abdulrasool
b91621e0fc
Documentation: remove invalid file characters ( #34 )
...
`:` is not supported on Windows as a valid file name character. Replace
the `:` with `-`.
2021-05-10 10:46:22 -07:00
Michael Steindorfer
fe745fc2e8
[OrderedCollections] Correct spelling of BitsetTests filename ( #29 )
2021-04-29 20:19:51 -07:00