Promises/async/await seem like a total hack necessary for JavaScript only. Why would languages that don’t need (Rust, C++) it adopt it? What am I missing? It’s miserable in JS, too.
What specifically is the problem with having 10k threads? I always heard memory/allocation was the main issue.
-
-
10k threads on a system just doesn't work, even if they're mostly blocking on IO. I guess that may be due to malloc, but this is a generic complaint from ppl people doing networky stuff, not a rust specific complaint.
-
Isn't the usual choice between something like green threads, lots of OS threads, and something like async/await/futures? And OS threads are slow, green threads need a runtime/don't fit the C model, so async it is?
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.