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
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”.)