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 %.
This commit is contained in:
1 parent
702d69b2c1
commit
2bbbd2135c
24 files changed
+927
-142
No files matched your search
@@ -20,9 +20,9 @@ Status values: `open`, `resolved`.
|
||||
| Q-012 | resolved | P2 | Capability representation and host instantiation |
|
||||
| Q-013 | resolved | P3 | Deterministic `select` rule and scheduler seed |
|
||||
| Q-014 | resolved | P3 | `Send`/`Share` derivation for aggregates holding capabilities |
|
||||
| Q-015 | open | P5 | Operational weak-memory model for the interpreter |
|
||||
| Q-015 | resolved | P5 | Operational weak-memory model for the interpreter |
|
||||
| Q-016 | open | P0 | Floating-point determinism |
|
||||
| Q-017 | open | P5 | Replay file format |
|
||||
| Q-017 | open | P8 | Replay file format |
|
||||
| Q-018 | resolved | P2 | Runtime diagnostics (traps) vs verifier diagnostics |
|
||||
| Q-019 | resolved | P3 | Non-terminating programs in test tooling |
|
||||
| Q-020 | resolved | P2 | Size bound for SSA array values |
|
||||
@@ -119,6 +119,14 @@ Spec 02 §6 derives properties structurally; spec 05 §5 says capability types d
|
||||
|
||||
The SB litmus test requires the interpreter not to forbid `r1=0, r2=0` under relaxed ordering. Undecided: which executable model to use (store buffers, a promising-style semantics, or an axiomatic checker over recorded executions) and how much of C11's model to adopt.
|
||||
|
||||
**Resolved (RFC 0015):**
|
||||
|
||||
- The normative model is axiomatic: the Aji RC11 profile of spec 04 §20, including NO-THIN-AIR (`sb ∪ rf` acyclic).
|
||||
- An enumerator derived from the axioms is the executable oracle (spec 04 §20.5).
|
||||
- The interpreter is an operational machine. For every program, `observed ⊆ allowed`. For the finite normative litmus corpus only, `observed_exhaustive = allowed` (spec 04 §20.5, §42).
|
||||
- Weak choices are draws from the schedule stream.
|
||||
- Promises are not needed, because NO-THIN-AIR forbids the cyclic load-buffering outcome.
|
||||
|
||||
## Q-016 — Floating-point determinism
|
||||
|
||||
`f32`/`f64` exist (spec 02 §1) with no rules on NaN payloads, fused operations, rounding mode or denormals. Deterministic replay requires these to be fixed.
|
||||
@@ -127,6 +135,8 @@ The SB litmus test requires the interpreter not to forbid `r1=0, r2=0` under rel
|
||||
|
||||
Spec 11 §4 mentions `.ajr` files without a format or compatibility rule.
|
||||
|
||||
Moved to Phase 8 by RFC 0015 (D13). The deterministic profile already reproduces runs from seeds and quantum. A replay file for hosted or native runs must record scheduler choices, reads-from choices, modification orders and the SC order.
|
||||
|
||||
## Q-018 — Runtime diagnostics
|
||||
|
||||
The error registry covers verifier/compiler errors. Traps and runtime check failures (bounds, generation, overflow) need stable machine-readable records too, either in the same registry (e.g. `R` codes) or a separate one.
|
||||
|
||||
Reference in new issue
Block a user