5 ms·
Go has a runtime and a GC, and importantly can implement an event loop outside of anything reached by tracing execution from your code's entry point. Rust's phi
by whatshisface 4y ago
Go has a runtime and a GC, and importantly can implement an event loop outside of anything reached by tracing execution from your code's entry point. Rust's philosophy lead them to make the runtime something you bring in with a library import and start manually. Bundling Tokio with every binary would not be their way, although something like it may one day wind up in the standard library.
- erikpukinskis 4y agoDoes Tokio have a concurrency model similar to Go's?
- oandrew 4y agoNo, since rust async is stackless. There is a stackful coroutine implementation for Rust: https://github.com/Xudong-Huang/may https://github.com/Xudong-Huang/may