My Recent Pastes (353 and counting)

Browse Pastes by brixen (353 and counting)


April 14, 2009
9:24PM EDT
by brixen

gauss:rubinius brian$ gdb --args vm/vm mspec/bin/mspec-ci --profile
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.

April 14, 2009
5:26PM EDT
by brixen

## before
gauss:rubinius brian$ bin/rbx prof.rb 
  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
----------------------------------------------------------
 25.19     2.06      0.00      201     0.00    10.24  #toplevel
 24.93     2.04      0.00      200     0.01    10.18  Object#work

April 11, 2009
3:21PM EDT
by brixen

diff --git a/kernel/alpha.rb b/kernel/alpha.rb
index 55d4eb4..5627a99 100644
--- a/kernel/alpha.rb
+++ b/kernel/alpha.rb
@@ -101,6 +101,34 @@ module Kernel
   def method_missing(meth, *args)
     raise NoMethodError, "Unable to send '#{meth}' on '#{self}' (#{self.class})"

April 11, 2009
3:20PM EDT
by brixen

diff --git a/kernel/alpha.rb b/kernel/alpha.rb
index 55d4eb4..e19fe9b 100644
--- a/kernel/alpha.rb
+++ b/kernel/alpha.rb
@@ -101,6 +101,39 @@ module Kernel
   def method_missing(meth, *args)
     raise NoMethodError, "Unable to send '#{meth}' on '#{self}' (#{self.class})"

April 11, 2009
3:00PM EDT
by brixen

diff --git a/kernel/alpha.rb b/kernel/alpha.rb
index 55d4eb4..e19fe9b 100644
--- a/kernel/alpha.rb
+++ b/kernel/alpha.rb
@@ -101,6 +101,39 @@ module Kernel
   def method_missing(meth, *args)
     raise NoMethodError, "Unable to send '#{meth}' on '#{self}' (#{self.class})"

April 10, 2009
6:08PM EDT
by brixen

"/Users/brian/devel/rubinius/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/templates/**/*/**"
"/Users/brian/devel/rubinius/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/templates/rescues"
true
:yes
:yes
[["", :recursive], ["**", :magic], ["", :match_all]]
0

April 08, 2009
2:49PM EDT
by brixen

eval <<-EOM
for i in [1, 2, 3]
  p i
end

p i
EOM

March 30, 2009
10:00PM EDT
by brixen

# Simplistic runner
formatter = DottedFormatter.new
formatter.register

monitor = ShouldSpecsMonitor.new
MSpec.register :expectation, monitor
MSpec.register :finish, monitor

March 29, 2009
3:10AM EDT
by brixen

#define cCApiHandleQfalse         ((VALUE)(0x00))
#define cCApiHandleQtrue          ((VALUE)(0x22))
#define cCApiHandleQnil           ((VALUE)(0x42))
#define cCApiHandleQundef         ((VALUE)(0x62))

#define CAPI_BOOL_MASK            0x7f

March 25, 2009
6:29PM EDT
by brixen

index e0a9bf6..fb89e5a 100644
--- a/vm/builtin/nativemethod.cpp
+++ b/vm/builtin/nativemethod.cpp
@@ -14,6 +14,8 @@
 #include "builtin/string.hpp"
 #include "builtin/tuple.hpp"
 

March 24, 2009
11:43AM EDT
by brixen

  # The set of substitutions to transform a spec filename
  # into a tag filename.
  set :tags_patterns, [
                        [%r(spec/ruby/), 'spec/frozen/'],
                        [%r(spec/), 'spec/tags/'],
                        [/_spec.rb$/, '_tags.txt']
                      ]

March 23, 2009
12:48PM EDT
by brixen

gauss:rubinius brian$ bin/rbx 
irb(main):001:0> 0xffff_ffff.coerce(1)
=> [1, 4294967295]
irb(main):002:0> 0xffff_ffff.coerce(1).map { |x| x.class }
=> [Bignum, Bignum]

March 20, 2009
5:12PM EDT
by brixen

gauss:stackfull brian$ bin/mspec ci library/digest -fs
rubinius 0.11.0-dev (ruby 1.8.6) (ac3e96cca 12/31/2009) [i686-apple-darwin9.6.0]

Digest::MD5#<<
- can update

Digest::MD5#block_length

March 18, 2009
4:53PM EDT
by brixen

2541 files, 10412 examples, 34689 expectations, 10 failures, 268 errors, 262 guards


2 specs omitted by guard: ruby_version_is ...1.8:

Array#* with an integer does not copy the taint status of the original array if the passed count is 0
Array#pack with float format may complain overflow when the passed integer is too large

March 18, 2009
1:43PM EDT
by brixen

irb(main):003:0> ^Dgauss:stackfull brian$ gdb --args vm/vm
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.

Next page