Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Tasks are the wrong abstraction for async Rust (yoshuawuyts.com)
4 points by fanf2 on July 15, 2024 | hide | past | favorite | 2 comments


Needs to find time to read this more carefully, but on an initial skim it feels like Rust type system is strongly coupling two things very strongly here, the structure of Rust futures, and the scheduling mechanism. I don't think Rust as a language is really alone in this, anything with thread locals will expose the nature of the scheduler, but the Rust type system definitely makes it more obvious.


We could expand this further: async/await is the wrong abstraction for Rust.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: