News for hackers. Stuff that matters.
Re:Niklaus Wirth has died by pjmlp on Thursday January 04, 2024 @03:14AM (#38864472)
> async/await guarantees you won't have deadlocks

You will get them in .NET and C++, because they map to real threads being shared across tasks.

There is even a FAQ maintained by .NET team regarding gotchas like not calling ConfigureAwaitable with the right thread context in some cases where it needs to be explicitly configured, like a task moving between foreground and background threads.

Re:Niklaus Wirth has died by kragen on Friday January 05, 2024 @02:57AM (#38876795)
thank you! i haven't tried using .net more than a tiny bit
Re:Niklaus Wirth has died by neonsunset on Friday January 05, 2024 @03:10AM (#38876861)
(it arguably needs to be updated, so that people stop writing single line 'return await' methods which waste performance for no reason (thankfully some analyzers do flag this))