News for hackers. Stuff that matters.
Re:Fast portable non-blocking network programming with Libevent by houseabsolute on Monday January 11, 2010 @09:46AM (#1045143)
It's too bad that no standard method for a asynchronous events has been developed for Unix in general. Where I work, there's one single library for concurrency, and every program or toolkit uses it. We do a lot of network programming, so it would be unthinkable for any performance intensive application to do blocking calls exclusively.
Re:Fast portable non-blocking network programming with Libevent by silentbicycle on Monday January 11, 2010 @10:07AM (#1045175)
libevent tries to provide a common interface to select, poll, kselect (on BSD), epoll (on Linux), and comparable calls on Windows. It's not a standard part of Unix, of course, but it seems reasonably portable.
Re:Fast portable non-blocking network programming with Libevent by houseabsolute on Monday January 11, 2010 @10:18AM (#1045195)
Sure, but libraries underneath you have to cooperate for you to use it to the fullest potential. That no common means have been invented for that is what I'm sad about.
Re:Fast portable non-blocking network programming with Libevent by silentbicycle on Monday January 11, 2010 @10:33AM (#1045225)
Right. Once you set up a non-blocking event loop, it's much simpler when you can go async all the way down.