rfc: 0014 accepted (revision 2) and integrated into the spec

Owner review: D1-D4, D7-D9 accepted; D5 frozen.release, no thaw; D6
arc.from_frozen (island -> frozen -> arc, one graph identity), ArcSafe
(not Share alone; no arc<mutex>, no nested arc); D7 island Send, not
Share; D10 islands -> heap, arc -> islands; added: never-reused graph
identity, IslandSafe, the quota lifecycle, iref equality.

Integrated: spec 02 §6 (IslandSafe, ArcSafe), 03 §12-§14 and new
§22-§24 (instruction contracts, quota), 04 §13/§35/§38.1, 07a (features
islands, arc), 15 §8 (layer 9 syntax, explicit container borrows),
error codes (T0010, registered in src/diag.zig), type-properties. Phase 4
plan: P4-0, P4-1 done.
This commit is contained in:
dev committed 2026-10-05 21:57:08 +03:00
1 parent 7d8f147d1d
commit ca84ab4348
10 files changed
+346 -224

No files matched your search

+5 -4
View File
@@ -143,9 +143,7 @@ AIR realization: §38 (separate `sender<T>`/`receiver<T>` endpoints, MPSC).
## 13. Island messaging
`Island<T>` is the preferred representation for large mutable messages and object graphs.
Sending an island transfers ownership without exposing shared mutation.
`island<T>` is the preferred representation for large mutable messages and object graphs. Sending an island transfers ownership in O(1) without exposing shared mutation. An immutable graph is shared as `frozen<T>` (lent by `ref`) or `arc<T>` (several owners): spec 03 §12–§14, §22–§24.
## 14. select
@@ -432,6 +430,9 @@ Example: two workers square the two halves of one buffer in parallel; both loans
| `task<T>`, `scope`, `shield`, `guard<T>` | no (`Local`) | no |
| `sender<T>`, `receiver<T>` | yes | no |
| `mutex<T>` | if `T` is | if `T` is `Send` (the lock synchronizes access) |
| `island<T>` | yes | no — its owner may mutate it; freeze to share |
| `frozen<T>`, `arc<T>` | yes | yes |
| `iref<T>` | yes | yes |
| struct, enum, array | if every field/payload/element is | if every field/payload/element is |
So an aggregate holding capabilities is `Send` and `Share` exactly when its other members are (Q-014).
@@ -581,7 +582,7 @@ Endpoints may be block arguments, function parameters and return values, and may
- `T` contains no borrow, `scope`, `task<…>`, `shield` or `guard<…>` (`E1001`);
- `T` contains no `sender<…>` or `receiver<…>`: reserved feature `channel_transfer` (`E0006`).
Linear elements (`own<T>`, `file<…>`, `stream`, …) are allowed.
Linear elements (`own<T>`, `file<…>`, `stream`, `island<T>`, `frozen<T>`, `arc<T>`, …) are allowed.
### 38.2 Instructions