My Recent Pastes (901 and counting)

Pastes by headius (901 and counting)

Pages: 1 2 4 5 61

Below are the 15 most recent pasties by headius.

January 21, 2009
3:14PM EDT
by headius

 
    it "evaluates block pass after receiver" do
      p1 = proc {true}
      p2 = proc {false}
      p1.should_not == p2

January 09, 2009
8:48PM EDT
by headius

     [java] 1 example, 0 failures
     [echo] compile=OFF, threshold=20, objectspace=true threadpool=false reflection=false
     [java] (in /Users/headius/projects/jruby)
     [java] /Users/headius/projects/jruby/lib/ruby/1.8/ffi/library.rb:2: Unable to load library '': dlopen(lib.dylib, 1): image not found (LoadError)
     [java]         from /Users/headius/projects/jruby/lib/ruby/1.8/ffi/library.rb:58:in `require'

January 03, 2009
12:03AM EDT
by headius

It's not really a comparison of apples to apples here:

* The JavaFX version is probably using primitives. Groovy and JRuby are using boxed numbers. So this becomes more of a boxed number allocation/GC benchmark than anything else.
* The JavaFX version is doing direct static dispatch. Groovy and JRuby are doing dynamic dispatch. Groovy may also be using reflection and boxing the argument list.

December 31, 2008
6:35PM EDT
by headius

   L0
    LINENUMBER 1 L0
    ALOAD 5
    INVOKESTATIC org/jruby/RubyFixnum.one (Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
    DUP

December 31, 2008
6:22PM EDT
by headius

   L0
    LINENUMBER 1 L0
    ALOAD 5
    INVOKESTATIC org/jruby/RubyFixnum.one (Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
    DUP

December 31, 2008
5:05PM EDT
by headius

[headius @ cnutter:~/projects/duby]
◆ bin/dubyc -e "def fib(a => :fixnum); if a < 2; a; else; fib(a - 1) + fib(a - 2); end; end"
[headius @ cnutter:~/projects/duby]
◆ javap -c dash_e
Compiled from dash_e

December 31, 2008
4:39PM EDT
by headius

◆ jruby -S spec specs/number_spec.rb 
......................................FF....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

1)
RangeError in 'Function with primitive integer arguments :ulong call(:ulong (9223372036854775808))'

December 31, 2008
4:04PM EDT
by headius

◆ ant
Buildfile: build.xml
Duplicated project name in import. Project jffi defined first in /Users/headius/projects/jffi~core/build.xml and again in /Users/headius/projects/jffi~core/custom-build.xml

-pre-init:

December 31, 2008
2:57PM EDT
by headius

     [echo] compile=OFF, threshold=20, objectspace=true threadpool=false reflection=false
     [java] (in /Users/headius/projects/jruby)
     [java] /Users/headius/projects/jruby/lib/ruby/1.8/ffi/library.rb:49:in `attach_function': Function 'qsort' not found in [] (FFI::NotFoundError)
     [java]         from spec/ffi/callback_spec.rb:7

December 28, 2008
7:56PM EDT
by headius

diff --git a/src/org/jruby/RubyYAML.java b/src/org/jruby/RubyYAML.java
index e464f0f..3a8c803 100644
--- a/src/org/jruby/RubyYAML.java
+++ b/src/org/jruby/RubyYAML.java
@@ -432,8 +432,10 @@ public class RubyYAML {

December 28, 2008
7:49PM EDT
by headius

    @JRubyMethod(name = "dump_all", required = 1, optional = 1, module = true, visibility = Visibility.PRIVATE)
    public static IRubyObject dump_all(IRubyObject self, IRubyObject[] args) {
        ThreadContext context = self.getRuntime().getCurrentContext();
        RubyArray objs = (RubyArray)args[0];

December 28, 2008
6:56PM EDT
by headius

diff --git a/src/org/jruby/Ruby.java b/src/org/jruby/Ruby.java
index b10990f..6c79b36 100644
--- a/src/org/jruby/Ruby.java
+++ b/src/org/jruby/Ruby.java
@@ -2783,9 +2783,9 @@ public final class Ruby {

December 18, 2008
2:04PM EDT
by headius

[headius @ cnutter:~/projects/jruby]
◆ jruby --1.9 -rffi/times -rbenchmark -e "str = '1234567890' * 100_000; 10.times { puts Benchmark.measure { str.each_char {|c| } } }"
  0.420000   0.020000   0.440000 (  0.352654)
  0.220000   0.010000   0.230000 (  0.204275)
  0.170000   0.000000   0.170000 (  0.173804)

December 17, 2008
12:51PM EDT
by headius

Index: src/java/org/jruby/ext/openssl/x509store/X509Utils.java
===================================================================
--- src/java/org/jruby/ext/openssl/x509store/X509Utils.java (revision 1135)
+++ src/java/org/jruby/ext/openssl/x509store/X509Utils.java (working copy)
@@ -32,6 +32,7 @@

December 17, 2008
10:19AM EDT
by headius

## JRuby
◆ jruby bench/bench_fib_recursive.rb 5 35
  2.423000   0.000000   2.423000 (  2.423386)
  2.042000   0.000000   2.042000 (  2.041195)
  2.039000   0.000000   2.039000 (  2.038741)

Next page

Previous page