JRuby 9.1.0.0 Released

Tuesday, May 03 2016

The JRuby community is pleased to announce the release of JRuby 9.1.0.0

JRuby 9000 is the newest major version of JRuby, representing years of effort and large-scale reboots of several JRuby subsystems. It is expected to be compatible with Ruby 2.x and stay in sync with C Ruby. JRuby 9.1.0.0 is our latest release…

Major features of JRuby 9000:

  • Ruby 2.x compatibility
  • A new optimizing runtime based on a traditional compiler design
  • New POSIX-friendly IO and Process
  • Fully ported encoding/transcoding logic from MRI

If you do find issues then report them on using our issue tracker at https://github.com/jruby/jruby/issues. We also encourage users to join our IRC channel (#jruby on Freenode) and mailing lists. You may also follow @jruby on Twitter for updates.

Notable updates since 9.0.5.0

  • Ruby 2.3 Compatible (language and standard library) (i)
  • Fixed performance and behavior regressions from 9.0.5.0
  • Added several JIT optimizations missed in initial 9k release
  • Fixed most of the outstanding parser bugs
  • RubyGems updated to 2.6.4
  • Many improvements to our Java Integration
  • 114 issues fixed for 9.1.0.0

(i) We have a large majority of Ruby 2.3 features but we are not completely done. You can follow our remaining work by tracking this issue.

Truffle

JRuby 9000 includes an preliminary version of support for the Truffle language implementation framework and Graal JIT compiler from Oracle Labs. In future releases, Truffle will provide an extremely high performance and compatible backend for JRuby. The Truffle backend supports almost all Ruby language features and the majority of the core library, and is able to run simple gems and web frameworks such as Sinatra. It has no support for RubyGems, Rails or any database drivers, and does not work on Windows. However we are now interested in people submitting issues for small gems with minimal dependencies who see issues running on JRuby+Truffle

Graal has been integrated into Java 9 early access builds, and can be used today as part of the GraalVM, which is currently the recommended way to run JRuby+Truffle.

More information on Truffle and Graal can be found in the JRuby Wiki.

