30 Commits
Author SHA1 Message Date
Karoy Lorentey 6385ebbe4d More workarounds for crashes in older 6.2 compiler builds 2025-05-02 18:23:22 -07:00
Karoy Lorentey 93c7cd7e2c Add support for older 6.2 compiler builds 2025-05-02 18:18:29 -07:00
Karoy Lorentey fea1d24e7b Flesh out DynamicArray
Also:
- Tweak RigidArray.
- Define some default implementations for Container requirements.
- Beef up ContiguousContainer.
- Add support for testing contiguous access on minimal collections.
2025-04-30 19:41:15 -07:00
Karoy Lorentey 3fffe2ad20 Flesh out RigidArray even more; add complete test coverage 2025-04-28 21:55:28 -07:00
Karoy Lorentey 75837a7717 Flesh out RigidArray 2025-04-24 01:14:09 -07:00
Karoy Lorentey 4540631f75 Add first cut of Container conformance validator
Plus, fix issues that came to light as part of this work.
2025-04-21 18:54:51 -07:00
Karoy Lorentey fd9ee69e0b Make BidirectionalContainer.previousSpan(before:maximumCount:) public 2025-04-21 11:48:14 -07:00
Karoy Lorentey 204531b090 Simplify containers even more 2025-04-18 15:33:14 -07:00
Karoy Lorentey d7768235ef More adjustments 2025-04-17 03:02:33 -07:00
Karoy Lorentey 3d4c79a0a5 Overhaul Container protocols
- Container, MutableContainer: Replace iterator protocols with direct methods that return the next span following a particular index. This is a radical simplification, but it reintroduces some index validation during iteration, and may have undesirable overhead for complex container types.
- RigidArray, DynamicArray, NewArray: Update to reflect changes
- Span: Conform to RandomAccessContainer
- Borrow, Inout: Normalize labels of “owner” parameters. Expose pointers within the package.
- Shared: Normalize read() into borrow()
2025-04-17 00:40:27 -07:00
Alejandro Alonso 35da38de54 Introduce Borrow and use it in Container 2025-04-15 15:57:18 -07:00
Karoy Lorentey 9fc69b4f56 Revive most Container protocols
We cannot express the right subscript requirements yet; make do by requiring hidden members that return (unsafe, escaping) pointers, and provide a default subscript that’s based on unsafe addressors.

This is very unsatisfying, but currently there is no way for a protocol to require subscripts with the right semantics.
2025-04-08 19:25:35 -07:00
Karoy Lorentey f5b053da57 Revive Shared and NewArray
Now that unsafeAddress accessors have the expected semantics, `struct Shared` now appears to be functional! The expected syntax builds without issues, and appears to have the right semantics, although I haven’t tried running anything yet
2025-04-08 18:09:22 -07:00
Karoy Lorentey ea2887fe39 Add (nonfunctional) mutableSpan properties 2025-04-08 17:52:18 -07:00
Karoy Lorentey fd56892438 Revive RigidArray and DynamicArray 2025-04-08 17:27:19 -07:00
Karoy Lorentey 74bc4d7dee Revive Future/*
Contents are mostly disabled for now
2025-04-08 14:48:02 -07:00
Guillaume Lessard 1d8147baf9 Update MutableSpan and MutableRawSpan 2025-02-21 19:04:51 -08:00
Guillaume Lessard 09290768f4 fix lifetime syntax for newer toolchains 2024-11-19 18:14:10 -05:00
Guillaume Lessard 3f6522fef1 post-rebase compatibility fixes 2024-10-06 11:16:43 -07:00
Karoy Lorentey ca0c7a28b9 wip 2024-09-11 05:48:24 -07:00
Karoy Lorentey bfbb0f605e [Future] Bovine → Shared 2024-09-01 20:40:04 -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 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 a81352a313 [Future] BorrowingIterator: Make copyable; fix nextChunk’s lifetime constraint 2024-08-06 10:50:07 -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