spec: accept RFC 0005 and integrate Phase 1 memory model (P1-1, P1-2)
- RFC 0005 Accepted (revision 2) - spec 07 §8.8 types and syntax; spec 07a contracts for features ownership and arrays; spec 08 §11-§14 borrows, facts, initialization, stage order; spec 03 frame storage, second-class borrows, static region generations - grammar: from-returns, multi-result, new types and opcodes - feature registry: ownership and arrays published; heap added and regions moved to Phase 2; borrow_joins reserved and unscheduled - codes E2105-E2108, T0008 - Q-009, Q-010 resolved; Phase 1 and Phase 2 plans updated; Own test moved to phase 2
This commit is contained in:
15 files changed
+269
-55
No files matched your search
@@ -14,8 +14,8 @@ Status values: `open`, `resolved`.
|
||||
| Q-006 | resolved | P0 | Target description for `usize` and layout in the interpreter |
|
||||
| Q-007 | resolved | P0 | Integer edge cases besides overflow |
|
||||
| Q-008 | resolved | P0 | How `hello` writes output before capabilities exist |
|
||||
| Q-009 | open | P1 | Borrow lifetimes in AIR |
|
||||
| Q-010 | open | P1 | Region generation checks: static, dynamic, or both |
|
||||
| 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-013 | open | P3 | Deterministic `select` rule and scheduler seed |
|
||||
@@ -82,10 +82,14 @@ Phase 0's exit criterion runs AIR `hello`, but `io.stdout_write` needs `cap<io.w
|
||||
|
||||
Spec 03 §4 shows `'a` lifetimes in source; AIR has `borrow.ref`/`borrow.end` but no notation for lifetime relationships across function signatures. Undecided: explicit lifetime parameters in AIR signatures vs scope-based borrows only.
|
||||
|
||||
**Resolved (RFC 0005):** second-class borrows; returns use `from %param`; explicit `borrow.end` with path linearity (spec 07 §8.8, spec 08 §11).
|
||||
|
||||
## Q-010 — Region generation checks
|
||||
|
||||
Spec 03 §8.1 allows removing generation checks "when statically proven unnecessary", implying a dynamic check otherwise; `E2104` implies static rejection. Undecided: which cases are static errors, which compile to runtime checks, and what the runtime failure is.
|
||||
|
||||
**Resolved (owner decision, RFC 0005):** static checks only; no runtime generation checks in safe code (spec 03 §8.1). Specified in detail with `regions` in Phase 2.
|
||||
|
||||
## Q-011 — Effect hierarchy and discharge
|
||||
|
||||
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.
|
||||
|
||||
Reference in new issue
Block a user