Commit Graph
500 Commits
Author SHA1 Message Date
Karoy Lorentey ff2d526c1b [PersistentDictionary] Doc fixes 2022-10-31 17:27:49 -07:00
Karoy Lorentey 7d0d627f44 [PersistentSet] Fix doc typo 2022-10-31 17:20:15 -07:00
Karoy Lorentey 898d3c9a51 [PersistentCollections] Doc & benchmark updates in preparation of API review 2022-10-31 16:45:42 -07:00
Karoy Lorentey 581490a735 [CMake] Update CMakeLists.txts 2022-10-31 15:10:11 -07:00
Karoy Lorentey 8f7d5fd505 [SetAlgebra types] isEqual(to:) → isEqualSet(to:)
The `isEqual(to:)` methods are a bit too confusing — they implement
mathematical set comparisons (ignoring element ordering and, in the
case of the Sequence variant, even element multiplicities), so it
seems better to highlight this by putting a `Set` in the name.
2022-10-31 15:05:12 -07:00
Karoy Lorentey 14e86daeeb [PersistentSet] Iterator.next(): Make inlinable
For a cool 4x performance improvement. 😣
2022-10-31 14:03:49 -07:00
Karoy Lorentey 5e80c92941 Merge pull request #230 from lorentey/update-cmake
Update CMake build configuration
2022-10-28 18:20:21 -07:00
Karoy Lorentey d19fb14c46 [CMake] Update CMake configuration 2022-10-28 18:18:39 -07:00
Karoy Lorentey 1c147e3b06 [Collections] Regenerate docs 2022-10-28 12:35:37 -07:00
Karoy Lorentey aaeeb9e440 [OrderedCollections] Doc updates 2022-10-28 12:34:14 -07:00
Karoy Lorentey b2f254384d [doc] Add some flesh to DocC structure
# Conflicts:
#	Sources/BitCollections/BitCollections.docc/Extensions/BitArray.md
#	Sources/BitCollections/BitCollections.docc/Extensions/BitSet.Counted.md
#	Sources/BitCollections/BitCollections.docc/Extensions/BitSet.md
#	Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.UnorderedView.md
#	Sources/OrderedCollections/OrderedCollections.docc/Extensions/OrderedSet.md
2022-10-28 12:34:14 -07:00
Karoy Lorentey 0120dd1d79 [BitCollections] Categorize member APIs 2022-10-28 12:34:14 -07:00
Karoy Lorentey de22bed429 [OrderedCollections] Update top-level docs 2022-10-28 12:34:14 -07:00
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 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 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 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 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 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
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 3c6cb8cd56 Update CMake configuration 2022-10-19 17:35:13 -07:00
Karoy Lorentey 381cf5d17e Merge branch 'release/1.0' into release/1.1 2022-10-19 15:50:34 -07:00
Karoy Lorentey 734730d724 [OrderedSet] Split SetAlgebra predicates into individual files
This is to match the layout of all the other
SetAlgebra implementations in this package.
2022-10-19 15:20:30 -07:00