2 ms·
I'm not sure what you mean by the "syscall overhead", but I 100% agree that stackless coroutines in Rust would be amazing. But I'm also skeptical that they can
by acconsta 11y ago
I'm not sure what you mean by the "syscall overhead", but I 100% agree that stackless coroutines in Rust would be amazing. But I'm also skeptical that they can be implemented as a library without compiler support. C++ only manages with some very unhygienic macros, switches, and gotos:
https://github.com/chriskohlhoff/asio/blob/master/asio/include/asio/coroutine.hpp https://github.com/chriskohlhoff/asio/blob/master/asio/inclu...