JRuby with JBang
rockyj-blogs.web.app
rockyj-blogs.web.app
Personally, I've been digging into using JavaFX with JRuby, we'll see how it goes.
https://github.com/jruby/jrubyfx
I think that has the perfect balance between the productivity of Ruby and the benefit of the JVM but allowing me to share standalone portable jar file.
one thing not mentioned is that you can already just do ‘jbang run@jruby’ and run jruby directly if you wish.
At a time I looked into enabling more native jruby support so like jbang can run Java, jsh, groovy and kotlin add first class support for jruby and gems.
If someone interested and know about how to package ruby apps in a jar + addditional files that would be all doable.
And other option is how graalpy provided integration allowing use of //PIP to install packages.
Just ping if interested :)
And for those following along, we keep the jbang configuration updated with every release so you know you're getting the most recent version.
I did and presented something on these lines 11 years ago! When multiple ruby runtimes were a thing.
It feels like adding a JRubySource here [0] shouldn't be too tricky. See the Kotlin one for an example.
[0] https://github.com/jbangdev/jbang/tree/main/src/main/java/de...
There are some extra trickery around ruby gems needing a virtual env to run reliably - but definitely open to adjust/provide needed hook in Jbang if not already present if anyone wants to take a stab at it.