Skip to content

add a sender facade that derives completions and attributes from algorithm code - #2479

Merged
ericniebler merged 1 commit into
NVIDIA:mainfrom
ericniebler:add-sender-facade
Nov 24, 2026
Merged

ericniebler merged 1 commit into
NVIDIA:mainfrom
ericniebler:add-sender-facade

Conversation

@ericniebler

Copy link
Copy Markdown
Collaborator

an algorithm written with __facade completes only through __send and starts nested work only through __start_nested. its handlers return effect tokens, and the facade walks them to derive the sender's completion signatures and its completion attributes (scheduler, domain, behavior), so these can no longer disagree with what the algorithm does. the overview at the top of __sender_facade.hpp describes the design.

this PR adds just the facade and its tests (test/stdexec/detail/test_facade.cpp), which use small algorithms written for them. nothing in the library uses the facade yet. the library's algorithms move to it in follow-up PRs, which also bring the MAINTAINERS.md guide and the __upon::__algo that the overview mentions.

🤖 Generated with Claude Code

@copy-pr-bot

copy-pr-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericniebler
ericniebler force-pushed the add-sender-facade branch 2 times, most recently from aa7aefe to 9337e7c Compare November 24, 2026 00:12
…rithm code

An algorithm written with `__facade` completes only through `__send` and starts
nested work only through `__start_nested`. Its handlers return effect tokens,
and the facade walks them to derive the sender's completion signatures and its
completion attributes (scheduler, domain, behavior). So these can no longer
disagree with what the algorithm does.

The tests use algorithms written for them. The `__mfor<__mlist_ptr>`
specialization lets `__mapply` take an `__mlist_ptr`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ericniebler
ericniebler merged commit 236b5f5 into NVIDIA:main Nov 24, 2026
73 of 74 checks passed
@ericniebler
ericniebler deleted the add-sender-facade branch November 24, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant