this post was submitted on 08 Sep 2023
39 points (89.8% liked)

Rust

7102 readers
68 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] wim@lemmy.sdf.org 11 points 2 years ago (1 children)

Maybe it's just me, but isn't async programming a mess in all programming languages?

[–] noli@programming.dev -1 points 2 years ago (2 children)

It's a joy to do async in go IMO

[–] vrighter@discuss.tchncs.de 6 points 2 years ago* (last edited 2 years ago)

not really. first of all async in not the same as threading. And even then, while it makes parallel code easier to write (not easier to reason about), it still has the exact same footguns as anything else, as soon as you venture away from having only one consumer for every producer. Synchronization is still all on you

[–] wim@lemmy.sdf.org 5 points 2 years ago

That's a whole different thing to me. That's not async, that's channels and multithreading.

I do that in Rust as well with mcsp channels and it's been fine.

It's the async/await bit that I find incredibly akward all the time.