News for hackers. Stuff that matters.
Re:Async Rust doesn't have to be hard by whatshisface on Friday June 03, 2022 @04:51PM (#31613458)
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.
Re:Async Rust doesn't have to be hard by erikpukinskis on Friday June 03, 2022 @04:58PM (#31613531)
Does Tokio have a concurrency model similar to Go's?
Re:Async Rust doesn't have to be hard by oandrew on Friday June 03, 2022 @05:09PM (#31613646)
No, since rust async is stackless. There is a stackful coroutine implementation for Rust: https://github.com/Xudong-Huang/may