How Rust optimizes async/await
tmandry.gitlab.io
How Rust optimizes async/await
1–10 of 130 posts
Re: How Rust optimizes async/await
#2Re: How Rust optimizes async/await
#3I think the year is off by 1 in the blog post, or the title needs a 2018 tag.
Re: How Rust optimizes async/await
#4I think the year is off by 1 in the blog post, or the title needs a 2018 tag.
Re: How Rust optimizes async/await
#5Re: How Rust optimizes async/await
#6Re: How Rust optimizes async/await
#7We're getting generators as well? Awesome.
Good reading list at the bottom of https://areweasyncyet.rs, starting with this post that uses generators as an example: https://boats.gitlab.io/blog/post/2018-01-25-async-i-self-re...
Re: How Rust optimizes async/await
#8We're getting generators as well? Awesome.
But there's plenty of reason to want generators, including the fact that they let you build streams. And the fact that async/await relies heavily on them has pushed the implementation much closer to being ready. I hope we get them at some point!
Re: How Rust optimizes async/await
#9Re: How Rust optimizes async/await
#10I don't quite follow. What exactly is the overhead that other languages have for futures that is eliminated here?
In Rust, you can "inline" an entire chain of futures into a single heap allocation.