-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support JRuby? #53
Comments
JRuby is missing too many things right now to work correctly with io-event and the fiber scheduler but it's on their roadmap. |
I'd like to see a pure version of io-event which does not have a native extension at all. Can the current state of non-blocking IO in Ruby support this ideal? Right now I have to install a compiler on the production machine to install the Async gem (console gem has the same problem in requiring the json gem). |
If there is a way to bail out of native extension compilation when it is not possible, that would work, and it will fall back to the pure Ruby implementation using See rubygems/rubygems#6569 for the kind of generic support we need to "optionally compile this extension" without working around all the very specific, hard coded build processes that are implemented in rubygems. If you have time to support or augment this request some how, I'd greatly appreciate it.
Is there any reason why we can't avoid that too by falling back to a pure Ruby implementation?
I understand the general concept, but |
Just as one other thought, is there any way to pre-compile and vendor these gems in an application itself? |
I discovered from reading RubyGems extension compiling code, that it will not check if a |
This is what I'm trying to avoid [hacky] :p but definitely appreciate your suggestion :) Oh, one more thing is that it requires me to add a dependency on |
I had my own fork on nio4r where I ripped out the native extension. I'm trying to avoid the same here, maybe instead I should do the research on how to make native extensions optional. Sounds like a pretty killer blog post if anyone else wants to get to it before me. |
It's probably possible to just do this:
and in
|
@ioquatix RubyGems require 'mkmf'
create_makefile 'test'
|
@mperham would that work for you? It still seems like you'd need some developer tools installed. |
cc @simi |
It's an improvement, I'd still have to install make but that's far less than a full compiler suite. |
I have the same issue when install io-event. Are there any solution? |
I would like to use the async gems under JRuby, but the
io-event
gem contains C extensions.The text was updated successfully, but these errors were encountered: