TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JRuby with JBang

76 点作者 rockyj5 个月前

7 条评论

Alifatisk5 个月前
JRuby is such an exciting technology, but I felt like this article was more focused on JBang and Javalin than JRuby, but I get it, the goal was to make it work in JRuby.<p>Personally, I&#x27;ve been digging into using JavaFX with JRuby, we&#x27;ll see how it goes.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jruby&#x2F;jrubyfx">https:&#x2F;&#x2F;github.com&#x2F;jruby&#x2F;jrubyfx</a><p>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.
评论 #42491589 未加载
评论 #42504591 未加载
maxandersen5 个月前
creator of JBang here - nice article.<p>one thing not mentioned is that you can already just do ‘jbang run@jruby’ and run jruby directly if you wish.<p>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.<p>If someone interested and know about how to package ruby apps in a jar + addditional files that would be all doable.<p>And other option is how graalpy provided integration allowing use of &#x2F;&#x2F;PIP to install packages.<p>Just ping if interested :)
评论 #42504604 未加载
brutuscat5 个月前
Thx for this! Is good to see that we can still interoperatividad.<p>I did and presented something on these lines 11 years ago! When multiple ruby runtimes were a thing.<p><a href="https:&#x2F;&#x2F;speakerdeck.com&#x2F;brutuscat&#x2F;jruby-experiences" rel="nofollow">https:&#x2F;&#x2F;speakerdeck.com&#x2F;brutuscat&#x2F;jruby-experiences</a>
kitd5 个月前
I like that this works, but it would be nice if it could all be done in JRuby without the Java shim.<p>It feels like adding a JRubySource here [0] shouldn&#x27;t be too tricky. See the Kotlin one for an example.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;jbangdev&#x2F;jbang&#x2F;tree&#x2F;main&#x2F;src&#x2F;main&#x2F;java&#x2F;dev&#x2F;jbang&#x2F;source&#x2F;sources">https:&#x2F;&#x2F;github.com&#x2F;jbangdev&#x2F;jbang&#x2F;tree&#x2F;main&#x2F;src&#x2F;main&#x2F;java&#x2F;de...</a>
评论 #42492879 未加载
steinuil5 个月前
I was expecting the post to go into using the JRuby API to run the scripts rather than shelling out to a binary and was left a little disappointed. Still, it looks like a nice way to get everything running quickly.
theanonymousone5 个月前
Does this solution also guarantee IDE support for code completion in the Java libraries in the JRuby code? Such things are a huge deal(breaker) in the Java ecosystem. But maybe not in Ruby?
dominicrose5 个月前
What about TruffleRuby?