News for hackers. Stuff that matters.
Re:Why choose async/await over threads? by vips7L on Tuesday March 26, 2024 @06:36AM (#39826164)
> Surely you're not claiming that .NET's standard library is not extensive and not written in C#.

I’m claiming that MSFT seems to care really about P/Invoke and FFI performance and it was one of the leading reasons for them not to choose green threads. So there has to be something in .NET or C# or win forms or whatever that is influencing the decision.

I’m also claiming that this isn’t a concern for Java. 99.9% of the time you don’t go over FFI and it’s what lead the OpenJdk team to choose virtual threads.

> If you do, consider giving .NET a try

I’d love to, but dealing with async/await is a pain :)

Re:Why choose async/await over threads? by neonsunset on Tuesday March 26, 2024 @06:56AM (#39826320)
You’ve never used it, so how can you know?
Re:Why choose async/await over threads? by vips7L on Tuesday March 26, 2024 @01:28PM (#39830495)
How do you know I've never used it? Do you have a crystal ball?