开发者

Jruby, What popular ruby gems use C under the hood?

开发者 https://www.devze.com 2023-02-08 08:28 出处:网络
From what I understand, to use Jruby you basically convert the project to a .jar and deploy to tomcat etc.

From what I understand, to use Jruby you basically convert the project to a .jar and deploy to tomcat etc.

But you can't use any gems that are written in c correct?

Which popular gems use c under the hood that I sho开发者_JAVA技巧uld look out for?

Any other incompatibilities?


But you can't use any gems that are written in c correct?

Yet, but JRuby 1.6 (currently in RC1) adds experimental support for C extensions.

Which popular gems use c under the hood that I should look out for?

Several Gems have JAVA alternatives or native implementation, such as Nokogiri. Which Gem really depends on your project: God, Bcrypt-Ruby, etc.


  • BlueCloth is a reasonably-popular gem that is written in C.
  • The pg gem providing native PostgreSQL support is also rather popular.
0

精彩评论

暂无评论...
验证码 换一张
取 消