12 ms·
100% agree with your take, speaking as a professional async rust writer for like five years now. I’ll add to it that structured concurrency patterns in async R
by mplanchard 5mo ago
100% agree with your take, speaking as a professional async rust writer for like five years now.
I’ll add to it that structured concurrency patterns in async Rust can be legitimately awesome and very fun, once you’ve bounced off the traits in the futures crate enough times to use it in anger. The type system can be annoying, but as usual, it’s almost always technically right, and once you understand the ownership flow required for your nifty chain of future combinators, is not too too bad.
- tancop 5mo agothe best async/concurrency model i know is verse [1], a language made for fortnite scripting because tim sweeney decided he wants something with "metaverse" in the name. instead of async/await or verbose callbacks its all combinators. from their docs: # Nested blocks for complex operations sync: block: # Task 1 - sequential operations LoadTexture() ApplyTexture() block: # Task 2 - parallel to task 1 LoadSound() PlaySound() LoadModel() # Task 3 - parallel to tasks 1 and 2 [1] https://verselang.github.io/book/14_concurrency/#structured-concurrency https://verselang.github.io/book/14_concurrency/#structured-...
- worik 5mo agoSurrender, to compile Weather the winter storms You will find, true bliss