definition - Is Ruby a scripting language or an interpreted language? -


I have just seen that in the Wikipedia page of Ruby, this language has been defined as the language interpreted.
I know that maybe I'm missing something in my background.
I always have the distinction between an interpreted language, which is not needed for the compiler and a compiled language (which needs to be compiled before the execution of programs), but which is characteristic of a scripting language
< Br> Is Ruby sure as a scripting language?

Thanks and I'm sorry for Black Out

Things are not just black and white At the very least, they are big and small, large and quiet, blue and orange, brown and gray, long and short, right and wrong.

The only way to interpret / compile is to categorize the languages, and it is completely free (between countless other things) whether you call the same language as "scripting language" or not , It is also a broken classification:

  • The implementation of language is not interpreted / compiled based on language (it is not just theory, there are actually a few languages). >
  • Language implementation Many of them, including Ruby Declaration), are , compilers, but interpret "only" bytekok's compilation and bytecok.
  • There are also implementations that give native code (JIT Compiler).

    You see, reality is a complex animal;) Ruby described above, often compiled that compilation's interpretation of the output then Is done, at least in some cases - these also apply That is, JIT-compiles (Rubines, and IIRC JRB are compiled in Java bytecode one after another). The reference implementation has been a compiler for a long time, and IIRC is still there. What is the meaning of ruby ​​or compiled? No word is meaningful until you define it;)

    But back to the question: "Scripting language" does not have any property in the language, it depends on how language It is used - that is, if the language is used for scripting tasks, if you are looking for a definition, then Wikipedia can help you with the page "" (just copy them to the implementation details like notes. L Do not confuse such that the script is usually interpreted). In fact there are some programs that use Ruby's functions for scripting, and of course there are many free Ruby programs which may be eligible for scripts (web scraping, system administration, etc.).

    Therefore Yes , I think that Ruby can call a scripting language. Of course this does not mean that Ruby is just a script on the Rail web app.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -