Aslam-o-Alaikum
What is difference b/w Scripting and Programming Language.......?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mahesh ChandRank #1 · 393.3K reputationPosted Mar 3, 2011, 8:36 AM EST
For example,
A scripting language like JavaScript runs within a browser. So it does not need access to your machine or any processor and other resources besides the resources being used by your browser such as Internet Explorer. A scripting language is usually fast to execute and runs on client side only.
A programming language like C# or C++ is being compiled by a compiler such as a C# compiler that reads your code, generates an IL and then the processor takes some action. It needs resources to run on your machine and sometimes needs access as well. A programming language is usually slow and runs on the server side only.
Cheers!
Micke BlomqvistRank #1,660 · 923 reputationPosted Mar 2, 2011, 10:39 PM EST
- A "script language" is interpered as it executes by a script host/interperer
- A "programming language" is interpered into machine readable code when it is created, by a compiler, and executes managed by the operating system
ShankeyRank #972 · 2.1K reputationPosted Mar 2, 2011, 10:39 PM EST
VulpesRank #55 · 29.2K reputationPosted Mar 2, 2011, 11:53 PM EST
You don't need to worry too much about the types you're using because the interpreter figures them out at runtime.
In contrast, most 'heavy duty' programming languages such as C++, C# and Java are strongly typed. You need to declare the types you're using at compile time so that the compiler can check (as far as possible) that you're not using them incorrectly.
This means that development is easier and quicker using scripting languages but you tend to get more errors at runtime unless you do a lot of 'unit testing' beforehand.
Also, script code tends to execute more slowly at runtime, partly because its interpreted and partly because the interpreter has more work to do to figure out the types.
Suthish NairRank #92 · 22.8K reputationPosted Mar 3, 2011, 7:40 AM EST
Mahesh ChandRank #1 · 393.3K reputationPosted Mar 3, 2011, 8:39 AM EST
I disagree with you Suthish. Your answer may be misleading. I think he specifically meant by a scripting language and programming language. Both are two different things.
Suthish NairRank #92 · 22.8K reputationPosted Mar 3, 2011, 9:04 AM EST
Smart LuckyRank #2,625 · 531 reputationPosted Mar 4, 2011, 1:18 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Mar 4, 2011, 9:56 PM EST
JavaScript does not execute only in a browser. JavaScript and VBScript can be executed without a browser in Windows using the CScript (for execution in a console) or WScript (for execution outside a console) commands. Scripts executed that way can access the file system without any need for special permission.
C++ and most compiled languages are compiled into machine code; the code that the processor executes directly. C++ can be the fastest code of all; it might even be faster than assembly language that essentially is the instructions used directly by the processor. The reason that C++ might be faster than Assembler code is that the C++ compiler usually can optimize the code it generates better than most Assembler programmers can optimize the code they write using an Assembler.
Most compiled languages can be implemented by a translator/interpreter or something such as that, making the language a scripting language. There is very little or nothing that most compiled languages do that can't be done when the language is used as a scripting language. Therefore it is misleading to call a language as either a scripting language or a programming language or a compiled language. C++ is called a compiled language because it is usually compiled. Therefore it is very misleading to say that scripting languages and programming languagea are two different things.
The Microsoft C++ compiler can generate managed code but only if the managed code option is used. If the code is unmanaged then the compiler generates machine code.
Programs written using C++ unmanaged code will be faster than programs executing as a script! The Unix and Linux operating systems are deveopled using C and/or C++! The communication system that became the intenet was initially developed mainly using Unix and the C language.
Most programs developed using C and C++ execute in systems in which severs and clients are not relevant.