ruby / readline

Readline Loader
Other
2 stars 5 forks source link

JRuby support #5

Open headius opened 2 years ago

headius commented 2 years ago

JRuby's current readline support is based on the jline library, which has been problematic for us over the years. We would like to get to a place where reline works as well (or more likely much better) so we can just ship this loader with reline support.

I'm not sure the best way to proceed. CRuby appears to still prefer the native extension for readline, only falling back on reline if the extension does not load. I assume this is to preserve all the old behavior of the readline library while still encouraging people to start using reline.

Our readline.rb currently just loads the JRuby extension via our JRuby::Util.load_ext logic. If we continue to ship this extension in any form, we will want to push it as a separate gem (similar to or as part of readline-ext).

Pinging @enebo @kares for thoughts from the JRuby side.

rubyFeedback commented 1 year ago

What is the status of reline in jruby? I think in the long term this may be useful - easier way to have jruby applications work on the commandline without necessarily depending on readline. (Unfortunately reline also has a few minor issues which hopefully can be fixed / polished away before the next xmas release of ruby. And documentation to be improved too.)

headius commented 7 months ago

@rubyFeedback Sorry I missed this question, but reline works on JRuby on most platforms. MacOS on AArch64 is partially supported, and I'm not sure about Windows.