If I have JRuby installed on Rails, can I only use Ruby?

What do I mean if I install jRuby on Rails, can I only use ruby ​​language to build my application? I wanted to install the rails application using jRuby in case I wanted to use Java in the future, although now I don't need it. Or I do not understand? Is jRuby ruby ​​access to java libraries?

+3
source share
2 answers

yes, jruby - ruby ​​(your ruby ​​scripts do not need to be modified to run under jruby). it also has full access to java libraries - check out the wiki for how easy it is to integrate a java class or library into your ruby ​​code.

+4
source

Others answered your direct question. I just want to say that I have been using jruby full time at work for the past 6 months, which is great. Deploying a rail application using a glass fish gem is very simple, and jruby works better than a ruby ​​MRI 1.8.x.

6 , , , , C. C FFI, t .

, java ( C).

+1

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


All Articles