• TheAgeOfSuperboredom@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 年前

    I disagree. Async Rust is fine, but it does have some baggage, not least of which is Pin/Unpin which I still don’t fully understand. But that aside, I prefer writing async Rust to any other language because the rest of Rust comes along for the ride!

    It’s actually amazing that I can use the same mental model for async code on a small MCU or a large server.

    Is Arc really the worst GC? Doesn’t Swift use reference counting also? I did a few minutes of searching but couldn’t really find any benchmarks comparing Arc with Swift RC or some other GC.

    I feel that async Rust is a good set of tradeoffs that allows it to scale to a lot more than just writing web servers. Rust seems to be pretty good for web servers too though.