This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) | |
TCPSocket.new with a running server connects to a server when passed local_host and local_port arguments ERROR | |
Errno::EAFNOSUPPORT: Address family not supported by protocol family - bind(2) | |
Errno.handle at kernel/common/errno.rb:16 | |
TCPSocket#tcp_setup at lib/socket.rb:1085 | |
TCPSocket#initialize at lib/socket.rb:1013 | |
Class#new at kernel/alpha.rb:94 | |
{ } in Object#__script__ at spec/ruby/library/socket/tcpsocket/shared | |
/new.rb:47 | |
Kernel(Object)#instance_eval at kernel/common/eval.rb:164 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio, std.string; | |
void main() | |
{ | |
uint[string] freqs; | |
foreach(line; stdin.byLine()) | |
{ | |
foreach(word; split(strip(line))) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kronos:Developer$ ./cpu_info-darwin | |
ID: GenuineIntel | |
Family: 6 | |
Model: 42 | |
64bit: yes | |
SSE3: yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Thu Mar 17 20:31:33 on ttys006 | |
kronos:~$ cd /Developer/ruby/rubinius/ | |
kronos:rubinius:[master]$ bin/rbx -Xjit.dump_code=3 -Xjit.inline.debug x.rb | |
JIT: target search from each | |
JIT: queueing method: each | |
JIT: compiling Rubinius::Tuple#each (1300384256.600059) | |
| inlining: Rubinius::Tuple#fields into each. generic primitive: jit_stub_tuple_fields | |
| inlining: Rubinius::Tuple#at into each. primitive tuple_at | |
[[[ LLVM Simple IR ]]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[[ LLVM Simple IR ]]] | |
define %"struct.rubinius::Object"* @"_X_Rubinius::Tuple#each@1"(%"struct.rubinius::VM"* %state, %"struct.rubinius::CallFrame"* %previous, %"struct.rubinius::Dispatch"* %msg, %"struct.rubinius::Arguments"* %args) { | |
entry: | |
%valid_flag = alloca i1 | |
%counter_alloca = alloca i32 | |
%unwind_info = alloca i32, i32 60 | |
%cfstk = alloca %"struct.rubinius::Object"*, i32 13 | |
%var_mem = alloca %"struct.rubinius::Object"*, i32 8 | |
%out_args = alloca %"struct.rubinius::Arguments" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JIT: target search from each | |
JIT: queueing method: each | |
JIT: compiling Rubinius::Tuple#each (1300381735.455344) | |
| inlining: Rubinius::Tuple#fields into each. generic primitive: jit_stub_tuple_fields | |
| inlining: Rubinius::Tuple#at into each. primitive tuple_at | |
JIT: queueing block inside: find_all | |
JIT: queueing block inside: add_ivars | |
JIT: compiling block in find_all near kernel/common/enumerable.rb:436 (1300381735.476356) | |
| inlining: Array#<< into find_all | |
|| NOT inlining: set_index. Cache contains 2 entries |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.2-p0 :013 > a = def x | |
ruby-1.9.2-p0 :014?> 1+1 | |
ruby-1.9.2-p0 :015?> end | |
=> #<Rubinius::CompiledMethod x file=(irb)> | |
ruby-1.9.2-p0 :016 > a.iseq.opcodes | |
=> #<Rubinius::Tuple: 79, 79, 81, 0, 11> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::cout << str->c_str() << "." << std::endl; | |
std::cout << printf("%s\n", RSTRING_PTR(rb_funcall(string, rb_intern("to_s"), 0))) << "." << std::endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c6eecb62ef4b7e94c784586184be779b8e38b2f5 Mon Sep 17 00:00:00 2001 | |
From: Ivan Samsonov <[email protected]> | |
Date: Thu, 24 Feb 2011 03:54:59 +0300 | |
Subject: [PATCH 1/2] Enhance Module#define_method spec | |
--- | |
spec/ruby/core/module/define_method_spec.rb | 10 ++++++++++ | |
1 files changed, 10 insertions(+), 0 deletions(-) | |
diff --git a/spec/ruby/core/module/define_method_spec.rb b/spec/ruby/core/module/define_method_spec.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class X | |
class << self | |
def x(name=:a, &block) | |
define_method(name, &block) | |
end | |
end | |
end | |
X.x |