It's been said that rust futures "compile down to a state machine" like handrolled ones with mio. Is there any info on which design decisions led to this? Does it also apply when we Box stuff for dynamic dispatch? aturon.github.io/2016/09/07/fut
Conversation
There is this one by as well: aturon.github.io/blog/2016/08/1 (I was expecting the link you posted to be that one actually) - afaik, I don't think it holds when Box is in play, unless LLVM gets particularly aggressive.
1
The main relevant bit is under the heading "Zero cost?". I believe this was the first post where the futures library was announced - not sure if there is anything more recent. I believe talks were done at the time too.
Having to box to solve some type issues is pretty annoying. There are less of those since impl trait is there, but still
1
1
Yeah, doing some futures code right now while implementing a language server, and I do agree! It's getting better from what it was at least!
2
Show replies

