21 ms·
While author said that C's mmap suffers the same issue, I would argue C's mmap is fine, because C doesn't have async. The issue arises from the mmap crate not h
by rmholt 2y ago
While author said that C's mmap suffers the same issue, I would argue C's mmap is fine, because C doesn't have async. The issue arises from the mmap crate not having an async read and the confusion around how does async work.
- rmholt 2y agoI feel like author used a lot of words to say "mmaped reads are IO (obvious) but critically, they are usually not awaitable like IO (bad)"
- gpderetta 2y agoNo, that misses the point. Async doesn't require an async keyword. Evented programming (which as the same issues) has been common in C for decades.