+ 1

Difference between programming and scripting language

24th Jan 2017, 11:07 PM
Pansare Shyam
2 Réponses
+ 13
Scripting languages are programming languages that don't require an explicit compilation step. For example, in the normal case, you have to compile a C program before you can run it. But in the normal case, you don't have to compile a JavaScript program before you run it. So JavaScript is sometimes called a "scripting" language. This line is getting more and more blurry since compilation can be so fast with modern hardware and modern compilation techniques. For instance, V8, the JavaScript engine in Google Chrome and used a lot outside of the browser as well, actually compiles the JavaScript code on the fly into machine code, rather than interpreting it. (In fact, V8's an optimizing two-phase compiler.) Also note that whether a language is a "scripting" language or not can be more about the environment than the language. There's no reason you can't write a C interpreter and use it as a scripting language (and people have). There's also no reason you can't compile JavaScript to machine code and store that in an executable file (and people have). The language Ruby is a good example of this: The original implementation was entirely interpreted (a "scripting" language), but there are now multiple compilers for it.
24th Jan 2017, 11:39 PM
Hassan Amr
Hassan Amr - avatar
0
k
25th Jan 2017, 6:59 PM
Sachin Jundhare
Sachin Jundhare - avatar