Github Issues resolved for 9.1.0.0

  • #3838 - Compilation fails with openjdk8 u92
  • #3833 - Fixnum#bit_length - uses bit inversion when the value is negative
  • #3832 - Fix a bug where NameError#receiver raises an ArgumentError after #to_s is called
  • #3831 - Fixes Fixnum#bitLength when the value is negative.
  • #3830 - Adds method #bitLength to Bignum
  • #3829 - Fixnum#bit_length always returns 64 for negative number
  • #3827 - Bignum#bit_length is missing
  • #3820 - Error when rspec loads files using Refinements
  • #3818 - `n ** m` is slow
  • #3811 - Time.parse should coerce argument into a String
  • #3809 - bind (abstract) methods when implementing interface
  • #3802 - moving Ruby Java extensions into native
  • #3796 - Refinements causes "ArgumentError: tried to create Proc object without a block"
  • #3791 - Add option to enable ir writing on-the-fly
  • #3790 - [ji] java.util.Collection should not be to_ary convertible
  • #3789 - [ji] java.lang.Throwable should not provide to_str
  • #3787 - Recent CI snapshots give warning on load of openssl
  • #3779 - improved method arities on become_java!
  • #3777 - trycatch blocks are being defined inefficiently in the JIT
  • #3773 - cleanup NativeException
  • #3763 - Syntax error with &.< in combination with other operators
  • #3762 - File.open ignores :universal_newline options on Windows
  • #3758 - Fix strftime %Z to act like CRuby
  • #3757 - Some cases of assignment in conditional do not warn as in MRI
  • #3754 - [ji] package (internal) refactoring
  • #3752 - Removing 'new' class method from interfaces #3275
  • #3750 - load path from the command line -I should use the same splitting as for GEM_PATH
  • #3744 - Performance issue when connected to network
  • #3741 - Consider dropping -Xss from launcher
  • #3734 - compiled .rb does not handle rest kwargs right
  • #3733 - ActiveSupport EventedFileUpdateChecker wrong number of arguments in JRuby
  • #3723 - lazy secure random
  • #3722 - thread-context refactor backtrace retrieval
  • #3718 - RubyGems after 2.4.8 is broken on JRuby
  • #3711 - Passing in command line arguments containing "%20n" causes jruby to abort with error "%n in writable segment detected"
  • #3703 - JRuby 9.0.5.0: uninitialized variables assigned to self as default method argument cause org.jruby.ir.operands.UndefinedValue
  • #3699 - Improving error message when flock is not available
  • #3686 - Regression in overcommit's tests in JRuby 9000
  • #3682 - set ClassloaderDelegate(false) as default for OSGiIsolatedScriptingContainer + IsolatedScriptingContainer
  • #3679 - Parser seems to choke on Japanese-encoded text
  • #3676 - can not install ruby-maven on jruby from jruby-dist archives
  • #3669 - Autoload of module broken for Ruby subclass of Java class
  • #3668 - Object#try(:squeeze!) raises an array index out of bounds exception
  • #3666 - NKF still uses Charset transcoding rather than jcodings
  • #3664 - File#pos fails for files greater than java.lang.Integer::MAX_VALUE on 64-bit systems
  • #3659 - Resolv fails under load with SocketError: bind: name or service not known
  • #3658 - Implement Process::setproctitle
  • #3654 - `Exception#cause` is difference behavior with CRuby 2.3.0
  • #3653 - `system` method is different behavior from JRuby 1.7.x and CRuby 2.3.x
  • #3652 - Lock is not released at Kernel.require when Gem.try_activate throws RuntimeException
  • #3651 - Compile of method call with block return results is "is not compiled Ruby; use java_import to load normal classes"
  • #3650 - Hash#compare_by_identity does not work correctly when key is destructively changed
  • #3649 - prime? very slow
  • #3647 - Encoding::ConverterNotFoundError when using Encoding.default_internal
  • #3646 - Dir::Tmpname.make_tmpname inconsistent with Ruby 2.2+
  • #3645 - AWS SDK Uninitialized Constant Error
  • #3643 - Somehow super stopped working in jruby 9.0.5.0
  • #3639 - superclass production in parser became less restrictive in 2.3
  • #3638 - Class cast in parser
  • #3636 - DEAD: marking instr dead!!
  • #3633 - Failures in JRuby 9.0.5.0 on Sinatra build
  • #3632 - JRuby 1.7.24 - REXML bad encoding issue
  • #3631 - Override of Gem.path_separator cause gem update --system to fail
  • #3628 - Command line flag '-p' doesn't reflect changes made to $_
  • #3627 - Process#spawn error when redirecting error to stdout (jruby 9.0.4.0)
  • #3626 - 9.0.5.0 numerical computation regression
  • #3620 - JRUBY_OPTS gives misleading warning
  • #3618 - blacklist ppc64 Linux from windows installer packaging
  • #3616 - Time.at loses precision when using BigDecimal as argument
  • #3613 - LoadError with 'compiled' ruby files with JRuby9000 (using rescue)
  • #3567 - [2.3] Parser does not recognize lonely operator after do...end
  • #3565 - [2.3] Missing <<~ heredoc form
  • #3548 - Refinements in method bodies aren't activated
  • #3541 - Warning: setEvalType unimplemented in org.jruby.RubySymbol$1
  • #3536 - [ruby 2.3 Feature #10718] IO#close should not raise IOError on closed IO objects.
  • #3535 - [ruby-2.3 Feature #11785] add `encoding:` optional argument to String.new
  • #3533 - [ruby-2.3] Feature #10984 - Hash comparison operators
  • #3532 - [ruby-2.3] Feature #10730: Implement Array#bsearch_index
  • #3517 - [ruby-2.3 feature #10769] add Enumerable#chunk_while, spec for it
  • #3516 - ArrayStoreException using Google's google-api-client and autoparse gems
  • #3513 - case/when eqq calls do not cache
  • #3510 - [Ruby-2.3] - Pathname#descend and Pathname#ascend supported blockless…
  • #3507 - JRuby 2.2 mode inconsistent with MRI 2.1+
  • #3498 - [Ruby-2.3] - Implements Enumerable#grep_v
  • #3491 - Frozen string optimizations from MRI
  • #3490 - remove "initial_state" argument of Enumerable#{slice_before,chunk}
  • #3486 - [Ruby-2.3] - Implements Hash#fetch_values
  • #3481 - implement Coverage.peek_result
  • #3479 - Ruby 2.3 support
  • #3475 - proc-to-interface dispatch method collision using Java 8 streams
  • #3473 - IO.popen with file mode w does not close stream and hangs on Win7
  • #3469 - beyond JRuby's StandardErrorLogger
  • #3458 - Ruby 2.3's #dig
  • #3454 - Passing a ruby class as a java.lang.Class into Java land
  • #3435 - File.seek fails on large file
  • #3386 - Ripper on 9.0.x.x reports wrong line number
  • #3370 - treat deadlocks as circular require - as MRI does it
  • #3341 - autoload & require deadlock
  • #3318 - Autoloading appears to lead to race conditions
  • #3275 - should not be able to instantiate an interface (using new)
  • #3261 - isutf8 exception Jruby 9.0.00
  • #3206 - Invocation of become_java! instances fails with "cannot make variable arity"
  • #3094 - NoMethodError being reported as "UndefinedValue.java:52:in `undefinedOperation': java.lang.RuntimeException: IR compiler/interpreter bug: org.jruby.ir.operands” in jruby-9.0.0.0.pre2
  • #2977 - Weird error when refinement is used in rspec
  • #2403 - Unicode characters are lost when embedding JRuby even if the calling code performs no conversion to byte[]
  • #2147 - TestParse#test_named_capture_conflict
  • #2127 - Method name encoding seems off
  • #2124 - Optional args that self-reference must resolve
  • #1981 - Wrong number of reported lines in Coverage API
  • #1925 - jruby can't use it's own java classes
  • #1285 - Broken JRuby and UTF-8 method names
  • #1249 - JDK8 provides its own List#sort, Map#replace, and Map#merge
  • #1196 - Coverage reports wrong number of lines
  • #621 - UDPSocket#send copies data multiple times