Files
aji/SPEC.md
T
dev 17a55a7fef Initial import: Aji 0.1 draft spec and Zig scaffolding
Draft specification, RFCs, reference registries and examples, plus the
reference-implementation skeleton: build.zig, diagnostic envelope with
error-code registry synced to docs, aji CLI, conformance runner with seed
tests, CI and contributor docs.
2026-10-04 11:59:13 +03:00

46 lines
1.3 KiB
Markdown

# Aji Specification 0.1 — Entry Point
This repository intentionally splits the language specification by semantic domain.
Normative specification: [`docs/spec/INDEX.md`](docs/spec/INDEX.md).
The most important documents are:
1. [`03-memory-model.md`](docs/spec/03-memory-model.md)
2. [`04-concurrency-and-atomics.md`](docs/spec/04-concurrency-and-atomics.md)
3. [`05-effects-and-capabilities.md`](docs/spec/05-effects-and-capabilities.md)
4. [`07-air.md`](docs/spec/07-air.md)
5. [`08-verifier.md`](docs/spec/08-verifier.md)
6. [`11-determinism-and-replay.md`](docs/spec/11-determinism-and-replay.md)
7. [`13-contracts-and-unsafe.md`](docs/spec/13-contracts-and-unsafe.md)
Major rationale documents are under [`docs/rfcs/`](docs/rfcs/).
The current draft's central semantic model is:
```text
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:
```text
ownership transfer
→ shared immutable data
→ synchronized shared state
→ atomics
→ unsafe raw concurrency
```