notgull,
@notgull@hachyderm.io avatar

Answering a frequently asked question: how do you do concurrent combinators in smol?

https://notgull.net/futures-concurrency-in-smol/

janriemer,

@notgull This is such a good blog post. I've learned a lot!

Thank you for sharing. ❤️

"The best part is that the allocation, the Vec<smol::Task<()>>, isn’t even necessary. It could be one-time allocation that is just extended to hold the tasks."

Wow, this is mind-blowing to me - I haven't even considered this before! 🤯

Memory-reuse FTW! :awesome:

For more visibility =>

matze,
@matze@mastodon.social avatar

@janriemer @notgull it's indeed a good one but it's sad that this information is hidden in a blog post. Ideally the different async folks would come together and bring the "Async Rust" book over the finish line.

janriemer,

@matze Agree. Not sure, if you're already aware, but @carol and @chriskrycho are revamping the Async Rust book.

I'm so excited for this! :awesome:

https://floss.social/@carol@crabby.fyi/112038749879839366

@notgull

carol,
@carol@crabby.fyi avatar

@janriemer @matze @chriskrycho @notgull Clarification: We are adding an async chapter to the regular The Rust Programming Language book, we are not working on the Async Rust book at https://rust-lang.github.io/async-book/ at this time 😅

janriemer,

@carol @chriskrycho Oh sorry, then I totally misunderstood this.🤐

Sorry for the confusion and thank you for clarifying.

Still glad, you're working on improving async Rust docs (in whatever form😉)! :awesome:

@matze @notgull

chriskrycho,
@chriskrycho@mastodon.social avatar

@janriemer We could definitely use the async book to be finished as well! But the first stop is The Rust Programming Language, since (1) that’s the thing @carol has the ability to tackle, and therefore could throw me at, and (2) it is the first stop for folks learning Rust more generally, so in some ways is an even higher priority. @matze @notgull

janriemer,

@chriskrycho @carol

Yes, this reasoning and prioritization makes perfect sense! 👍

Thank you for the explanation. 🙂

chriskrycho,
@chriskrycho@mastodon.social avatar

@carol …though if a bunch of companies out there wanted to get together to pay to make that happen… 😅 @janriemer @matze @notgull

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • Youngstown
  • mdbf
  • rosin
  • slotface
  • InstantRegret
  • khanakhh
  • Durango
  • kavyap
  • osvaldo12
  • tacticalgear
  • GTA5RPClips
  • JUstTest
  • ngwrru68w68
  • everett
  • tester
  • ethstaker
  • cisconetworking
  • cubers
  • modclub
  • provamag3
  • anitta
  • normalnudes
  • Leos
  • megavids
  • lostlight
  • All magazines