spec: accept RFC 0011 and integrate structured tasks
spec 04 §33-§36 (tasks, loans, Send/Share table, scheduler with separate schedule seed, quantum, task limit); spec 02 §6, 07a, 08, 11 updated; tasks published, task_transfer and task_borrow_returns reserved; Q-014 resolved; bundle gains the task sections
This commit is contained in:
1 parent
1eb446eedb
commit
2289917af3
9 files changed
+158
-6
No files matched your search
@@ -44,7 +44,9 @@ Declaring `features [capabilities, effects, ownership]` grants no authority. It
|
||||
| `resource_joins` | reserved | — | `capabilities`, `effects`, `ownership`, `resources` | joins whose incoming edges carry different resource states (spec 06 §6.3); unscheduled |
|
||||
| `resources` | published | 2 | `capabilities`, `effects`, `ownership` | linear resources `file<read>`, `file<write>`, `file<append>`, `listener`, `stream`; built-in `io_error`; I/O intrinsics (spec 06 §6–§7, `reference/intrinsics.md`) |
|
||||
| `sync` | reserved | 3 | `ownership` | `Mutex<T>`, `RwLock<T>`, linear guards |
|
||||
| `tasks` | reserved | 3 | `ownership` | structured task scopes, spawn/join/cancel, `Send`/`Share` |
|
||||
| `tasks` | published | 3 | `ownership` | `scope`, `task<T>`, `task.*`, loans, `Send`/`Share`, deterministic scheduler (spec 04 §33–§36) |
|
||||
| `task_borrow_returns` | reserved | — | `ownership`, `tasks` | spawned functions returning borrows; unscheduled |
|
||||
| `task_transfer` | reserved | — | `ownership`, `tasks` | `scope` and `task<T>` as parameters, return types, aggregate members or heap contents; unscheduled |
|
||||
| `unsafe` | published | 2 | `arrays`, `effects`, `ownership` | `assume`, `borrow.index.unchecked`, the `trusted` boundary, the effect `unsafe` (spec 13 §6–§8) |
|
||||
|
||||
`capabilities` depends on `effects` so that every module that can perform an external operation is also effect-checked.
|
||||
|
||||
Reference in new issue
Block a user