Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

can you take code that is blocking in nature and make it async (like an FFI dlsym call), or at a low level does that just boil down to lots of polling/timers?


Not sure what code you’re looking at but in reality all code is asynchronous by nature (ie you ask the HW to do something and it tells you it’s done some time later). Then we layer blocking syscalls on top and then you layer async underneath. Io_uring is an attempt at getting everything asynchronous top to bottom.

Some times we use polling if there’s sufficient traffic and interrupts are inefficient but that’s still asynchronous, just batched.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: