Skip to content
View hazel2.rb
topic = com.hazelcast.core.SampleHazelcast.getTopic "default"
topic.addMessageListener { |msg| puts "Message received = " + msg }
topic.publish "my-message-object"
View 1.benchmark.rb
require 'benchmark'
10.times do |i|
ary = [1]
ary2 = [2]
i.times { ary = [ary]; ary2 = [ary2] }
puts "recursive levels = #{i}"
10.times do
View reuse_processor.md

JRuby master + indy (first iteration is unusually long):

Reading file...
Calculating -------------------------------------
             kaf.xml     1.000  i/100ms
-------------------------------------------------
             kaf.xml     27.430  (±51.0%) i/s -     68.000 
Calculating -------------------------------------
             kaf.xml     4.000  i/100ms
-------------------------------------------------
View faster_type_converters.diff
diff --git a/core/src/main/java/org/jruby/Ruby.java b/core/src/main/java/org/jruby/Ruby.java
index 3be97a4..50a2a0c 100644
--- a/core/src/main/java/org/jruby/Ruby.java
+++ b/core/src/main/java/org/jruby/Ruby.java
@@ -4067,6 +4067,19 @@ public final class Ruby implements Constantizable {
}
/**
+ * @param exceptionClass
+ * @param message
View enebo.basic
10 GR
20 COLOR=6
30 HLIN 0,39 AT 0
40 VLIN 0,39 AT 39
50 HLIN 0,39 AT 39
60 VLIN 0,39 AT 0
65 COLOR=3
70 HLIN 3,7 AT 5:HLIN 9,11 AT 5:HLIN 13,14 AT 5:HLIN 16,17 AT 5:HLIN 15,15 AT 6:VLIN 5,10 AT 5:VLIN 5,10 AT 9
80 HLIN 9,11 AT 10:VLIN 5,10 AT 11:VLIN 5,10 AT 13:VLIN 5,10 AT 17
85 COLOR=13
View 1. setVariable.java
/**
* Set the given variable index into the specified object. The "real" class
* and index are pass in to provide functional access.
*
* @param self the object into which to set the variable
* @param realClass the "real" class for the object
* @param index the index of the variable
* @param value the variable's value
*/
public static void setVariable(RubyBasicObject self, RubyClass realClass, int index, Object value) {
View gist:6f5ddeb9cbad33ed155d
AppleCare
bready
checkins
cuppa
daemonization
Ducktales
en
fam
Grey
hardware-accelerated
View jruby_9000.md

The complete version of this post is available on the JRuby blog.

(JRuby is an implementation of the Ruby programming language atop the Java virtual machine, bringing true parallelism, increased performance, and world-class GC to the Ruby world.)

JRuby 9000 is the ninth major release of JRuby. We opted to go with 9000 as a code name and 9.0.0.0 as a version number to separate it from Ruby's version numbers (1.8, 1.9, 2.0 etc).

JRuby 9000 represents years of work by dozens of contributors. It is the single largest JRuby release we've ever done.

  • Compatibility is now up to Ruby 2.2 specification, a leap forward from JRuby 1.7's compatibility with Ruby 1.9.3. This includes all language and syntax features and many updates to core libraries.
  • The execution runtime has been completely rewritten over the past five years, enabling anyone who has taken a college compilers course to contribute help improve JRuby performance.
View Gemfile
source 'https://rubygems.org'
gem 'sequel'
gem 'progress_bar'
gem 'pg'
gem 'aws-sdk'
gem 'oga'
View gist:1900d41e760821fbedf8
diff --git a/src/main/java/org/jruby/ext/openssl/SSL.java b/src/main/java/org/jruby/ext/openssl/SSL.java
index 5bbc76d..79f12b7 100644
--- a/src/main/java/org/jruby/ext/openssl/SSL.java
+++ b/src/main/java/org/jruby/ext/openssl/SSL.java
@@ -183,7 +183,7 @@ public class SSL {
if ( errorClass == null ) { // < Ruby 2.0
errorClass = _SSL(runtime).getClass("SSLError"); // fallback
}
- return Utils.newError(runtime, errorClass, message, false);
+ return Utils.newLightweightError(runtime, errorClass, message, false);
Something went wrong with that request. Please try again.