News for hackers. Stuff that matters.
Re:Tokio 1.0 – async runtime for Rust by nicoburns on Wednesday December 23, 2020 @06:25PM (#25523472)
Alternatively use async everywhere from the start and your headaches go away too. It's mixing blocking code with async code that causes issues.
Re:Tokio 1.0 – async runtime for Rust by pvorb on Wednesday December 23, 2020 @07:08PM (#25523788)
Just do it if everyone in your team is comfortable with it. I'm just not as productive with async code.
Re:Tokio 1.0 – async runtime for Rust by nicoburns on Wednesday December 23, 2020 @07:57PM (#25524104)
Ah yeah, as someone whose first langauge is javascript where all IO and even things like timers are async, I forget that not everyone groks it. It's really not that complicated (at work we have junior devs with 6 months experience writing async code no problem), but I think there is a certain amount of unlearning that needs to be done if you're used to working with threaded code.
Re:Tokio 1.0 – async runtime for Rust by lumost on Wednesday December 23, 2020 @07:18PM (#25523857)
won't this just bifurcate the rust ecosystem between async and non-async rust libraries?
Re:Tokio 1.0 – async runtime for Rust by loeg on Wednesday December 23, 2020 @11:19PM (#25525022)
It's already there.