Phase 3: structured tasks and the deterministic scheduler (RFC 0011)
- interpreter core rewritten around explicit per-task frame stacks so a task can be suspended at any instruction; behavior of all existing tests unchanged - tasks: scope and task<T> (function-bound; task_transfer and task_borrow_returns reserved), spawn/join/cancel/cancelled/scope.end; cooperative scheduler with seeded choice rule, separate schedule seed, quantum = fuel unit, task limit (limit_exceeded kind tasks), global quiescence over waiting tasks; schedule field in the run record - verifier: Send/Share table (E4001, E4002), loans as task-owned borrows (E4302 on early end, E4101 on conflicts), E4301 at scope end, task effects (E3101) - CLI --quantum, --task-limit, --schedule-seed; runner schedules:, quantum:, task_limit:, limit_exceeded: - fixed: schedule seed default used orelse/^ precedence wrongly - 15 phase-3 conformance tests; 4000 mutants without a crash - Agent Reference Bundle +10.9 % tokens (recorded)
This commit is contained in:
1 parent
2289917af3
commit
ab5814a7bb
31 files changed
+1252
-94
No files matched your search
@@ -43,5 +43,6 @@ Growth never blocks a merge automatically; a complex feature can be justified, b
|
||||
| Milestone | Files | Sections | Bytes | Words | cl100k | o200k | Qwen2.5 |
|
||||
|---|---:|---:|---:|---:|---:|---:|---:|
|
||||
| Phase 2 baseline (AIR format 0) | 18 | 29 | 104 250 | 16 197 | 27 347 | 27 445 | 28 230 |
|
||||
| RFC 0011 tasks (Phase 3, part 1) | 19 | 33 | 116 126 | 18 082 | 30 333 (+10.9 %) | 30 433 (+10.9 %) | 31 316 (+10.9 %) |
|
||||
|
||||
Next measurement: after Phase 3 (structured concurrency).
|
||||
RFC 0011 crossed the 10 % warning line (its own estimate said "below 10 %"): four new sections in spec 04 (tasks, loans, `Send`/`Share` table, scheduler). Below the 20 % review threshold. Next measurement: after RFC 0012 (channels, synchronization).
|
||||
@@ -14,5 +14,21 @@
|
||||
"o200k_base": 27445,
|
||||
"qwen2.5": 28230
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "rfc-0011 tasks (Phase 3, part 1)",
|
||||
"language": "aji",
|
||||
"air": 0,
|
||||
"phase": 2,
|
||||
"files": 19,
|
||||
"sections": 33,
|
||||
"bytes": 116126,
|
||||
"lines": 1777,
|
||||
"words": 18082,
|
||||
"tokens": {
|
||||
"cl100k_base": 30333,
|
||||
"o200k_base": 30433,
|
||||
"qwen2.5": 31316
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user