Commit Graph
869 Commits
Author SHA1 Message Date
Guillaume Lessard 6ae687fc31 update span to match stdlib prototype implementation 2024-10-06 10:26:27 -07:00
Guillaume Lessard 98bf179def update CMakeLists.txt 2024-10-06 10:25:43 -07:00
Guillaume Lessard d374c35bdf move OutputSpan-providing extensions to their own file
- and their tests, too
2024-10-06 10:24:55 -07:00
Guillaume Lessard d1bc334b8c add OutputSpan 2024-10-06 10:24:55 -07:00
Guillaume Lessard f18b91b719 fix a bounds-checking detail 2024-10-06 10:24:55 -07:00
Guillaume Lessard fbabfd5d66 improve Span containment functions 2024-10-06 10:24:55 -07:00
Guillaume Lessard c4435876d9 fix iterator test 2024-10-06 10:24:55 -07:00
Guillaume Lessard 8aebaa3ea8 improve RawSpan containment 2024-10-06 10:24:55 -07:00
Guillaume Lessard bd528968fc Span iterator draft 2024-10-06 10:24:55 -07:00
Guillaume Lessard 888318c3a1 Span review feedback 2024-10-06 10:24:55 -07:00
Guillaume Lessard 91506824d0 RawSpan review feedback 2024-10-06 10:24:55 -07:00
Guillaume Lessard 46df103786 add missing stdlib Span extension 2024-10-06 10:24:55 -07:00
Guillaume Lessard 6d0848fc7f improve standard library Span extensions 2024-10-06 10:24:55 -07:00
Guillaume Lessard e261fe68c9 updates to Span 2024-10-06 10:24:55 -07:00
Guillaume Lessard 3fda314bcd updates to RawSpan 2024-10-06 10:24:55 -07:00
Guillaume Lessard 7f13d84dd5 update RawSpan to ~match proposal 2024-10-06 10:24:55 -07:00
Guillaume Lessard c290bd3d04 Copy Span prototype to its own branch 2024-10-06 10:24:54 -07:00
Karoy Lorentey ca0c7a28b9 wip 2024-09-11 05:48:24 -07:00
Karoy Lorentey 3c66dab3b0 [Deque] Turn Deque<T> into a Shared<RigidDeque<T>> 2024-09-01 20:46:43 -07:00
Karoy Lorentey bfbb0f605e [Future] Bovine → Shared 2024-09-01 20:40:04 -07:00
Karoy Lorentey 27ce1d423c [Future] More leading underscores and explicit visibility modifiers 2024-08-19 19:49:59 -07:00
Karoy Lorentey ce97a04842 [Future][NFC] Add missing headers 2024-08-19 19:44:14 -07:00
Karoy Lorentey 0e7c4655be [Future] RigidArray, DynamicArray: Add span properties 2024-08-19 19:44:14 -07:00
Karoy Lorentey 4d38958804 [Future] Add NewArray proof of concept 2024-08-19 19:44:14 -07:00
Karoy Lorentey 68a09aec17 [Future] Add Bovine 2024-08-19 19:44:14 -07:00
Karoy Lorentey af62dcd34f [Future] RandomAccessContainer: Reformulate default impls for Strideable indices 2024-08-19 19:44:13 -07:00
Karoy Lorentey e7a55c8759 [Future] Inout: follow the leading underscore rule 2024-08-19 19:44:13 -07:00
Karoy Lorentey c0802bd93f [Future] Add unsafelyOverrideLifetime(of:to:) 2024-08-19 19:44:12 -07:00
Karoy Lorentey 75aa5b0755 Hypo → Rigid, Dyno → Dynamic
Let’s try these on for size. The greek prefixes work great, but their capitalization looks bad, and they do not interact well with compound names. (`OrderedHyposet`?)
2024-08-12 13:35:42 -07:00
Karoy Lorentey 04bf0cff38 [_CollectionsUtilities] Unsafe[Mutable]BufferPointer: Add some initializeAll overloads 2024-08-07 19:13:12 -07:00
Karoy Lorentey 816fc78827 [_CollectionsUtilities] Add Unsafe[Mutable]BufferPointer._extracting(unchecked:)
Also, use these to spare some unnecessary instructions.
2024-08-07 19:12:05 -07:00
Karoy Lorentey dface3fb37 [Deque] Mitigate some effects of the lack of an empty Deque singleton 2024-08-07 19:10:29 -07:00
Karoy Lorentey 6322ec54a0 [Deque] Disable runtime exclusivity checking for the ivar of the storage class
It turns out the major slowdowns in individual element add/remove operations were mostly caused by runtime exclusivity checking on `Deque._Storage._value`.
2024-08-07 19:09:09 -07:00
Karoy Lorentey 626e24fede [Deque] Add _UnsafeDequeHandle.reallocate(capacity:) 2024-08-06 20:00:27 -07:00
Karoy Lorentey 5d51572d69 [Deque] Stop using ManagedBuffer
Instead, just have a regular class holding a HypoDeque. This requires two allocations per deque, but it makes representation a lot more straightforward.

I do not have a workable solution for empty singletons, though.
2024-08-06 19:17:04 -07:00
Karoy Lorentey f64adedbf4 [Future] _CollectionsUtilities → InternalCollectionsUtilities 2024-08-06 11:33:20 -07:00
Karoy Lorentey a81352a313 [Future] BorrowingIterator: Make copyable; fix nextChunk’s lifetime constraint 2024-08-06 10:50:07 -07:00
Karoy Lorentey 944f4ab1fe [Deque] Delete old _UnsafeHandle type 2024-08-06 10:49:13 -07:00
Karoy Lorentey 3310a4c21c [Deque] Add HypoDeque and DynoDeque 2024-08-06 10:45:21 -07:00
Karoy Lorentey 774be11219 [Future] Add HypoArray and DynoArray 2024-08-06 10:44:12 -07:00
Karoy Lorentey 1a5b0e4981 [Future] Add very early prototype for borrowable containers
- protocol BorrowingIteratorProtocol
- protocol Container
- protocol BidirectionalContainer
- protocol RandomAccessContainer
2024-08-06 10:44:07 -07:00
Karoy Lorentey 6339b9859e [_CollectionsUtilities] Add new buffer pointer operations 2024-08-06 10:44:00 -07:00
Karoy Lorentey 0529df9aee [_CollectionsTestUtilities] Add U[M][R]BP._extracting(first:) and ._extracting(last:)
Also generalize some members to support ~Copyable elements
2024-08-06 10:43:53 -07:00
Karoy Lorentey d58c5b60a5 Merge branch 'main' into future
# Conflicts:
#	Sources/CMakeLists.txt
#	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-08-05 20:31:30 -07:00
Karoy Lorentey 5dd817c33d Merge branch 'release/1.1' 2024-08-05 20:10:26 -07:00
Karoy Lorentey f14a18d7a6 Mark empty singletons as nonisolated(unsafe) 2024-08-05 19:37:20 -07:00
Karoy Lorentey 2359d9a09c [_CollectionsUtilities] Fix visibility modifiers in single module mode 2024-07-31 16:20:18 -07:00
Karoy Lorentey 0d4376d5cd [_CollectionsUtilities] Delete obsolete compatibility definitions 2024-07-29 13:18:25 -07:00
Guillaume Lessard 3847f3ac53 add a description property 2024-07-24 17:04:37 -07:00
Guillaume Lessard 80c67c2eff add identity operator 2024-07-24 17:04:37 -07:00