News for hackers. Stuff that matters.
Re:How to think about `async`/`await` in Rust by amelius on Wednesday July 05, 2023 @05:44AM (#36598025)
Async is great for dealing with I/O but it forgets that the CPU is a resource too.
Re:How to think about `async`/`await` in Rust by Spivak on Wednesday July 05, 2023 @02:18PM (#36604726)
Which is why you queue up CPU intensive tasks to threads where you can time slice, and IO intensive tasks to async/fibers whatever you wanna call them. It's hard to make this completely seamless. Power to Java for getting the closest.