spec: accept RFC 0012 and integrate waits, channels, select and mutex
revision 2 per owner review: reserved-feature dependencies may change until publication (general rule, DD-014); task.join.cancel returns the handle on cancelled with loans still LOANED; channel.sender.dup from ref<sender<T>> (MPSC, receiver_dup reserved); task.wait required by every suspending operation, task.join included, only in modules declaring cancellation; sent values and handles come back as block parameters on closed/cancelled edges; explicit channel states spec 04 §37-§41 and pointers in §11-§16, §35, §36; spec 05 §9, 07 §8.11, 07a, 08 §14, 11 §6-§7; features cancellation, channels, sync published (implementation pending); rwlock, channel_transfer, receiver_dup, guard_transfer reserved; effect task.wait; E4304, E4305; Q-013 resolved; bundle +15.8 % tokens (recorded)
This commit is contained in:
1 parent
4230c78dd1
commit
b82bc35c5f
19 files changed
+387
-67
No files matched your search
@@ -45,4 +45,6 @@ Growth never blocks a merge automatically; a complex feature can be justified, b
|
||||
| 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 %) |
|
||||
|
||||
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).
|
||||
| RFC 0012 waits, channels, select, mutex | 19 | 38 | 133 781 | 20 748 | 35 119 (+15.8 %) | 35 219 (+15.7 %) | 36 238 (+15.7 %) |
|
||||
|
||||
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. RFC 0012 (+15.8 %, estimate 12–16 %): five sections in spec 04 (waits and cancellation, channels, select, mutex, critical-section rule). Phase 3 total since the Phase 2 baseline: +28.4 %. Next measurement: after the Phase 3 reference programs.
|
||||
@@ -38,6 +38,13 @@ docs/spec/04-concurrency-and-atomics.md :: ## 34. Lending borrows to tasks
|
||||
docs/spec/04-concurrency-and-atomics.md :: ## 35. Send and Share in AIR
|
||||
docs/spec/04-concurrency-and-atomics.md :: ## 36. The deterministic scheduler
|
||||
|
||||
# Waiting, cancellation, channels, select, mutex
|
||||
docs/spec/04-concurrency-and-atomics.md :: ## 37. Waiting and cancellation
|
||||
docs/spec/04-concurrency-and-atomics.md :: ## 38. Channels in AIR
|
||||
docs/spec/04-concurrency-and-atomics.md :: ## 39. `select` in AIR
|
||||
docs/spec/04-concurrency-and-atomics.md :: ## 40. Mutex in AIR
|
||||
docs/spec/04-concurrency-and-atomics.md :: ## 41. The critical-section rule
|
||||
|
||||
# Effects, capabilities, intrinsics
|
||||
docs/spec/05-effects-and-capabilities.md :: ## 9. Effects in AIR
|
||||
docs/spec/05-effects-and-capabilities.md :: ## 10. Capabilities in AIR
|
||||
|
||||
@@ -30,5 +30,21 @@
|
||||
"o200k_base": 30433,
|
||||
"qwen2.5": 31316
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "rfc-0012 waits, channels, select, mutex (spec)",
|
||||
"language": "aji",
|
||||
"air": 0,
|
||||
"phase": 2,
|
||||
"files": 19,
|
||||
"sections": 38,
|
||||
"bytes": 133781,
|
||||
"lines": 2000,
|
||||
"words": 20748,
|
||||
"tokens": {
|
||||
"cl100k_base": 35119,
|
||||
"o200k_base": 35219,
|
||||
"qwen2.5": 36238
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user