News for hackers. Stuff that matters.
Re:The Downsides of C++ Coroutines by pjmlp on Sunday August 13, 2023 @05:05AM (#37108058)
They don't work just fine in C#, there is a reason why one of ASP.NET architects has written a guide of best practices.

https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...

Ironically, C++'s design is heavily related to C#, as the initial proposal was done by Microsoft and shares many of the same ideas, including how to create runtime aware awaitable types.

Re:The Downsides of C++ Coroutines by captainmuon on Tuesday August 15, 2023 @04:26AM (#37131495)
I've never used ASP.NET, I mean they work fine in GUI apps where you click a button, start downloading a file, and then show a message when the file has been downloaded.

Making code nonblocking without threads and without callbacks = happy case for async. Writing multithreaded servers focussed on throughput is a whole other can of worms, which is basically my point.