3 ms·
> the kind of ... service that benefits from using non-blocking IO. Async, in the sense from the article, and non-blocking aren't synonyms. Not using Async doe
by the__alchemist 3y ago
> the kind of ... service that benefits from using non-blocking IO.
Async, in the sense from the article, and non-blocking aren't synonyms. Not using Async doesn't imply blocking.
- withoutboats3 3y agoWhat Rust libraries use non-blocking IO without using async syntax? I don't know of any. This interpretation of the request is new to me: I've exclusively heard complaints about libraries using async from people who want to use blocking IO. (Also, in case it isn't obvious: I wrote the article in question.)
- the__alchemist 3y agoI usually do non-blocking ops with hardware interrupts, DMA, distributed computing (over CAN etc), and multiple cores. For GPOS/Desktop PCs, threads, SIMD (GPU or CPU etc) are effective. More generally than the concurrency operations I described, are any sort of event-loop or state machine, of which Async is one example.