On Monday, 23 October 2017 at 22:22:55 UTC, Adam Wilson wrote:
On 10/23/17 08:21, Kagamin wrote:
[...]
Actually I think it fits perfectly with D, not for reason of
performance, but for reason of flexibility. D is a polyglot
language, with by far the most number of methodologies
supported in a single language that I've ever encountered.
[...]
There is a lot of misunderstanding about async/await. It has
nothing to do with "conservation of thread resources" or trading
"raw performance for an ability
to handle a truly massive number of simultaneous tasks".
Async/await is just 'syntactic sugar' where the compiler
re-writes your code into a state machine around APM
(Asynchronous programming model which was introduced in .NET
2.0 sometime around 2002 I believe). That's all there is to it,
it makes your asynchronous code look and feel synchronous.