Hacker News new | ask | show | jobs
by sanxiyn 2001 days ago
Yes. There are some difficult technical issues. In practice, borrow checker works less well on async code than threaded code.

This is partly why I prefer threading over async in Rust. Look, we went through some enormous effort to make threading good and fun again. Why wouldn't you use threading?

2 comments

> Why wouldn't you use threading?

Because the C10^nK problem where n increases periodically is still a thing?

I am not solving C10K problem.
Green threads.
Those are async tasks

Or rather -- async tasks are as close as you can get to green threads in rust without a runtime that would impose overhead on every program

Because you cannot win artificial benchmarks with threading.