[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Asynchronous IO class or methods?

djberg96

2/2/2005 10:15:00 PM

Hi all,

Are there any plans to add support for the POSIX functions aio_read,
aio_write, aio_waitn and aio_cancel to the Ruby standard library?

I thought perhaps an AIO (or perhaps NIO, ala Java) class would be
worthwhile. That or add methods to the existing IO class.

Or is there no point in doing that? Does io-reactor (RAA) already more
or less accomplish the same goal?

Regards,

Dan

1 Answer

Robert Klemme

2/4/2005 6:52:00 PM

0


"Daniel Berger" <djberg96@hotmail.com> schrieb im Newsbeitrag
news:1107382523.162768.105890@z14g2000cwz.googlegroups.com...
> Hi all,
>
> Are there any plans to add support for the POSIX functions aio_read,
> aio_write, aio_waitn and aio_cancel to the Ruby standard library?
>
> I thought perhaps an AIO (or perhaps NIO, ala Java) class would be
> worthwhile. That or add methods to the existing IO class.
>
> Or is there no point in doing that? Does io-reactor (RAA) already more
> or less accomplish the same goal?

My 0.02 EUR: I prefer to use threads for concurrent IO because that makes up
for much simpler code. Note also, that Ruby internally already uses
nonblocking IO.

Kind regards

robert