Commit Graph
692 Commits
Author SHA1 Message Date
Karoy Lorentey 86bce28835 [docs] Start working on DocC support 2022-10-28 12:34:14 -07:00
Karoy Lorentey bef610feb8 Merge pull request #224 from lorentey/finalize-PersistentCollections
Finalize persistent collections API
2022-10-28 12:32:57 -07:00
Karoy Lorentey a9fd8af830 Merge pull request #225 from lorentey/fix-custom-mirrors
[OrderedSet, BitSet] Fix custom mirror display style
2022-10-28 12:20:49 -07:00
Karoy Lorentey 98d62d236b [PersistentDictionary] More keys diffing APIs; additional documentation & testing 2022-10-28 12:19:08 -07:00
Karoy Lorentey ba7e3927e7 [BitSet] Adjust test for updated mirror display style 2022-10-28 10:40:42 -07:00
Karoy Lorentey d2099dd6cb Merge pull request #226 from lorentey/improve-OrderedSet-initializer
[OrderedSet] Improve sequence-taking initializer
2022-10-28 10:37:15 -07:00
Karoy Lorentey 145e9499f3 Merge pull request #227 from lorentey/Xcode-gardening
[Xcode] Disable implicit dependencies
2022-10-27 18:37:43 -07:00
Karoy Lorentey 68bc6567be [Xcode] Disable implicit dependencies 2022-10-27 18:36:04 -07:00
Karoy Lorentey 207029a613 [OrderedSet] Improve Sequence initializer 2022-10-27 18:32:06 -07:00
Karoy Lorentey 2dae70dba7 [OrderedSet, BitSet] Fix display style of custom mirror 2022-10-27 18:29:32 -07:00
Karoy Lorentey 18a01247a3 [PersistentDictionary] Add missing documentation comments 2022-10-27 18:08:27 -07:00
Karoy Lorentey 57554c65c2 [PersistentDictionary] Add an argument label for init(keys:valueGenerator:) 2022-10-27 18:08:27 -07:00
Karoy Lorentey 6dd3756609 [PersistentDictionary] Remove init(uniqueKeys:values:)
This initializer was interesting for OrderedDictionary, where it made
for more efficient initialization of storage, but it’s less useful for
other dictionary types.
2022-10-27 18:08:27 -07:00
Karoy Lorentey 8a1b16229b [PersistentDictionary] Add initializer taking Self 2022-10-27 18:08:27 -07:00
Karoy Lorentey 1e1decfa6e [PersistentCollections] Tweak DocC docs 2022-10-27 18:08:27 -07:00
Karoy Lorentey d8e8f5cc19 [PersistentDictionary] Tweak docs 2022-10-27 18:08:27 -07:00
Karoy Lorentey 7dd47aa336 [Benchmark] Work on PeristentSet and PersistentDictionary benchmarks 2022-10-27 18:08:27 -07:00
Karoy Lorentey 16687d78af [PersistentSet] Add more tests 2022-10-27 18:08:27 -07:00
Karoy Lorentey 1d2a52779c [PersistentSet] Add missing docs 2022-10-27 18:08:27 -07:00
Karoy Lorentey 84356e58c7 [PersistentCollection] Back out BidirectionalCollection conformance
BidirectionalCollection has the connotation that the ordering
of elements is meaningful, which isn’t the case for PersistentSet
and PersistentDictionary.
2022-10-27 18:08:27 -07:00
Karoy Lorentey 82b7a53960 [PersistentCollections] Categorize member APIs 2022-10-27 18:08:27 -07:00
Karoy Lorentey 3d807118ba [PersistentCollections] Start working on DocC support 2022-10-27 18:08:27 -07:00
Karoy Lorentey 0000ddb00b Merge pull request #223 from lorentey/review-set-operations
Review and finalize (?) binary set operations for 1.1
2022-10-21 20:01:50 -07:00
Karoy Lorentey 72e2df59e3 Update gitignore 2022-10-21 19:49:20 -07:00
Karoy Lorentey 4fcb37f6ac [_CollectionsUtilities] Adjust DictionaryAPIChecker 2022-10-21 19:49:20 -07:00
Karoy Lorentey e3cc498060 [BitSet.Counted] Review, test, fix, and document binary set operations & predicates 2022-10-21 19:49:14 -07:00
Karoy Lorentey 1355d478af [BitSet] Review, test, extend, and document binary set operations 2022-10-21 19:49:07 -07:00
Karoy Lorentey 0914e6f546 [OrderedSet] More test coverage for set operations; clarify docs 2022-10-21 18:24:08 -07:00
Karoy Lorentey 3a07b859e0 [OrderedSet] Split SetAlgebra binary operations into individual files 2022-10-21 18:24:08 -07:00
Karoy Lorentey 648aaa7f56 [PersistentSet] Review, test, fix, and document binary set operations 2022-10-21 18:24:08 -07:00
Karoy Lorentey 4bb2b39175 Merge pull request #222 from lorentey/review-descriptions
Review & update descriptions throughout the package
2022-10-20 18:02:29 -07:00
Karoy Lorentey 2df7f6d3a8 Update xcode schemes 2022-10-20 17:15:21 -07:00
Karoy Lorentey ab750075a2 [PersistentCollections] Add missing Custom[Debug]StringConvertable conformances, review existing ones
Add `Custom[Debug]StringConformance` conformances on:

