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

The GP mentioned "async runtimes". There are other approaches to async that don't involve using an async runtime, like epoll / kqueue. I personally prefer writing synchronous code, running in multiple threads pulling from a shared work queue. It isn't a one-size-fits-all solution but it is widely applicable, and you get to avoid the complexity of writing 'async code'


Async runtimes are just wrappers around the underlying async technology, like epoll, kqueue and io_uring.

They give structure in a similar way if/for/while put structure around the underlying PC jumps.


Yes, but they also introduce a lot of complexity to the developer experience. It is turtles all the way down with async code, as they say




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

Search: