spec: accept RFC 0006 and integrate effects and capabilities
- spec 05 §9-§12: flat effects, checking rule, capability model, instantiation by parameter name, lifetime, fallible narrowing, intrinsic calls, runtime - spec 07 §8.9, 07a (cap.narrow, intrinsic, run result), 08 stage order, 11 not_instantiated outcome - new reference/effects.md and reference/capabilities.md (kinds, scopes, built-in cap_error) - features effects and capabilities published - Q-011, Q-012 resolved
This commit is contained in:
1 parent
3fd1513c86
commit
fb4338cea6
10 files changed
+245
-13
No files matched your search
@@ -16,8 +16,8 @@ Status values: `open`, `resolved`.
|
||||
| Q-008 | resolved | P0 | How `hello` writes output before capabilities exist |
|
||||
| Q-009 | resolved | P1 | Borrow lifetimes in AIR |
|
||||
| Q-010 | resolved | P1 | Region generation checks: static, dynamic, or both |
|
||||
| Q-011 | open | P2 | Effect hierarchy and discharge |
|
||||
| Q-012 | open | P2 | Capability representation and host instantiation |
|
||||
| Q-011 | resolved | P2 | Effect hierarchy and discharge |
|
||||
| Q-012 | resolved | P2 | Capability representation and host instantiation |
|
||||
| Q-013 | open | P3 | Deterministic `select` rule and scheduler seed |
|
||||
| Q-014 | open | P3 | `Send`/`Share` derivation for aggregates holding capabilities |
|
||||
| Q-015 | open | P5 | Operational weak-memory model for the interpreter |
|
||||
@@ -95,10 +95,14 @@ Spec 03 §8.1 allows removing generation checks "when statically proven unnecess
|
||||
|
||||
Spec 05 §2 lists effects such as `atomic` and `atomic.weak`, `io.write` and `fs.write`. Undecided: whether effects form a hierarchy (does `atomic` cover `atomic.weak`?), and what a "verifier-recognized boundary" that discharges an effect is.
|
||||
|
||||
**Resolved (RFC 0006):** effects are flat atoms from a closed registry; no implication and no discharge in format 0; function pointer types must carry effect sets (spec 05 §9).
|
||||
|
||||
## Q-012 — Capability representation and host instantiation
|
||||
|
||||
Binary AIR has a `CAPABILITY_TABLE` (spec 07 §6). Undecided: how capabilities appear in text AIR, how an entry point declares the capabilities it needs, how the host/interpreter grants them, and how narrowing (spec 05 §4) is expressed.
|
||||
|
||||
**Resolved (RFC 0006):** `cap<K>` is an opaque, copyable reference to a shared host authority object; it enters only as a named `@main` parameter bound by `--grant name=kind[:scope]`; `cap.narrow` is the only, fallible, transformation; failed instantiation is `not_instantiated` (exit 6) (spec 05 §10).
|
||||
|
||||
## Q-013 — Deterministic `select` and scheduler seed
|
||||
|
||||
Spec 04 §14 and spec 11 §6 require a stable rule in deterministic mode but do not define it. Also undecided: scheduler seed format and which choice points are recorded.
|
||||
|
||||
Reference in new issue
Block a user