1327 Commits
Author SHA1 Message Date
Karoy Lorentey ebd51171f0 Merge pull request #464 from lorentey/containers
Add support for older builds of the 6.2 compiler
2025-05-12 15:20:58 -07:00
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 9ab6331b32 Merge pull request #463 from lorentey/containers
RigidArray: Add moving/consuming variants of range-replacement operations
2025-05-02 09:05:41 -07:00
Karoy Lorentey b765db28be RigidArray: Add moving/consuming variants of range-replacement operations 2025-05-01 13:32:46 -07:00
Karoy Lorentey 54afc28f9f Merge pull request #462 from lorentey/containers
Flesh out DynamicArray
2025-05-01 11:06:36 -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 52d7feca29 Merge pull request #461 from lorentey/containers
Flesh out RigidArray even more; add complete test coverage
2025-04-29 14:01:28 -07:00
Karoy Lorentey 3fffe2ad20 Flesh out RigidArray even more; add complete test coverage 2025-04-28 21:55:28 -07:00
Karoy Lorentey 2aec3e867b Merge pull request #460 from lorentey/containers
Flesh out RigidArray; try adding some Container algorithms
2025-04-25 14:06:18 -07:00
Karoy Lorentey 75837a7717 Flesh out RigidArray 2025-04-24 01:14:09 -07:00
Karoy Lorentey 2f6193d9e0 Merge pull request #459 from lorentey/containers
Add first cut of Container conformance validator
2025-04-22 17:58:38 -07:00
Karoy Lorentey 769bc7b07c Disable Deque’s Container conformance to avoid a deserialization crash 2025-04-22 17:57:36 -07:00
Karoy Lorentey 5e963e0542 Enable MemberImportVisibility feature & solve issues uncovered 2025-04-22 17:57:13 -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 f7e73cf891 Merge pull request #458 from lorentey/simplified-containers
Update containers
2025-04-21 11:49:18 -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 8a73c1be08 Revive DequeModule
Lots to do still, but the thing passes tests now
2025-04-17 00:41:05 -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
Karoy Lorentey 6e7c57864b Merge pull request #457 from Azoy/im-bringing-borrow-back
[Future] Introduce Borrow type and use it in Container protocols
2025-04-16 09:56:25 -07:00
Alejandro Alonso c42b4d1ebc some more stuff 2025-04-16 09:50:00 -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 9eaf5260ed Remove Mutable[Raw]Span
These types have landed in the stdlib now.
2025-04-08 15:58:16 -07:00
Karoy Lorentey 800dca7617 Make CMake config more plausible 2025-04-08 14:52:49 -07:00
Karoy Lorentey 9e2fc09c3e Update Span/* to build with current snapshots 2025-04-08 14:48:07 -07:00
Karoy Lorentey 64eab2812b Move Span back under Future 2025-04-08 14:48:05 -07:00
Karoy Lorentey 74bc4d7dee Revive Future/*
Contents are mostly disabled for now
2025-04-08 14:48:02 -07:00
Karoy Lorentey 68d1bfc4f0 Merge branch 'span-prototype' into future 2025-04-07 18:29:14 -07:00
Guillaume Lessard a26fc8e7e4 complete span tests 2025-03-07 09:24:41 -08:00
Guillaume Lessard 98b8b78637 rename two OutputSpan functions 2025-03-07 09:14:32 -08:00
Guillaume Lessard 505d6d5dc4 add unsafe annotations for Span extensions 2025-03-05 15:00:14 -08:00
Guillaume Lessard 4523e7a063 add required unsafe annotations to OutputSpan 2025-03-05 14:38:46 -08:00
Guillaume Lessard 8e76a05f4f annotate slicing examples 2025-03-05 13:56:41 -08:00
Guillaume Lessard 0b96db119e remove unneeded unsafe keywords 2025-03-05 13:56:26 -08:00
Guillaume Lessard eaecf56fbe add required unsafe annotations to MutableRawSpan 2025-03-05 10:15:18 -08:00
Guillaume Lessard cd48e83c46 add required unsafe annotations to MutableSpan 2025-03-05 10:15:18 -08:00
Guillaume Lessard c37a48dff1 enable strict memory safety 2025-03-05 10:15:18 -08:00
Guillaume Lessard 279f795d71 complete MutableSpan tests 2025-03-04 17:00:50 -08:00
Guillaume Lessard 0b4c812e0f add MutableRawSpan tests 2025-03-04 17:00:41 -08:00
Guillaume Lessard e299604433 trim the set of extracting() functions 2025-03-04 17:00:41 -08:00
Guillaume Lessard 91526b4e51 update bulk-copy operations for MutableRawSpan 2025-03-04 16:47:28 -08:00
Guillaume Lessard 6e5b9498ce storeBytes() must be mutating 2025-03-04 16:47:28 -08:00
Guillaume Lessard 81699ed60f test tweaks 2025-02-28 12:11:56 -08:00
Guillaume Lessard 4334415fc0 annotation cleanup 2025-02-28 09:12:24 -08:00