socketry / cool.io

Simple evented I/O for Ruby (but please check out Celluloid::IO instead)
MIT License
693 stars 47 forks source link

JRuby support #18

Closed anildigital closed 10 years ago

anildigital commented 13 years ago

Does it support JRuby? I ran example with JRuby 1.6.4. It gives me

LoadError: load error: cool.io_ext -- java.lang.UnsatisfiedLinkError: Could not locate Init_cool.io_ext module entry point

tarcieri commented 13 years ago

No JRuby support at the moment, unfortunately :(

I've been thinking a lot about trying to add it on Netty or NIO, we'll see.

I don't have any plans to get it working via C extension at the moment.

kyledrake commented 13 years ago

It would be awesome to be able to use Netty/NIO for this!

semarco commented 12 years ago

+1 jruby support would be awesome and would help msgpack-rpc to run on jruby too :-)

tarcieri commented 12 years ago

A little bit of movement in this direction:

https://github.com/tarcieri/nio4r

This is a cross-Ruby NIO implementation that uses native Java NIO on JRuby and libev on other platforms. It could be used to replace the current cool.io C extension

kyledrake commented 12 years ago

How much work would it entail to implement this with cool.io? What does the current cool.io C extension do that nio4r cannot? I would love to see this happen.

I'd love to work on this, but my knowledge in C is a little rusty.

tarcieri commented 12 years ago

Believe it or not the overwhelming majority of the work would be in Ruby, rewriting Cool.io's guts to use nio4r in lieu of the present C extension.

The things that are missing from nio4r at the moment:

repeatedly commented 10 years ago

We will start JRuby support on another issue.