JRuby / Windows and (native) extensions, how to distinguish them?

I tried to use EventMachine etc. with JRuby. I get errors about my own extensions. I believe this is due to Java limitations. I think the fact that I'm on Windows complicates the problem even more. Some clarification will be explained. What extensions can / cannot be used with JRuby? How can i say Thanks.

+3
source share
2 answers

there is no easy way to use native extensions in jruby. native extensions call c-code, which cannot be called in jruby without its implementation in java. in addition, several extensions see jruby ports, such as EventMachine, which you mentioned.

, , gem/extension jruby, - ,

+1

JRuby , , , C.
JVM, ...

LDomagala, , " "

script RUBY_PLATFORM, , . , .

- ENV var 'NORUBYEXT'.

script...

+2

Source: https://habr.com/ru/post/1702889/


All Articles