This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: NIO for Ruby?
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
I was once again reading Rich Teer's Solaris Systems Programming when I came across the asynchronous I/O stuff. I know Java has the NIO stuff but, at the moment, Ruby does not.
How hard would it be to add aio_read, aio_write, aio_waitn and aio_cancel? Not too difficult, really. I'd have to check for any platform specific issues, though. The only question I have (and already asked) is whether these should be added to the IO class, or perhaps added to the standard library as a new NIO class.