- `PersistentDictionary.Keys`
- `PersistentDictionary.Values`
- `PersistentDictionary.Index`
- `PersistentSet.Index`
2022-10-20 17:14:52 -07:00
Karoy Lorentey 9cd030f21e [BitSet] Add missing Custom[Debug]StringConvertable conformances, review existing ones
Add `Custom[Debug]StringConvertible` conformance on `BitSet.Index`.
2022-10-20 17:14:52 -07:00
Karoy Lorentey c12b454da1 [Heap] Add missing Custom[Debug]StringConvertable conformances, review existing ones
Add `Custom[Debug]StringConvertible` conformance on `Heap`.
2022-10-20 17:14:52 -07:00
Karoy Lorentey 7143421800 [OrderedCollections] Add missing Custom[Debug]StringConvertable conformances, review existing ones
Add `Custom[Debug]StringConvertible` conformance on:

- `OrderedDictionary.Values`
- `OrderedDictionary.Elements.Subsequence`
- `OrderedSet.SubSequence`
2022-10-20 17:14:52 -07:00
Karoy Lorentey 73f6ddacc0 Merge pull request #221 from lorentey/fix-unusual-build-problems
Fix unusual build problems
2022-10-19 19:47:28 -07:00
Karoy Lorentey 5783b82d72 [PersistentCollections] Fix building with library stability enabled
Building this package with library stability enabled
is entirely unsupported, but let’s add a few @frozen
attributes to fix such builds anyway.

This package is explicitly not ABI stable; the @frozen
attribute does not mean a guarantee to leave
layout unchanged in future revisions.
2022-10-19 19:33:33 -07:00
Karoy Lorentey e74283a2fa [PersistentCollections] Remove BitmapSmokeTests.swift
The underlying code no longer looks like what we had before,
and @testable imports need to be disabled in release builds.

We should be testing internals, but this isn’t carrying much
weight right now.

Also remove a couple of PersistentDictionary smoke tests that
are also relying on @testable.
2022-10-19 19:12:58 -07:00
Karoy Lorentey 51ad2c403e Merge pull request #219 from lorentey/cherry-pick-changes-main→1.1
Cherry pick changes from main to release/1.1
2022-10-19 18:11:02 -07:00
Saleem Abdulrasool 67fdff5a25 Update CMakeLists.txt
Remove missing file.  Thanks to @stevenbrix for identifying this!

(cherry picked from commit 5e0a0149a4)
2022-10-19 17:58:47 -07:00
Karoy Lorentey 56be3ae3fd [PersistentSet] Adjust code after merge 2022-10-19 17:58:47 -07:00
Karoy Lorentey 25fd503fac [PersistentCollections] Fix up code added since c73a8caa originally landed
(cherry picked from commit 4c842df1b8)
2022-10-19 17:58:47 -07:00
Karoy Lorentey bceadab267 [PersistentCollections] Reduce popcount usages where possible
# Conflicts:
#	Sources/PersistentCollections/Node/_Node+Primitive Removals.swift

(cherry picked from commit e153ebf798)
2022-10-19 17:58:46 -07:00
Karoy Lorentey 6b516b72fb [PersistentCollections] Slightly more readable index descriptions
(cherry picked from commit 785caa4a55)
2022-10-19 17:58:46 -07:00
Karoy Lorentey 2e276ba42b [PersistentCollections] Clean up _Node.Builder & removals
This sanitizes the semantics of _Node.Builder, removing
the (unneccessary) need to pass around hash paths.

It also slightly refactors removal operations, but stops short of
implementing node shrinking.

# Conflicts:
#	Sources/PersistentCollections/Node/_Node+Builder.swift
#	Sources/PersistentCollections/Node/_Node+Initializers.swift
#	Sources/PersistentCollections/Node/_Node+Structural intersection.swift
#	Sources/PersistentCollections/Node/_Node+Structural subtracting.swift
#	Sources/PersistentCollections/Node/_Node+Subtree Modify.swift
#	Sources/PersistentCollections/Node/_Node+Subtree Removals.swift
#	Sources/PersistentCollections/PersistentDictionary/PersistentDictionary+Initializers.swift
#	Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra Initializers.swift
#	Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra intersection.swift
#	Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra subtracting.swift

(cherry picked from commit c73a8caad1)
2022-10-19 17:58:46 -07:00
Karoy Lorentey 60bc1ef058 Merge pull request #218 from lorentey/update-CMake
Update CMake configuration
2022-10-19 17:36:38 -07:00
Karoy Lorentey 3c6cb8cd56 Update CMake configuration 2022-10-19 17:35:13 -07:00
Karoy Lorentey 6f986e0dec Merge pull request #217 from lorentey/merge.1.0→1.1
Merge.1.0→1.1
2022-10-19 17:34:06 -07:00
Karoy Lorentey 381cf5d17e Merge branch 'release/1.0' into release/1.1 2022-10-19 15:50:34 -07:00