- text AIR format 0: grammar (reference/air-text.ebnf) and module, block, SSA, type and canonical-form rules (spec 07 §8) - instruction contracts for format 0 (new spec 07a) - traps: stable T0xxx codes and trap records (spec 01 §6) - integer edge cases and explicit casts (spec 02 §2.1) - fixed verifier resource limits (spec 08 §7) - target description with pointer_bits (spec 09 §9) - new codes E0001-E0006, E1003, T0001-T0007 - resolves Q-001, Q-003..Q-008, Q-018; Q-002 resolved for format 0
3.1 KiB
3.1 KiB
Aji Specification 0.1
Status: Draft 0.1. Normative unless an accepted RFC says otherwise (see precedence in ../README.md).
The specification is split by semantic domain. Rationale for major decisions lives in ../rfcs/; short decisions in ../design/decisions.md.
Files
| File | Status | Topic |
|---|---|---|
| 00-status-and-conformance.md | Normative draft | Conformance, safety, profiles |
| 01-language-overview.md | Normative draft | Language shape and control flow |
| 02-types-and-values.md | Normative draft | Primitive/composite types, properties |
| 03-memory-model.md | Normative draft | Ownership, regions, islands, frozen graphs |
| 04-concurrency-and-atomics.md | Normative draft | Tasks, synchronization, memory model, atomics |
| 05-effects-and-capabilities.md | Normative draft | Authority and effect tracking |
| 06-resources-and-errors.md | Normative draft | Linear resources and error handling |
| 07-air.md | Normative draft | Canonical IR, text format |
| 07a-air-instructions.md | Normative draft | Per-instruction contracts |
| 08-verifier.md | Normative draft | Verification rules |
| 09-runtime-and-abi.md | Normative draft | Runtime, FFI, MMIO/DMA |
| 10-diagnostics-and-agent-protocol.md | Normative draft | Stable diagnostics and ajid |
| 11-determinism-and-replay.md | Normative draft | Deterministic testing/replay |
| 12-packages-and-build.md | Normative draft | Manifest/build model |
| 13-contracts-and-unsafe.md | Normative draft | Contracts, proof status and unsafe boundaries |
Reading order
Implementers: 00 → 01 → 03 → 04 → 07 → 08 → 13. The most consequential files are 03, 04, 05, 07, 08, 11 and 13.
Central semantic model
local value
│
├── ref<T> / mut<T> borrows
│
├── Own<T> per-object ownership
│
├── Region bulk lifetime
│ │
│ └── Island<T> closed movable mutable graph
│ │
│ └── freeze → Frozen<T>
│
└── synchronized sharing → Mutex/RwLock/Atomic/Channel
Concurrency is deliberately ordered by preference:
ownership transfer
→ shared immutable data
→ synchronized shared state
→ atomics
→ unsafe raw concurrency
Changing the spec
- Small clarifications and gap fills: edit the file directly, in the same change as the tests that exercise them.
- Changes to memory safety, concurrency, effects/capabilities, AIR or unsafe semantics: write an RFC first (
../rfcs/0000-template.md). - Known gaps are tracked in
../design/open-questions.md. Close the entry when the spec answers it.