Several classifications of computer language

Source: Internet
Author: User

####* * Several common categories**###1. High-level and low-level languages2. Dynamic type and static type3. Mandatory type and weak type4. Compiled, interpreted, semi-compiled semi-explanatory5. Object-oriented and process-oriented----------####**1. High-level and low-level languages** ##Common low-level languages are: machine code, assembly languageHigh-level languages are common: C,c++,java,python,php,c#,ruby,go,kotlin,swift.Machine code: The computer can directly recognize the two-level encoding, no matter how advanced language is to be turned into two-level files to allow the computer to recognize the operation.Assembly: A mnemonic (mnemonics) replaces the operation code of a machine instruction, with an address symbol (symbol) or label (label) instead of the address of an instruction or operand, having a different set of instructions in different devicesHigh-level language: To save the programming time unnecessary operation detail, saves the code quantity, the readability is strong, the maintainability is strong, is closer to the humanizationThe difference between high-level and low-level languages: Most high-level languages do not directly deal with hardware, which makes the relative program run slower, in a word, the language is closer to human language is more advanced.----------####**2. Dynamic types and static types**##Dynamic language refers to the type of data that is assigned to a variable during the run of the program, common to Python and Ruby, and the static type language is the opposite, specifying the type of the variable when writing the program code, which is: C,c++,java----------####**3. Coercion type and weak type**##We know that in C, a variable can only be defined as a type, such as a float type, then it can only be a float type and cannot be given an int type without a conversion, which is* * Mandatory type* * the specific embodiment.Instead of python, the variables in Python can be copied arbitrarily without the bounds of the type. This is* * Weak type**Coercion is more rigorous and less prone to errors, but weak-type languages are more elegant and more comfortable to write.----------####**4. Compiled, interpreted, semi-compiled, semi-explanatory**##For the source program, the compiled language will convert the source file into machine code at one time in the executing program, while the interpreted language is the side-compilation side interpretation;Compiler language is inseparable from the interpretation of the program, which also led to the interpretation of the language for the run time speed parity, interpreted language as long as there is an interpreter, the transplant is more convenient, and the compiled language to the different systems to compile, is the work cumbersome, and in the time of the debugging program is relatively slowCompiled languages are visible in c,c++, etc. explanatory language visible in Python,javascript,perl,shell et ----------####**5. Object-oriented and process-oriented **## 
c++ is part of the face object, Java has encapsulation is completely face object, C language is the language of the face of the process

Several categories of computer languages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.