Machine language
Is the machine can understand the language, shape like 010101010010101010101010010101.
- Advantages: lowest level, fastest speed
- Cons: complex, lowest development efficiency
Assembly
- Pros: Lower level, faster than machine language
- Cons: Complex, development efficiency is only higher than machine language
High-level language compilation
C,c++
- Pros: Languages such as C + + must be compiled before they can be run, and compiled into binary code that the machine can run directly.
- Cons: Each change must be recompiled, with poor cross-platform
Explanatory type
python,javascript,php
Similar to the "simultaneous translation" in daily life, it runs on the side of translation, so it is inefficient. And the binaries cannot be generated, and the application cannot detach from the interpreter.
However, there is a Python interpreter on Mac or Linux by default.
- Advantages: Cross-platform development, high development efficiency
- Cons: Inefficient running, relying on the interpreter (why inefficient is so hot, because now the hardware level up.) )
For example, C language executes a program for 0.001 seconds if Python is 10 times times slower than it is 0.01 seconds (the fastest response time for humans is 0.3s so it's almost impossible to feel)
Introduction to programming languages