Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
03:29:10 ruerue@meow > shotgun/rubinius describe ../scratch/test.rb Sexp: [:block, [:newline, 1, "../scratch/test.rb", [:if, [:match, "x", 0], [:lit, 1], nil]], [:newline, 1, "../scratch/test.rb", [:if, [:match, "x", 0], [:lit, 2], nil]]] Bytecode: 0000: push_literal :$_ 0002: push_cpath_top 0003: find_const :Globals 0005: send_stack #<SendSite:0xa9 name=[] hits=0 misses=0>, 1 0008: push_literal nil 0010: dup_top 0011: is_nil 0012: goto_if_false 25 0014: pop 0015: meta_push_0 0016: push_literal "x" 0018: push_const :Regexp 0020: send_stack #<SendSite:0xf9 name=new hits=0 misses=0>, 2 0023: set_literal nil 0025: send_stack #<SendSite:0x111 name==~ hits=0 misses=0>, 1 0028: goto_if_false 33 0030: meta_push_1 0031: goto 34 0033: push_nil 0034: pop 0035: push_literal :$_ 0037: push_cpath_top 0038: find_const :Globals 0040: send_stack #<SendSite:0x161 name=[] hits=0 misses=0>, 1 0043: push_literal nil 0045: dup_top 0046: is_nil 0047: goto_if_false 60 0049: pop 0050: meta_push_0 0051: push_literal "x" 0053: push_const :Regexp 0055: send_stack #<SendSite:0x1b1 name=new hits=0 misses=0>, 2 0058: set_literal nil 0060: send_stack #<SendSite:0x1c9 name==~ hits=0 misses=0>, 1 0063: goto_if_false 68 0065: meta_push_2 0066: goto 69 0068: push_nil 0069: pop 0070: push_true 0071: sret 03:29:13 ruerue@meow >
This paste will be private.
From the Design Piracy series on my blog: