spec: accept RFC 0007 and integrate I/O and linear resources
- spec 06 §6-§7: feature resources, consumption and verifier rules, io_error - spec 05 §11.1 fallible intrinsic form; spec 07 §8.7 frozen built-in enum variants, §8.9 resource types; spec 07a resources and run record fields; spec 11 §8 execution profiles, blocked outcome, result channel - reference/intrinsics.md: formal catalogue; capabilities.md: io_error and fs prefix narrowing - features: resources published, linear_aggregates reserved
This commit is contained in:
1 parent
c7bcea294e
commit
571cc6e362
9 files changed
+199
-83
No files matched your search
@@ -250,6 +250,19 @@ An effectful operation takes its capability as an explicit operand (§11). If th
|
||||
|
||||
This RFC registers no I/O intrinsic yet. RFC 0007 adds the catalogue (console, files, sockets, clock, random) together with the error representation.
|
||||
|
||||
### 11.1 Fallible intrinsics
|
||||
|
||||
Two forms extend RFC 0006 §3:
|
||||
|
||||
```text
|
||||
[%r =] intrinsic <name>(%a…) ; infallible
|
||||
intrinsic <name>(%a…), ok -> @ok, err -> @err ; fallible: a terminator
|
||||
```
|
||||
|
||||
A fallible intrinsic delivers its results as the parameters of `@ok` (count and types per registry; `E5002`/`E1001`) and a single `io_error` to `@err`. The registry says which form each intrinsic has; using the other form is `E1001`. Resource operands consumed by an intrinsic are consumed on both edges.
|
||||
|
||||
The catalogue of intrinsics is [`../reference/intrinsics.md`](../reference/intrinsics.md).
|
||||
|
||||
## 12. Runtime
|
||||
|
||||
- A capability is represented as an index into a host-owned table of (kind, scope) entries. The index is not observable by the program.
|
||||
|
||||
Reference in new issue
Block a user