To solve this problem, we start with the most basic programming language: For the format requirements, please: Http://51viola.top
Programming Languages
Machine language: 0 and 1, human beings can hardly read or understand
Assembly language: It is composed of some specific instructions, the learning cost is relatively high; do some driving at the bottom, small size, high operating efficiency
Advanced languages: C, C + +, Java, PHP, Python, JavaScript, etc.
No matter what language is written out of the program to let the computer's CPU, and let it help us calculate, so the final translation into computer understanding of the machine language, can be recognized by computers. This process is mainly divided into two L classes, one is the compilation class, the other is the explanatory type.
<!--more--
in the following, we focus on what the compiler class language is and what is interpreted as a language:
Compiler language: first written in high-level language of our program, and then compiled by the compiler into our target machine language, the computer can recognize the 0 or 1
Interpreting the class language: done by the interpreter .
For example: take our real-life language translation example, we can understand the compiler as a text translator (translation). Suppose I (understand Chinese) and a foreigner (understand English) dialogue, we do not understand each other what the other wants to express, if I want to send a message to him, then I can put the content I want to express to a piece of paper, a translator translation good target language English to that foreign friend. and the interpreter is equivalent to simultaneous interpretation, I say a translator interpreter to each other to listen.
Next, we compare the pros and cons of these two languages:
Compile-Class language: High running efficiency (because two people communicate, I put the content to write to a piece of paper, the other side can smooth, uninterrupted reading this document); But what if there is a change in the file, I need to re-write a copy of the content, translators need to re-translation, the process is relatively lengthy.
Explain the language of the class: more flexible (as I say, a translator translates a sentence); The disadvantage is that the operating efficiency is low.
and the scripting language?
From Baidu Encyclopedia on a sentence:
A script is usually interpreted as execution rather than compilation. Scripting languages often have simple, easy-to-learn, easy-to-use features that are intended to allow programmers to quickly write programs.
So I understand: scripting language is an interpreted language, such as Python, VBScript, JavaScript, etc., it is not like c\c++ can be compiled into binary code, in the form of executable files, scripting language does not need to compile, can be used directly by the interpreter to be responsible for interpretation.
[1] http://static.zybuluo.com/viola-zhao/hzfryi8l3cmflgxc1zzqbhms/QQ20171125-114045.png
What is a scripting language