Giter Site home page Giter Site logo

JRuby support about cool.io HOT 7 CLOSED

socketry avatar socketry commented on August 14, 2024
JRuby support

from cool.io.

Comments (7)

tarcieri avatar tarcieri commented on August 14, 2024

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.

from cool.io.

kyledrake avatar kyledrake commented on August 14, 2024

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

from cool.io.

semarco avatar semarco commented on August 14, 2024

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

from cool.io.

tarcieri avatar tarcieri commented on August 14, 2024

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

from cool.io.

kyledrake avatar kyledrake commented on August 14, 2024

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.

from cool.io.

tarcieri avatar tarcieri commented on August 14, 2024

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:

  • stability: nio4r is brand new and hasn't seen production use whereas cool.io has
  • timers: nio4r does not provide a timer system (though this could be done in pure Ruby. Celluloid has one)
  • filesystem monitoring: nio4r does not (but could) provide a filesystem monitoring API that uses NIO2 on JRuby

from cool.io.

repeatedly avatar repeatedly commented on August 14, 2024

We will start JRuby support on another issue.

from cool.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.