# \[ANN\] nio4r 1.0.0: high-performance cross-platform IO selectors for Ruby

**URL:** <https://rubytalk.org/t/ann-nio4r-1-0-0-high-performance-cross-platform-io-selectors-for-ruby/68997>\
**Category:** ruby-talk\
**Created:** [15 January 2014 05:59 UTC](https://rubytalk.org/t/ann-nio4r-1-0-0-high-performance-cross-platform-io-selectors-for-ruby/68997 "2014-01-15T05:59:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Arcieri3](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Tony\_Arcieri3](https://rubytalk.org/u/Tony_Arcieri3)\
**Post date:** [15 January 2014 05:59 UTC](https://rubytalk.org/t/ann-nio4r-1-0-0-high-performance-cross-platform-io-selectors-for-ruby/68997/1 "2014-01-15T05:59:51Z")

</div>

nio4r provides a high performance IO selector API which lets you monitor  
several IO objects for events simultaneously using a single system call.  
It's similar to Kernel.select, but keeps its state between calls.

> **[socketry/nio4r](https://github.com/socketry/nio4r)**
>
> nio4r - New I/O for Ruby: Cross-platform asynchronous I/O primitives for scalable network clients and servers

Selectors thunk to the epoll on Linux and kqueue on BSDs, using libev for  
Rubies with C extension support (MRI, Rubinius) and Java NIO on JRuby.

We're trying to get all Celluloid dependencies onto 1.x versions this year.  
nio4r is the first! (unless you count timers, which is already on 2.0.0).  
That's right, we're freezing APIs and trying to get things solid.

Changes from 0.5.0:

\* Have Selector#register obtain the actual IO from a Monitor object because  
Monitor#initialize might convert it  
\* Drop 1.8 support

Enjoy!

> **···**
>
> --  
> Tony Arcieri

---

<div class="post-metadata">

**Author:** ![Tony\_Arcieri3](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Tony\_Arcieri3](https://rubytalk.org/u/Tony_Arcieri3)\
**Post date:** [15 January 2014 19:22 UTC](https://rubytalk.org/t/ann-nio4r-1-0-0-high-performance-cross-platform-io-selectors-for-ruby/68997/2 "2014-01-15T19:22:40Z")

</div>

It's discussed here:

> <https://github.com/celluloid/celluloid/issues/358>
>
> We should release 1.0! While there's an awful lot of stuff we could potentially …fix before shipping a "1.0" release, I think the biggest thing we can do is ship the \`Actor\`/\`Cell\` split as 0.16 (#357) and work to fix everything that breaks as a result :wink:
> 
> What about the rest of the stuff? Well, that's what 2.0 is for!

> **···**
>
> On Wed, Jan 15, 2014 at 2:20 AM, Tiago Cardoso \<honeyryderchuck@gmail.com\>wrote:
> 
> > Groovy!! What's exactly missing for them to be 1.x stable?
> > 
> > Quarta-feira, 15 de Janeiro de 2014 6:59:51 UTC+1, Tony Arcieri escreveu:
> > 
> > > nio4r provides a high performance IO selector API which lets you  
> > > monitor several IO objects for events simultaneously using a single system  
> > > call. It's similar to Kernel.select, but keeps its state between calls.
> > > 
> > > [GitHub - socketry/nio4r: Cross-platform asynchronous I/O primitives for scalable network clients and servers.](https://github.com/celluloid/nio4r)
> > > 
> > > Selectors thunk to the epoll on Linux and kqueue on BSDs, using libev for  
> > > Rubies with C extension support (MRI, Rubinius) and Java NIO on JRuby.
> > > 
> > > We're trying to get all Celluloid dependencies onto 1.x versions this  
> > > year. nio4r is the first! (unless you count timers, which is already on  
> > > 2.0.0). That's right, we're freezing APIs and trying to get things solid.
> > > 
> > > Changes from 0.5.0:
> > > 
> > > \* Have Selector#register obtain the actual IO from a Monitor object  
> > > because Monitor#initialize might convert it  
> > > \* Drop 1.8 support
> > > 
> > > Enjoy!
> > > 
> > > --  
> > > Tony Arcieri
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "Celluloid" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to celluloid-ruby+unsubscribe@googlegroups.com.  
> > For more options, visit [https://groups.google.com/groups/opt\_out\](https://groups.google.com/groups/opt_out%5C).
> 
> --  
> Tony Arcieri
