Skip to content

Facade Improvements - #2595

Open
RobertLeahy wants to merge 2 commits into
NVIDIA:mainfrom
RobertLeahy:facade_improvements_20261202
Open

RobertLeahy wants to merge 2 commits into
NVIDIA:mainfrom
RobertLeahy:facade_improvements_20261202

Conversation

@RobertLeahy

Copy link
Copy Markdown
Contributor

No description provided.

@copy-pr-bot

copy-pr-bot Bot commented Dec 2, 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 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am ok with the first two commits, but i am not happy with the change in "Create Facade Tokens With __facade::__token". i know you want it for your tail recursion work, but this change is a significant complication to code that is already complicated. and tail recursion isn't standard, so nobody benefits from this change.

for the purpose of your proposal, i ask you to move that change out of this PR and maintain it in your own fork.

@RobertLeahy

Copy link
Copy Markdown
Contributor Author

i am ok with the first two commits, but i am not happy with the change in "Create Facade Tokens With __facade::__token". i know you want it for your tail recursion work, but this change is a significant complication to code that is already complicated. and tail recursion isn't standard, so nobody benefits from this change.

I had imagined the broader benefit being auto return types being "correct" at runtime, but I'm happy to skip it if that's not a desirable behavior.

@RobertLeahy
RobertLeahy force-pushed the facade_improvements_20261202 branch from 582f3b0 to 729937e Compare December 5, 2026 03:23
Comment thread include/stdexec/__detail/__variant.hpp Resolved
@ericniebler

Copy link
Copy Markdown
Collaborator

/ok to test 729937e

The facade's walk constructs an algorithm's state with an archetype receiver,
and expects the operations in it to be placeholders (__facade::__state_op_t).
starts_on and continues_on (their schedule operations), the counting scopes'
join (its schedule operation), and test_facade.cpp's t_schedule connected
real operations instead.

The above-mentioned now connect their operation through a member that
returns the placeholder in a walk.
@ericniebler
ericniebler force-pushed the facade_improvements_20261202 branch from 729937e to 01d44da Compare December 6, 2026 01:24
@ericniebler
ericniebler self-requested a review December 6, 2026 01:25
Algorithms that send stored values applied a lambda that calls __send to the
tuple that holds them. __send_tuple(rcvr, tag, tuple) does that, and returns
__send's token.
@ericniebler
ericniebler force-pushed the facade_improvements_20261202 branch from 01d44da to 643f1e3 Compare December 6, 2026 01:34
@ericniebler

Copy link
Copy Markdown
Collaborator

/ok to test 643f1e3

This branch has not been deployed

No deployments
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.

2 participants