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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How mature is Jython compared to JRuby?

17 点作者 proveanegative超过 9 年前

5 条评论

nostrademons超过 9 年前
It&#x27;s pretty mature, but its place within the Python ecosystem is different from JRuby&#x27;s place in the Ruby ecosystem. Jython is basically an extension language for the JVM: it lets you use the familiar &amp; comfortable Python language to script your JVM languages. Many popular Python packages won&#x27;t work on Jython, either because they depend upon C extensions or because Jython is several versions behind CPython.<p>Ruby has much more of a bias toward writing libraries in pure Ruby, and so a greater portion of the Ruby ecosystem runs on JRuby. Also, Ruby&#x27;s use-cases largely center around Rails and system administration, while Python also has large presences in scientific computing, scriptable C++ network servers, desktop GUI apps, etc, (none of which work on Jython). That makes JRuby very attractive for deploying a Rails frontend on top of JVM backend infrastructure, but the analogous situation in the Python world (Django webapp in front of say Twisted or Celery) won&#x27;t even run on Jython.
zmmmmm超过 9 年前
I don&#x27;t know about &quot;mature&quot;, but my main frustration with jython is that it can&#x27;t use a whole slew of libraries that call on native code. So a whole lot of things that happen to be important to me just aren&#x27;t usable. And they aren&#x27;t that exotic - things like pandas, numpy etc.
hcayless超过 9 年前
My impression is that JRuby is a lot more advanced, particularly from the point of view of parity with its &quot;parent&quot;. That&#x27;s not firsthand knowledge though: I use JRuby a lot, but Jython not for years, so I&#x27;m not plugged in to the latter. My impression is that its development kind of stalled out a few years ago, but maybe has recovered in the last few years.<p>JRuby performs very well, especially if you&#x27;re using it in an environment like a web app, where JVM startup time isn&#x27;t an issue. It&#x27;s definitely better once you reach a certain threshold of usage. I wouldn&#x27;t use it probably for little stuff, but if you&#x27;re getting to the point where you need things like multithreading and garbage collection becomes an issue, then JRuby is a good bet.
veddox超过 9 年前
I don&#x27;t have any experience with Ruby, but I did a Jython project last year and I was rather disappointed. For a start it&#x27;s still stuck on the 2.x versions of Python (I find 3.x <i>much</i> better, esp. for things like Unicode support). Secondly I found it to be really, really s l o w.<p>So while I love the concept of being able to write Python code for the JVM, I&#x27;m probably not going to be doing it again any time soon with Jython.
antod超过 9 年前
Jython is still hanging in there, and reached 2.7 this year. I imagine 3.x compatibility is going to require a big effort though.<p>But JRuby has way more momentum and a much larger userbase.<p>But on the .NET side, IronPython is still ticking along while IronRuby is dead.