Files
aji/docs/reference/effects.md
T
dev 2bbbd2135c rfc: 0015 scalar atomics and the Aji memory model accepted (revision 2) and integrated into the spec
The Aji RC11 profile (RC11 with NO-THIN-AIR; stronger than ISO C11/C++20) as
normative axioms in spec 04 §20; DRF-SC; linear atomic<T> for AtomicScalar
with atomic.new/atomic.take; ref<atomic<T>> operands; ordering tables incl.
cmpxchg failure table and two results; effects [atomic] / [atomic, atomic.weak];
target atomic_widths and E4203; E4202; enumerator as oracle (observed ⊆ allowed,
exact equality on the normative litmus corpus). Feature atomics stays reserved
until P5-2a. Q-015 resolved; record/replay and Q-017 moved to Phase 8.
RFC 0003 superseded. AIR bundle +1.9 %.
2026-10-06 00:30:35 +03:00

29 lines
1.4 KiB
Markdown

# Effect Registry
Normative registry of effect names for AIR format 0 (spec 05 §9). Effects are flat atoms: no effect implies another. In a module that declares the feature `effects`, an unregistered name is `E0004`.
| Effect | Authority required | Introduced by |
|---|---|---|
| `atomic` | none | RFC 0015: every atomic memory operation (spec 04 §25) |
| `atomic.weak` | none | RFC 0015: every atomic access whose ordering is not `seq_cst` (spec 04 §25) |
| `clock.read` | `cap<clock.read>` | RFC 0007 |
| `ffi` | none (unsafe boundary, spec 13) | Phase 7 |
| `fs.read` | `cap<fs.read>` | RFC 0007 |
| `fs.write` | `cap<fs.write>` | RFC 0007 |
| `io.read` | `cap<io.read>` | RFC 0007 |
| `io.write` | `cap<io.write>` | RFC 0007 |
| `mem.alloc` | `cap<mem.alloc>` | RFC 0008 |
| `mem.map` | `cap<mem.map>` | later |
| `net.connect` | `cap<net.connect>` | RFC 0007 |
| `net.listen` | `cap<net.listen>` | RFC 0007 |
| `net.read` | `cap<net.read>` | RFC 0007 |
| `net.write` | `cap<net.write>` | RFC 0007 |
| `process.env` | `cap<process.env>` | later |
| `process.spawn` | `cap<process.spawn>` | later |
| `random.read` | `cap<random.read>` | RFC 0007 |
| `task.spawn` | none | Phase 3 |
| `task.wait` | none | RFC 0012 (required by suspending operations in modules declaring `cancellation`, spec 04 §37.4) |
| `thread.block` | none | Phase 3 |
| `thread.spawn` | none | Phase 3 |
| `unsafe` | none (unsafe boundary, spec 13) | Phase 2 |