Zero-cost futures in Rust
As mentioned in the post, given Rust wants to operate in the same space as C, this approach makes sense. However from a higher level, building more complex concurrent systems, dealing with futures&#x2F;deferred-s&#x2F;promises and&#x2F;or a central select&#x2F;epoll&#x2F;kqueue reactor loop gets daunting and doesn&#x27;t mix with complex business rules.<p>Deferred based approach has been a round for many years. I experienced it by using Twisted (Python framework) for 5 or so years. And early on it was great However when we switched to using green threads, the logic and amount of code was greatly simplified.<p>So wondering if Rust provides any ability to add that kind of an N:M threading approach. Perhaps via an extension, macro or some other mechanism.<p>Note that in C, it being C such things can be done with some low level trickery. Here is a library that attempt that:<p><a href="http:&#x2F;&#x2F;libmill.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;libmill.org&#x2F;</a><p>And there were a few others before, but none have taken off enough to become mainstream.