You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement the portable Wave async task runtime and executor #444
cross-platformIssues related to making Wave work seamlessly across multiple operating systems.enhancementA request for a new feature or improvement.feature requestA request for a new feature or functionality.
Provide the minimal portable runtime contracts needed to poll, wake, schedule, cancel, and complete Wave async computations.
Scope
Define the stable in-language Poll, future, task, and waker representations used by lowered code.
Provide a single-threaded baseline executor before optional multithreaded scheduling.
Define task allocation, queue ownership, wake coalescing, cancellation, shutdown, and result retrieval.
Avoid mandatory libc dependencies in freestanding builds; hosted and freestanding availability must be explicit.
Keep runtime interfaces backend-neutral and compatible with a future Whale toolchain.
Define the private async fun main() adapter only after executor ownership is clear.
Add deterministic tests that do not depend on wall-clock races.
Completion criteria
A task that returns immediately, yields once, and wakes multiple times completes correctly.
Duplicate wakes do not corrupt the run queue.
Cancellation and executor shutdown release frame/runtime resources according to the semantic contract.
Hosted Linux, macOS, and Windows runtime smoke tests pass.
Unsupported freestanding use produces a clear compile/driver diagnostic.
Runtime APIs include short Wave comments and examples.
Implementation audit — 2026-09-23
The executor and fixtures for lazy/nested tasks, control flow, timer fairness and TCP round trips pass locally. Native executor restart regressions are also present. Keep the broader duplicate-wake, shutdown/cancellation and unsupported-target acceptance work open; #532/#533/#535 track concrete remaining runtime concerns.
cross-platformIssues related to making Wave work seamlessly across multiple operating systems.enhancementA request for a new feature or improvement.feature requestA request for a new feature or functionality.
Activity