Can anyone explain the difference between scripting language and programming language?
You can tell some examples for each I have googled a lot, but I always get the best answer from Stack Overflow.
Scripting languages are programming languages that do not require a clear compile phase.
For example, in the general case, you have to compile a program before running it, but in the general case, you do not need to compile the Javascript program before running it. Therefore javascript is sometimes called "scripting" language too.
The compilations can be so fast with modern hardware and modern compilation techniques because this line is getting more and more foggy. For example, V8, Google Chrome used a lot of JavaScript engine and outside the browser In fact, instead of blowing it in the Javascript code machine code, it compiles instead of interpreting it. (In fact, optimizing the V8 is a two-stage compiler.)
Also keep in mind that if a language is a "scripting" language or not, then that language can be more about the environment. There is no reason why you can not write a interpreter and use it as a scripting language (and people). There is also no reason that you can not store the javascript machine code and store it in an executable file (and in others). Ruby is a good example of the language: Basic implementation was completely interpreted (a "scripting" language), but now there are many compilers for it.
Some examples of "scripting" languages (e.g., ... and then you have things like Python that sit in both camps: Python is widely used without a compiling phase , But the main implementation (CPython) that compiles the bytecode by on-the-fly, and then the Vime bytecode is going on, and it can write that the files ( This is just a lot , if If you do some research then you can get a lot more. .pyc ,
No comments:
Post a Comment