Repository navigation
Open
Labels
discussionIssues that require a technical or community discussion.enhancementA request for a new feature or improvement.feature requestA request for a new feature or functionality.
Description
Summary
Track backend-neutral async/await support for Wave from syntax through runtime integration.
The initial language direction is:
async fun load() -> i64 {
var value: i64 = await read_value();
return value;
}
async fun name(...) -> Tproduces an asynchronous computation whose completed value isT.await expressionsuspends only the current asynchronous computation.varremains Wave's local-variable syntax; async support must not introducelet, borrow checking, or Rust-styleunsafeblocks.fun main()remains the private entry point.pub async fun main()is invalid, and support for privateasync fun main()requires an explicit executor entry contract.- Direct
externand exported async functions are initially rejected because no stable C or Wave ABI exists for async frames. - The frontend contract must be backend-neutral so LLVM can later be replaced by Whale without changing language semantics.
Child issues
- Define async completion, cancellation, and frame lifetime semantics #440
- Parse async functions and await expressions #441
- Represent async effects and await sites in TypedProgram #442
- Lower async functions to backend-neutral resumable state machines #443
- Implement the portable Wave async task runtime and executor #444
- Integrate async tasks with std::net readiness and Windows IOCP #445
Non-goals
- HTTP, TLS, or protocol libraries in
std. - An LLVM-specific coroutine ABI as part of the Wave language.
- Implicit memory safety or ownership rules that Wave does not otherwise provide.
- Stable async FFI before the Wave ABI is designed.
This tracking issue should be completed through focused child issues rather than one monolithic pull request.
Implementation audit — 2026-09-23
Syntax is complete (#441). Typed HIR, backend-neutral lowering, the executor and native readiness/IOCP implementations exist, but their broader completion criteria are not all verified. Keep #440/#442/#443/#444/#445 open for the remaining contract, coverage and lifetime work. Known runtime follow-ups include #532 (watch reclamation), #533 (task lookup scans), #534 (IOCP staging bounds), and #535 (sleep errors).
Metadata
Metadata
Assignees
Labels
discussionIssues that require a technical or community discussion.enhancementA request for a new feature or improvement.feature requestA request for a new feature or functionality.
Activity