Ruby has to be interpreted line by line in runtime, does this affect Ruby's execution efficiency ba

Why doesn’t the inventor design a better approach to avoid this
problem?

On May 5, 2008, at 10:35 PM, Erwin M. wrote:

Why doesn’t the inventor design a better approach to avoid this
problem?

cat a.rb | ssh remote ruby

a @ http://codeforpeople.com/

Ruby has to be interpreted line by line in runtime

This is not true.

robert

Most advanced “scripted” languages (Ruby included) are parsed into
ASTs and then excuted.
This is unlike say, MIRC-Script or BASH, which are executed
line-by-line.
Now, I’m not arguing that Ruby is fast, by any means, just that it
isn’t run in a simplistic line-by-line parse-execute style.
(Of course I’m talking about .rb files, not IRB, which is, well,
rather “interactive”.)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs