News for hackers. Stuff that matters.
Re:The Rust I wanted had no future by kaba0 on Tuesday June 06, 2023 @03:50AM (#36209566)
> but everyone knows all IO calls are async

Do you mean on a hardware level? Because otherwise, hell no.

If I’m writing a binary file parser that buffers some data and processes it, I sure as hell want to wait for IO, there is no other meaningful way forward in most cases. It is also not a small isolated part, but a tight loop bouncing between CPU and IO.

Async is a function of the caller.

Re:The Rust I wanted had no future by bourneavent on Tuesday June 06, 2023 @04:53AM (#36210019)
>Do you mean on a hardware level? Because otherwise, hell no.

I mean in the context of async await. The smallest primitive that is properly async is an IO function.