My Recent Pastes (12 and counting)

Recent Pasties by agardiner (12 and counting)

Below are summaries of the 12 most recent pasties by agardiner.

April 23, 2008
11:47PM EDT
by agardiner

1
2
3
4
5
class Foo
  def self.settings_map
    @@settings_map ||= {}
  end

February 29, 2008
12:19AM EDT
by agardiner

1
2
3
4
5
Before allocate: om->contexts->current is 0xb738d4c4
After allocate: om->contexts->current is 0xb738d53c
Before allocate: om->contexts->current is 0xb738d53c
After allocate: om->contexts->current is 0xb738d5ac
Before retire: om->contexts->current is 0xb738d5ac

February 14, 2008
1:35AM EDT
by agardiner

1
2
3
4
5
macro size: 1161
block 0: 0x8084b38
  ip | op|              op name |  block | size
-----------------------------------------------
[  0]  32 (         open_module), block 0 (115)

February 11, 2008
12:28AM EDT
by agardiner

1
2
3
4
5
ads@ads-kubuntu:~/rubinius$ shotgun/rubinius
irb(main):001:0> def foo(bar=1, baz=2)
irb(main):002:1> puts bar
irb(main):003:1> puts baz
irb(main):004:1> end

January 29, 2008
7:07PM EDT
by agardiner

1
2
3
4
5
ads@ads-kubuntu:~/rubinius$ git diff shotgun/lib/primitives.rb
diff --git a/shotgun/lib/primitives.rb b/shotgun/lib/primitives.rb
index a80e926..a5de36e 100644
--- a/shotgun/lib/primitives.rb
+++ b/shotgun/lib/primitives.rb

January 29, 2008
6:11PM EDT
by agardiner

1
2
3
4
5
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7d2bde8 in epoll_wait () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e96854 in epoll_poll ()

January 18, 2008
12:02AM EDT
by agardiner

1
2
3
4
5
diff --git a/shotgun/lib/cpu_instructions.c b/shotgun/lib/cpu_instructions.c
index 0680f62..a1b7f8e 100644
--- a/shotgun/lib/cpu_instructions.c
+++ b/shotgun/lib/cpu_instructions.c
@@ -337,7 +337,18 @@ static inline OBJECT cpu_locate_method(STATE, cpu c, OBJECT klass, OBJECT obj, O

January 11, 2008
1:25AM EDT
by agardiner

1
2
3
4
5
0000:  check_argcount             2, 1024
0003:  set_local_from_fp          :a, 0
0006:  set_local_from_fp          :b, 1
0009:  make_rest_fp               2
0011:  set_local                  :c

January 09, 2008
10:00PM EDT
by agardiner

1
2
3
4
5
rbx:debug> v
There are no local variables defined in more_complex

rbx:debug> a = 10
=> 10

January 09, 2008
1:42AM EDT
by agardiner

1
2
3
4
5
rbx:debug> ?
Available commands:
  b(reak)                   List breakpoints
  b(reak) <Method>          Set a breakpoint at the start of the specified method
  c(ont)                    Continue execution to next breakpoint, or end of program (whichever comes first)

December 04, 2007
9:15PM EDT
by agardiner

1
2
3
4
5
## compiler2/Rakefile
$expected_failures = []


namespace 'spec' do

November 30, 2007
12:57AM EDT
by agardiner

1
2
3
4
5
*** Failing specs under compiler2 ***
spec:spec/language/raise_spec.rb
spec:spec/language/def_spec.rb
spec:spec/language/throw_spec.rb
spec:spec/language/yield_spec.rb