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

What... its shared memory? What is asynchronous about touching a few atomic vars and shared memory (shared pages) exactly? You could absolutely poll on this sort of thing in a non blocking manner, but there is not OS primitive here to trigger a Waker


build an Event Count on top of eventfd and you can get fast pathed blocking behavior on your shared memory queue that it is also async awaitable on top of your event loop of choice.


So add some syscalls and slowness to what should amount to a spsc atomic queue in memory? No thanks!


The fast path can still be fast. You can make the blocking behaviour optional for those that need it.




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

Search: