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:
1 parent
7d8f147d1d
commit
ca84ab4348
10 files changed
+346
-224
No files matched your search
@@ -269,6 +269,12 @@ Types `scope` and `task<T>` (linear, function-bound), instructions `task.scope.b
|
||||
|
||||
Every terminator of these features follows spec 07 §8.2: each named target receives exactly the parameters its contract lists.
|
||||
|
||||
## Features `islands`, `arc`
|
||||
|
||||
`islands`: types `island<T>`, `frozen<T>`, `iref<T>`, instructions `island.create`, `island.alloc`, `island.root`, `island.borrow`, `island.freeze`, `island.destroy`, `frozen.root`, `frozen.borrow`, `frozen.release`, `iref.eq`; `IslandSafe`, identity and `T0010`: spec 03 §22–§23.
|
||||
|
||||
`arc`: type `arc<T>`, instructions `arc.from_frozen`, `arc.new`, `arc.clone`, `arc.release`, `arc.root`, `arc.borrow`; `ArcSafe` and the quota lifecycle: spec 03 §24.
|
||||
|
||||
## Run result
|
||||
|
||||
`aji run` executes the function `@main`, whose parameters MUST all be capabilities, bound by name at instantiation (spec 05 §10.2); without the `capabilities` feature it takes no parameters. On return it reports `{"status":"returned","value":V}` where `V` renders the returned value as JSON:
|
||||
|
||||
Reference in new issue
Block a user