Why asynchronous Rust doesn't work
11–20 of 305 posts
Re: Why asynchronous Rust doesn't work
#12In summary asynchronous programming without a GC is a pain in the a*. That's somewhat expected isn't it?
Re: Why asynchronous Rust doesn't work
#13Re: Why asynchronous Rust doesn't work
#14Guess I'll just go back to erlang.....
But yeah, the way Erlang embededded the actor pattern in the VM (Beam) and the language itself is great.
Tough personally I would have liked it if it was more statically typed. I still need to take a look at Gleam...
Re: Why asynchronous Rust doesn't work
#15And this blog post from someone who did spend a lot of time working with async rust: https://tomaka.medium.com/a-look-back-at-asynchronous-rust-d...
Re: Why asynchronous Rust doesn't work
#16Re: Why asynchronous Rust doesn't work
#17Excellent post. Async ruins everything even in GC languages. It's just making things needlessly hard for programmers in an attempt to save effort from computers. Erlang shows how to do massive scales of slow IO if you really need it (most programs don't).
Well actually it is supposed to make concurrency easier for programmers.
What would you say is an "easy" way to deal with concurrency? Handle threading, memory visibility issues, locking, etc yourself? Doing it "reactive"? I guess personally I too would say something messaging based such as the actor pattern but not everything is a good fit for that model.
Async is intended to be a more generic (ie. fit for everything) and easy way to program. I'm not saying it succeeds in that but the goal wasn't to save the computer the effort.
Re: Why asynchronous Rust doesn't work
#18Excellent post. Async ruins everything even in GC languages. It's just making things needlessly hard for programmers in an attempt to save effort from computers. Erlang shows how to do massive scales of slow IO if you really need it (most programs don't).
Except Rust has no GC…
Re: Why asynchronous Rust doesn't work
#19Guess I'll just go back to erlang.....
There is also a actor pattern implementation for Rust: https://actix.rs/ But yeah, the way Erlang embededded the actor pattern in the VM (Beam) and the language itself is great. Tough personally I would have liked it if it was more statically typed. I still need to take a look at Gleam...
[0]: https://caramel.run/
Re: Why asynchronous Rust doesn't work
#20Excellent post. Async ruins everything even in GC languages. It's just making things needlessly hard for programmers in an attempt to save effort from computers. Erlang shows how to do massive scales of slow IO if you really need it (most programs don't).
It is another programming paradigm. It has its uses. It has its drawbacks.
“Ruining everything” is a big stretch.