Chapter 111: Trainee Code Farmer
Chapter 111 Trainee Code Farmer
(Fantasy science fiction,Computer experts don't take it seriously,This chapter is hard to die I wrote for five hours,Computer principles、Chinese grammar、Mathematical logic,A little simple explanation,There must be a lot of fantasy science fiction bugs,There are systems, please don't take it seriously!) If you don't understand it, or if a computer professional picks a thorn, you can skip it, just know that the Chinese compiler is very good. )
Zhou Xiao even suspected that if he handed over the computer that had downloaded the language compilation software to someone else, no one else would be able to open it.
However, since the system has this kind of arrangement, Zhou Xiao will not be bored to try this kind of thing.
He sat in front of his computer, staring at the screen, his cursor flickering.
How the hell is this thing used?
Zhou Xiao had to check the manual again.
[Chinese compiler manual: The compiler is a low-level compiler, suitable for low-level binary computers, this product is only used to let the host understand the working principle of the computer and the program......]
it!
Seeing this, Zhou Xiao began to scold her mother.
Now all computers in the world are binary, and here it is actually said that binary computers are inferior!
So what is an advanced computer?
Quantum computers? Or is it something else?
Zhou Xiao swallowed her saliva, and her heart was pounding.
He thought that the MATLAB software used in the laboratory was limited by the people of the United States.
If you can live with a higher level of technology, such as a domestic operating system, and the ecological environment supporting this system, or obtain the manufacturing technology of chips, then it would be so good.
Through Oleobacterium to Symbiotic Proteins, Zhou Xiao basically determined that every technological product given by the system is useful, just depends on how you use it.
Moreover, the knowledge of this product allows Zhou Xiao to understand the working principle of calculations and programs, that is, more terrifying technology products are actually behind.
Zhou Xiao continued to look down.
[The Chinese compiler requires users to independently build a Chinese language library and related logic libraries as the basis of the programming language......
Sure enough, it's in the back!
[A complete language library will help the compiler fully understand the compiler's language logic......]
When Zhou Xiao finished reading the nearly 20,000-word explanation, he understood the core content of the compiler.
Two words: cow break!
The compiler itself occupies very little storage, and in the process of learning to build a language library, there will be more and more languages and logic libraries, and the storage will become larger and larger, which is actually a process of continuous learning and improvement.
The most important thing in programming is logic and language.
The instruction manual is divided into two parts, introducing logic and language.
The first is logic.
Computers can only recognize machine language, i.e. 0s and 1s.
The multiple combinations that follow 0 and 1 are actually mathematics.
Logic is mathematical logic.
All programming relies on mathematical logic.
For example, C addition code (20+30 as an example):
#include
void main()
{ int a,b,sum;
a=20; b=30;
sum=a+b;
printf(“sum is %d“,sum);
Another example is the code in Python: print(20+30).
It's all about math!
What about Chinese compilers?
Direct input: Find the sum of 20 and 30.
Or enter: What is 20+30?
So here comes the question, especially the first statement, which is input in Chinese, there is no mathematical formula, where is the mathematical logic?
The mathematical logic corresponding to the word "plus" is in the language library.
This involves the language library of the Chinese compiler, which is now the language library that we will talk about.
If a complete language library is established, the Chinese compiler will fully understand what the inputter is saying.
The principle of building the Chinese compiler language library is as follows:
First of all, it is divided into nouns, verbs, adjectives, adverbs and other elements according to Chinese grammar.
These elements are then combined according to Chinese logic.
For example, the simplest subject + predicate + object.
However, the Chinese language is broad and profound, and some grammar is correct but the sentences are not logical.
That's where the advantage of a language library comes in!
Through the language library, every noun, verb, etc., has a linguistic important element that conforms to conventional logic.
Sentences are grouped together by weighted elements (i.e., in accordance with linguistic conventions).
In this way, the Chinese language compiler understands what the user inputs in accordance with daily use and conforms to Chinese grammar.
At this point, the compiler snowballs as it learns mathematical formulas from the lower to the higher.
This is also a process that the compiler learns.
To put it simply, the Chinese compiler is a learning tool, and the more you learn, the more powerful it becomes.
At present, the Chinese compiler can automatically translate the mathematical formulas and descriptions of higher numbers and below directly into machine language, which is very good, and greatly reduces the burden on Zhou Xiao.
Later, more advanced and complex mathematical logic needs to be set by the user to let him continue to learn.
What is the final purpose of the Chinese compiler?
It greatly reduces the burden on the programmer, who only needs to consider the simple logic of the program and describe it in language, and does not need to start typing code from the most basic operation rules.
For example, a simple math problem:
Uses the maximum value of a row to reduce the minimum value.
The simplest python also hammers out long code.
In Chinese, the compiler has only one sentence: sum the maximum value of a row of numbers by subtracting the minimum value.
Beautiful Chinese only needs one sentence!
Moreover, Chinese has many advantages over existing programming languages, which will make programming simpler, and the Chinese characters are graphical, structured, intuitive, and have strong ideographic ability.
For example, a compound phrase that is very logical.
For example, "cat" and "greasy" have their own meanings, and they have another meaning to form "catty".
The combination of words with different meanings becomes another meaning, which is a function in the first place!
Chinese is inherently functional, which is not possible with English or other programming languages.
Another example is to design some functional operations.
Design Functions: Input, Output, First, Last, Stack, Data
By functional combinations:
Input Stack, Output Stack, Input Data, Output Data, Input Stack First and Output Data......
This combination is very natural and directly turns the program into a literal statement.
And if you type code in C++ or python, you have to type several pages!
There are thousands of Chinese characters in Chinese, which can form countless phrases, and countless phrases can be formed into paragraphs, and then into paragraphs.
This powerful expressive ability is not available in any programming language!
This powerful programming feature is sufficient for a quantum computer.
Zhou Xiao's heart was moved!
He uses the compiler in the same way that he first has to make the language library come alive.
The way to come alive is very simple, to build as many standard Chinese libraries as possible.
There is no way for Zhou Xiao to complete this work alone.
Zhou Xiao is preparing to set up a computer network company to recruit troops.
Recruits include programming apes, Chinese language and literature, and mathematics majors.
I never thought that those who learn Chinese can also program!