From: Daniel Hernandez Date: 2012-06-21T01:03:26+09:00 Subject: Re: Ruby vs Python vs Java bytecode concept 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