Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rmholt
on Aug 25, 2024
|
parent
|
context
|
favorite
| on:
Async hazard: MMAP is blocking IO
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
on Aug 25, 2024
|
next
[–]
I 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
on Aug 25, 2024
|
prev
[–]
No, 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.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: