HN user

RedPanda250

8 karma
Posts0
Comments8
View on HN
No posts found.

Sorry if I'm missing something important as I have experience with C++ but not rust, but is async/await the right abstraction in Rust vs. the underlying generators which I assume is lower level and closer to C++20 Co-routines in terms of performance ? [1]

In other words, it seems Rust co-routines at the level of Tokio are not as performant as C++ native Co-routines [2] and further down the thread, it's mentioned that once generators are stabilized, it might help build lower cost and performant stackless coroutines in Rust.[3]

[1] https://github.com/rust-lang/rust/issues/43122#issuecomment-...

[2] https://github.com/rust-lang/rust/issues/43122#issuecomment-...

[3] https://github.com/rust-lang/rust/issues/43122#issuecomment-...