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

1.3 KiB

Aji Specification 0.1 — Entry Point

This repository intentionally splits the language specification by semantic domain.

Normative specification: docs/spec/INDEX.md.

The most important documents are:

  1. 03-memory-model.md
  2. 04-concurrency-and-atomics.md
  3. 05-effects-and-capabilities.md
  4. 07-air.md
  5. 08-verifier.md
  6. 11-determinism-and-replay.md
  7. 13-contracts-and-unsafe.md

Major rationale documents are under docs/rfcs/.

The current draft's central semantic model is:

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