Programming Language - Protocol to command machine.
As promises at the first post.
The century is more modern, with the next(or now) is the machine's century, you can see so many smart machines. With so many smart machines, this was very chaos. So, How people command and control machines to work by people commander?
What is Programing Language?
Programming language is a language for people use to command and control to machine, describe the algorith, uses for write computer programs. The Programming language born to replace the binary system because the programming language uses many people language to write.
So, How it works?
In the first post, I have said you the programming language borns to make the programming easier because rhe programming language uses many people language to write.
But.........., I have said you "machine or computer can't understand words or hard numbers, they just understand the binary system (number 0 and 1)". So, to understand the programming language, computer and machine must do a step is translating this code to binary system.
How it translates?
To translate the programming language to binary system, computer or machine uses 2 types of translating is compiling and interpreting.
What is compiling?
Compiling is a way to translate code to binary system.
The compiling works:
-First step: It converts all program to machine's language(Assembly - ASM)
-Second step: It convert this programs(in machine's language) to binary system
Some programming language uses compiler: C++, C, Java,...
What is interpreting?
Interpreting is also a way to translate code to binary system. But it deferrent from the compiling.
Interpreting works: It convert each line of programs to binary system
Some programming language uses interpreter: Python, Javascript, HTML, CSS.
Which is faster?
To translate the code, the compiling must convert all the program, but the interpreting just convert each line of code. So interpreting is faster than compiling.
How many programming language in the world?
About Wikipedia, this website statistic about 700 programming languages. Tiobe with 150 programming languages. Hopl with 8945 programming languages ....
Khoa học - Công nghệ
/khoa-hoc-cong-nghe
Bài viết nổi bật khác
- Hot nhất
- Mới nhất