Live data from Hacker News

JRuby 9000 released

blog.jruby.org

111–119 of 119 posts

Re: JRuby 9000 released

#111
post #23

Earlier quoted context omitted.

At least with the previous JRuby, for us the answer is "usually no." If you do any large string ops (hello JSON), or parsing, or use any ruby gems which use exception handling for flow control (which is cheap in MRI, but like 9ms per exception in JRuby) in a loop then you will be slower. Also, SSL connection negotiation is exceedingly slow in JRuby 1.7x (like 100ms) and this made our microservices tough. Using HTTP C…

Do you have anything you can point at regarding String performance? Everything I've seen shows JRuby being faster than MRI. But I'm looking to see if we can make it even faster than it currently is. Any pathological cases would be incredibly helpful.

I can send you an example. Can I drop you an email? I think also that we are friends on linkedin, coincidentally. I can message you there (if that is a useful way to get in touch?).

Re: JRuby 9000 released

#112
post #111

Earlier quoted context omitted.

Do you have anything you can point at regarding String performance? Everything I've seen shows JRuby being faster than MRI. But I'm looking to see if we can make it even faster than it currently is. Any pathological cases would be incredibly helpful.

I can send you an example. Can I drop you an email? I think also that we are friends on linkedin, coincidentally. I can message you there (if that is a useful way to get in touch?).

I sent an email to your email address at nirvdrum with what I've been looking at.

Re: JRuby 9000 released

#113
post #112
post #111

Earlier quoted context omitted.

I can send you an example. Can I drop you an email? I think also that we are friends on linkedin, coincidentally. I can message you there (if that is a useful way to get in touch?).

I sent an email to your email address at nirvdrum with what I've been looking at.

I got it, thanks. And thanks for following up. I'll take a look and let you know what I find.

Re: JRuby 9000 released

#114
post #108

Earlier quoted context omitted.

JRUBY_OPTS="--dev" lowered the startup time to 12 second, basically on par with MRI. Thanks! I googled you suggestion and I found https://github.com/jruby/jruby/wiki/Improving-startup-time I'll try a few suggestions that look like doing with spring does (Theine and Drip). My other problems are with JDBC but if database drivers don't support Ruby's largest use case (Rails with ActiveRecord) probably JRuby will be nega…

FWIW, I've never had any luck with Theine or Drip. But --dev is good stuff - it basically turns off the JIT and invokedynamic, which are great for long-running processes but not that useful for shorter script runs or consoles. JRuby defaults to "good for long-running processes" mode, which is great for production but less useful when running short-lived tasks. Yeah, certainly understood WRT JDBC. But, as nirvdrum poi…

I realized that PostgreSQL can listen to both the Unix domain socket and a TCP address so I've been able to run the tests. I'm stuck now with the integration tests failing because they can't run the Selenium Chrome webdriver. I opened an issue. I also have some failed tests on a model, still didn't looked at them.

I won't convert this app to Sequel only to check that it works with JRuby. Neither I'll write the next one with Sequel. If JRuby doesn't handle AR it's over for me. It's JRuby that must be compatible with MRI (the reference implementation of the language), not the other way around. That until the majority of rubyists use JRuby as default. It's too risky.

Re: JRuby 9000 released

#115
post #21

Earlier quoted context omitted.

Define "newer" and define "poor"? The JRuby team has done a fantastic job of keeping things working. Do you have any specific problems other than vague grumblings? Anyone married to the MRI ecosystem because of dependencies on modules with no JVM equivalent may have problems, but new projects usually have no such issues.

I don't want to complain because it is a free product. But there is no doubt a big lag with activerecord. Rails 4.2 is still not supported: https://github.com/jruby/activerecord-jdbc-adapter/issues/59...

I've used JRuby on a Rails 4.2 project and everything turned out fine on it. Many projects may not use what's not yet supported.

Re: JRuby 9000 released

#116
post #94

So why does JRuby never got as much traction as other jvm langs like clojure, scala, groovy? I have heard good things about the ruby syntax, top that you get unparalleled powers of jvm like gc, cross platform, libs and much more!

Clojure and Scala are pretty good ideas, being modified versions of two leading programming paradigms, i.e. Lisp and Haskell respectively. Groovy is the most JRuby-like of those choices, and probably has far more traction than JRuby because it uses Java syntax and is more heavily promoted.

Re: JRuby 9000 released

#117
post #105

Earlier quoted context omitted.

I've never seen $1 used in production code.

Try grepping your lib directory sometime. In fact, let me do it for you, on a relatively clean install: time, benchmark, irb, pry, rubygems, resolv, erb, rake, open-uri, debug, rack, cgi/util, optparse, getoptlong, bundler, activesupport, actionpack, activemodel, erubis, slim, haml, sass, sequel, roda, nokogiri, rugged, faraday, mime-types, thor, test-unit, tzinfo, mail, ffi

[deleted]

Re: JRuby 9000 released

#118
post #94

So why does JRuby never got as much traction as other jvm langs like clojure, scala, groovy? I have heard good things about the ruby syntax, top that you get unparalleled powers of jvm like gc, cross platform, libs and much more!

For the same reason that alternative implementations of Python never got the kind of traction they deserve, because 90% of the gems, libraries and everything are specifically tailored to MRI and it's always harder to play catch up. Also, the strong anti-Java culture in the Ruby community probably didn't help (even though JRuby has nothing to do with Java, or very little).

Nothing to do with Java? Really? How did you come to that conclusion?

Re: JRuby 9000 released

#119
post #105

Earlier quoted context omitted.

I've never seen $1 used in production code.

Try grepping your lib directory sometime. In fact, let me do it for you, on a relatively clean install: time, benchmark, irb, pry, rubygems, resolv, erb, rake, open-uri, debug, rack, cgi/util, optparse, getoptlong, bundler, activesupport, actionpack, activemodel, erubis, slim, haml, sass, sequel, roda, nokogiri, rugged, faraday, mime-types, thor, test-unit, tzinfo, mail, ffi

Ouch. That's pretty awful.
Post reply on HN