[Documentation] (1) jruby versus ruby one click installer, and (2) GraalVM #6804
-
Hey guys, Sorry to do two issues in one but I felt it was easier. The first issue is more important; Anyway. (1) I use Linux most of the time but I have a win10 laptop. I recently ran into a Again - user error here. I forgot that I had jruby, and that this jruby was installed Of course we can check via RUBY_VERSION. So, this is ultimately all coming But! Perhaps I am not the only one who may have had more than one ruby version So this brings me to my question and the main reason for this issue - I hope
I would very much appreciate if someone who has knowledge about the jruby I batch-install my own gems anyway and I have a .rb file that does this, This is what I would love to read in the documentation. https://www.jruby.org/documentation is quite sparse, so perhaps in the Which brings me to ... (2) GraalVM Eregon probably knows a lot about it due to truffle ruby and what not. At the least to me this is all a bit complicated right now. Yes, a lot of On windows this is a little bit more complicated and the more ruby Sorry to be docu-annoying but I really feel jruby could benefit from Don't worry about (2) too much though - (1) is really the main gist |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
@rubyFeedback I agree that we should improve our documentation. If you feel so inclined perhaps after some comments then you can maybe adjust our wiki a little bit? We do make efforts but we are fairly burdened with just updating JRuby itself. It is a time-old problem that documentation gets neglected. The windows issue and having multiple versions is the same issue if you had two versions of C Ruby installed. I have never been asked about maintaining both before for windows itself but it is too bad projects like https://github.com/vertiginous/pik did not succeed (although perhaps it still works ok). This would make working with multiple Ruby versions much simpler. Here is one thought: remove bin/ruby.bat from JRuby install so you when you type ruby you will get one-click and when you type jruby you will obviously run JRuby. Another thing is you can guard against accidentally running a particular script by checking RUBY_ENGINE. It is more what you want than RUBY_VERSION. The other somewhat obvious solution would be to make a bat script to switch between Rubies by updating PATH (which likely will contain something like %RUBY_LOCATION% in the %PATH% variable. I think with power shell you could even print out which ruby you were using using env vars in your prompt? I am not a windows user tbh. I half wonder if this does exist for some Ruby user who has n Ruby versions they want to test windows with. If you figure out or someone else has better recommendations we can create a wiki page on this. As for things like how do we compare to competing projects like TruffleRuby or CRuby I think we definitely should make that and probably engage those projects to make sure we are not saying something they will object to. GraalVM itself can run JRuby fine as a JVM but to answer the only question you posed (as an example) no TruffleRuby will not obsolete JRuby. We do not have a complete set of overlapping features (like we have a goal to run well on all JVMs) and we have a lot of production users. I agree though we definitely need to address this confusion in particular since we get asked this quite a bit. |
Beta Was this translation helpful? Give feedback.
-
@rubyFeedback - thanks for the question.
I work mainly on Windows 10 and want to help people who are facing problems like yours on Windows :-) |
Beta Was this translation helpful? Give feedback.
-
@mohits Thanks for that post recommending pik. I made the mistake of assuming a project with no commits for years was dead (or unworking). |
Beta Was this translation helpful? Give feedback.
-
Since there's no real issue here I have converted this to a discussion. Thank you for raising these questions! |
Beta Was this translation helpful? Give feedback.
@rubyFeedback I agree that we should improve our documentation. If you feel so inclined perhaps after some comments then you can maybe adjust our wiki a little bit? We do make efforts but we are fairly burdened with just updating JRuby itself. It is a time-old problem that documentation gets neglected.
The windows issue and having multiple versions is the same issue if you had two versions of C Ruby installed. I have never been asked about maintaining both before for windows itself but it is too bad projects like https://github.com/vertiginous/pik did not succeed (although perhaps it still works ok). This would make working with multiple Ruby versions much simpler.
Here is one thought: re…