akihikodaki / cld3-ruby

cld3-ruby is an interface of Compact Language Detector v3 (CLD3) for Ruby.
Apache License 2.0
78 stars 22 forks source link

JRuby? FFI? #13

Closed headius closed 6 years ago

headius commented 7 years ago

Hello! I just ran into your library while trying to set up Mastodon on JRuby. The extension does not look very big. It would be great if cld3-ruby could work on JRuby!

I was wondering why this library is not simply using FFI? Is it because of C++?

I would like to help get an FFI version (or a JRuby version through some other means) of cld3-ruby!

akihikodaki commented 6 years ago

cld3-ruby uses FFI.

akihikodaki commented 6 years ago

I have identified a problem in JRuby and found a fix. Apply this: https://github.com/jruby/jruby/pull/4118