At Wed, 20 Jun 2012 23:56:48 +0900,
gmspro gmspro wrote:
> 
> Hi,
> 
> I have a confusion about the process of ruby file.
> 
> Suppose you have a file named f.rb.
> To run this file you do:
> ruby f.rb
> 
> After this command what does happen?
> 
> I knew for python, python makes bytecode and java makes .class. Both are
> not human readable.
> 
> Is ruby a interpreted language or compiled language?

Maybe it depends on the the system that you use to run ruby. For
example, YARV (now ruby 1.9) is a bytecode interpreter. I suppose that
ruby code is converted to a bytecode sintactical tree that is
interpreted by YARV. This is different to compile C, because the
output of GCC is a machine code and not a sintactical tree.

--
Daniel