Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: does CLR support for coroutines make sense? #1651

Closed
bert2 opened this issue Jan 12, 2020 · 2 comments
Closed

Question: does CLR support for coroutines make sense? #1651

bert2 opened this issue Jan 12, 2020 · 2 comments
Labels
area-System.Threading.Tasks question Answer questions and provide assistance, not an issue with source code or documentation. tenet-performance Performance related issue
Milestone

Comments

@bert2
Copy link

bert2 commented Jan 12, 2020

I was very impressed how coroutines where built into C++20 by generalizing the calling conventions1. Is this considered for the CLR? Would it even be worth it?

I assume that features like async/await and yield would greatly benefit from that performance-wise, but the cost to change their implementations would be immense. However, laying the groundwork in the CLR might actually not be that costly...?

I'm just wondering whether this is on someones radar, because, so far, I could only find this comment in a charplang issue asking which CLR changes would benefit C# language features.


1 This summary of the feature (before it got standardized) gives a nice overview.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Jan 12, 2020
@jkotas
Copy link
Member

jkotas commented Jan 12, 2020

As far as I know nobody has done analysis of the estimated benefits and costs of having built-in coroutines support in the runtime. I agree that it would be useful to have such analysis so that we can compare the cost/benefit of doing this with other potential performance-related features.

@stephentoub stephentoub added question Answer questions and provide assistance, not an issue with source code or documentation. and removed untriaged New issue has not been triaged by the area owner labels Feb 25, 2020
@stephentoub stephentoub added this to the Future milestone Feb 25, 2020
@joperezr joperezr moved this from Needs triage to Future in Triage POD for Meta, Reflection, etc Nov 24, 2021
@stephentoub
Copy link
Member

Closing as answered.

@stephentoub stephentoub closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2023
@dotnet dotnet locked as resolved and limited conversation to collaborators Feb 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Threading.Tasks question Answer questions and provide assistance, not an issue with source code or documentation. tenet-performance Performance related issue
Projects
No open projects
Development

No branches or pull requests

4 participants