Language is a means of communication. Using a language we can share our idea,thoughts and emotions with others. There different languages out there. In that case you must learn that language or you should use some interpreter for. Every language has its own rules,letters,symbols,grammar,pronunciations,etc,etc.
We use Computer to do various task. To get our jobs done we should interact with computer. But, computer is a machine it doesn't know human languages.So, how one can solve or do particular problem/task using computer? . Use an Application Software. An application software is collection of programs. And a programs is sequence of instructions given to computer to solve specific task.
To develop an application software we must interact with computer. Computer cannot take its own decisions. To solve the problem using computer we should give instructions to it. Computers don't understand human languages like Hind,English,Arabic,Chinese,Urdu. It only understand Machine language(sequence or group of 0s and 1s). Here we use an intermediate language called Programming Language.
So, by using Programming languages, we can give instructions to computer. Every programming language have its own compiler and interpreter. Main task of the compiler or interpreter is to translate the high level language(language used in programming languages, that is human language) into machine language. Now, there are options to choose from variety of programming languages. Before choosing a programming language we must analyze the problem we are going to solve using computer. Programming language follow some kind of paradigm(model).
Major programming languages are C,C++,Java,Basic,FORTRAN ... and list goes on
Scripting language, on other hand, is another kind of High level language(HLL) . It is an interpreted language. It is a kind of programming language that support scripts. By using conventional programming language programmer first create a code using a language.Then compile the code to get some machine understandable format(normally .exe , which is known as object code ). There is need to specify another command to run this file format to start execution. But, in case of interpreted programming language which converts the scripts into to the machine code and start execution automatically. No need of putting extra commands for running the code. Scripting languages are used spacial run-time environment which can automate the execution. For example JavaScript is a scripting language which is largely used for we based applications. here the web browser interpret the scripts.
Some commonly known scripting languages are Unix Shell Script,Perl,TCl, Python,Vb Script etc.
programing language | scripting language |
---|---|
compiled | interpreted |
need to convert into machine code before execution | no need to conversion before execution rather conversion and execution take place at once |
need conversion only once | need conversion each time on execution |
high level Programming language | commonly known as very high level programming language sometimes referred as dynamic high-level general purpose language |
Faster(Compiled) | slower(interpreted) |
No comments:
Post a Comment