My Recent Pastes (275 and counting)

Recent Pasties by brixen (275 and counting)

Pages: 1 3 4 5 19

Below are summaries of the 15 most recent pasties by brixen.

January 08, 2009
1:08PM EDT
by brixen

1
2
3
4
5
euler:rubinius brian$ cat p.rb
class W
  def work(n=1)
    n.times { 0.upto(0x787) { |x| quux x } }
  end

January 08, 2009
1:05PM EDT
by brixen

1
2
3
4
5
euler:rubinius brian$ time bin/rbx p.rb
  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
----------------------------------------------------------
 24.82     0.86      0.02    40509     0.00     0.02  W#work {}

January 08, 2009
1:45AM EDT
by brixen

1
2
3
4
5
euler:mspec brian$ irb
>> x = [[2, 4], [2, 4]]
=> [[2, 4], [2, 4]]
>> x[0][0] = 1
=> 1

January 07, 2009
1:41PM EDT
by brixen

1
2
3
4
5
diff --git a/vm/profiler.cpp b/vm/profiler.cpp
index 8f93542..1004701 100644
--- a/vm/profiler.cpp
+++ b/vm/profiler.cpp
@@ -173,8 +173,23 @@ namespace rubinius {

January 07, 2009
1:40PM EDT
by brixen

1
2
3
4
5
  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
----------------------------------------------------------
 24.80     0.55      0.04    27006     0.00     0.02  W#work { }
 13.08     0.29      0.00        1     0.10   291.37  #toplevel

January 06, 2009
11:15PM EDT
by brixen

1
2
3
4
5
## run
rubinius 0.10.0 (ruby 1.8.6 compatible) (3966cafbe) (12/31/2009) [i686-apple-darwin9.6.0]
...We ran in the finish event


January 06, 2009
5:24PM EDT
by brixen

1
2
3
4
5
## code

class A
  def foo
    bar

January 06, 2009
4:24PM EDT
by brixen

1
2
3
4
5
euler:rubyspec brian$ mspec -t macruby language/method_spec.rb -f s
MacRuby version 0.4 (ruby 1.9.0 2008-06-03) [universal-darwin9.0, x86_64]
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/prettyprint.rb:286: warning: can't create `Group' as an Objective-C class, because it already exists, instead using `RBGroup'
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/pp.rb:266: warning: can't create `SingleLine' as an Objective-C class, because it already exists, instead using `RBSingleLine'

January 06, 2009
4:21PM EDT
by brixen

1
2
3
4
5
euler:rubyspec brian$ mspec -t macruby language/constants_spec.rb 
MacRuby version 0.4 (ruby 1.9.0 2008-06-03) [universal-darwin9.0, x86_64]
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/prettyprint.rb:286: warning: can't create `Group' as an Objective-C class, because it already exists, instead using `RBGroup'
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/pp.rb:266: warning: can't create `SingleLine' as an Objective-C class, because it already exists, instead using `RBSingleLine'
.............................E....E.....E.E...

January 06, 2009
4:14PM EDT
by brixen

1
2
3
4
5
euler:rubyspec brian$ mspec -t macruby core/array/append_spec.rb 
MacRuby version 0.4 (ruby 1.9.0 2008-06-03) [universal-darwin9.0, x86_64]
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/prettyprint.rb:286: warning: can't create `Group' as an Objective-C class, because it already exists, instead using `RBGroup'
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/pp.rb:266: warning: can't create `SingleLine' as an Objective-C class, because it already exists, instead using `RBSingleLine'
...

January 06, 2009
2:49PM EDT
by brixen

1
## running instrumenting profile on array specs

January 06, 2009
2:41PM EDT
by brixen

1
2
3
4
5
euler:rubinius brian$ bin/rbx p.rb
[3230, 2971, 1, "Class\#new"]
[259, 259, 1, "Object\#initialize"]
[4857175714, 5431, 1, "A\#bar"]
[4857170283, 18436, 1, "Integer\#times"]

January 05, 2009
2:51PM EDT
by brixen

1
2
3
4
5
## qualified module names

class Rubinius::Profiler::Sampler
end

January 05, 2009
2:50PM EDT
by brixen

1
2
euler:shotgun brian$ bin/rbx -e 'p (30..35).to_a.map {|x| (2**x).to_f}'
[1073741824.0, 2147483648.0, 4294967296.0, 8589934592.0, 17179869184.0, 34359738368.0]

January 04, 2009
11:04PM EDT
by brixen

1
2
3
4
5
>> class A
>> @@cvar_a = :a
>> end
=> :a
>> class B

Next page