From: Ralph Shnelvar Date: 2009-11-26T01:01:02+09:00 Subject: Ruby internals & other questions Is there a document or website that describes how Ruby works? For instance ... y=0 1_000_000.times {|x| y+=x} (1) Does the block get compiled a million times? (2) What's the best Ruby way to do a sum from 1 to 1_000_000 (3) Is there a difference in speed between IRB.exe and ruby.exe in executing the above code? (4) In IRB, whats the best way to time the code, above?