24 Feb '13, 12pm

“Rubyist Magazine - Ruby 2.0.0 の require”

“Rubyist Magazine - Ruby 2.0.0 の require”

files=2000 begin files.times{|i| file = "req/file#{i}.rb" open(file,"wb"){} } rescue end 100.times{ $LOAD_PATH << "/" } #gemsの代わり $LOAD_PATH << "." start = Time.now cnt=0 files.times{|j| file = "req/file#{j}.rb" require file cnt +=1 puts "#{cnt}, #{Time.now - start}" if cnt % 100 == 0 }

Full article: http://jp.rubyist.net/magazine/?0041-200Special-require

Tweets

読んでる→Rubyist Magazine - Ruby 2.0.0 の DTrace の紹介

jp.rubyist.net 24 Feb '13, 10am

以下のプログラムを t.rb というファイルとして保存します。 class Foo def hello puts :hello end end 5.times do foo = Foo.new foo.hello sleep 1 end rub...

ruby2.0に対応させるときの注意点まとめ / “Rubyist Magazine - Ru...

jp.rubyist.net 24 Feb '13, 10am

Magic Comment を書いていないファイルの文字列リテラルのエンコーディング (default script encoding) が UTF-8 に変更されました。[#6679] Ruby 1.9 においては、default scrip...

Ruby 2.0.0

jp.rubyist.net 24 Feb '13, 9am

Rubyist Hotlinks 【第 31 回】 樽家昌也さん Rubyist へのインタビュー企画。今回はたるいさんにお話を伺いました。(難易度:ポケコン) Ruby 2.0.0 リリース特集 編集:ささだ 2013 年 2 月 24 日に...

Rubyist Magazine - Ruby 2.0.0 のキーワード引数

jp.rubyist.net 24 Feb '13, 12pm

このメソッドは引数無しで呼び出すと、level: "ERROR", time: Time.now が渡されたのと同じように動きます。 log("Hello!") #=> Mon Feb 18 01:46:22 2013 [ERROR] Hell...

Rubyist Magazine - Ruby 2.0.0 リリース特集

jp.rubyist.net 24 Feb '13, 9am

I've known Ruby since she was just 4 or 5 years old. Of course, I knew her parents, Smalltalk and Perl, and had a nodding ...

Ruby 2.0.0 MetaCasts Video Free This Week!

rubyflow.com 25 Feb '13, 3pm

Ruby 2.0.0 MetaCasts Video Free This Week! Posted by markbates on February 25, 2013 — 0 comments To celebrate the release ...

Yay, #Ruby 2.0.0 is out! With lots of goodies.

ruby-lang.org 24 Feb '13, 6pm

The default encoding for ruby scripts is now UTF-8 [#6679]. Some people report that it affects existing programs, such as ...

2.0.0 特集がおおいけど、咳フリークの人に「咳フリーク以外が読んで楽しめるのか?」と言わし...

jp.rubyist.net 24 Feb '13, 9am

class BDBError < RuntimeError def initialize(bdb) super(bdb.errmsg(bdb.ecode)) end end class BDB < TokyoCabinet::BDB def e...

"Ruby 2.0.0 is ready for practical use, and wil...

ruby-lang.org 24 Feb '13, 5pm

The default encoding for ruby scripts is now UTF-8 [#6679]. Some people report that it affects existing programs, such as ...

Becoming a Rubyist

rubyflow.com 26 Feb '13, 1pm

Becoming a Rubyist Posted by bryckbost on February 26, 2013 — 0 comments Just like learning a new spoken language, learnin...

“Prefer Ruby 2.0; require 1.9.3+ · a0380e8 · ra...

github.com 18 Feb '13, 11am

+TIP: Ruby 1.8.7 p248 and p249 have marshaling bugs that crash Rails. Ruby Enterprise Edition has these fixed since the re...

「Ruby 2.0 に入るはずだった Refinements」Oh.../Rubyist Ma...

jp.rubyist.net 24 Feb '13, 10am

$ ruby -e 'module M; refine String do end; end' -e:1: warning: Refinements are experimental, and the behavior may change i...