Chen Xiao temporarily named the compiler platform he developed as Jiuzhang Compilation Platform, which can be regarded as commemorating the most famous mathematical achievement in ancient Xia.
Programming needs to use the most concise language to express the most accurate meaning, whether in c language or other languages, this is the truth.
The Chinese language has the most natural advantages, and can express the meaning of the writer most concisely and clearly.
However, in order for the entire compiler to quickly understand the meaning of the programmer, call the corresponding language library, and communicate with the machine, it is necessary for the compiler to have a large number of contexts and language libraries.
A method currently proposed by Chen Xiao is to set commonly used language structure functions for the Chinese language.
To put it more bluntly, it is to give a vector to the phrase, and then combine these vectors in the form of mathematical formulas.
And in the process of continuous learning of the thesaurus, constantly modify and expand your own vector combination.
A vector combination is an exact statement.
The compiler can automatically extract the language logic and keyword phrases of the combination, and automatically filter those nonsense phrases to clarify the meaning of the programmer.
Chen Xiao checked the background of the server.
The server of the voice library of Jiuzhang Compilation Platform has been running for two days.
In the past two days, the servers of Jiuzhang Compilation Platform and Baidu's servers have been connected to the Internet, frantically pulling out all the formal Chinese language resources that Baidu can search.
In the process of continuous selection, reading and learning, the language library of the Jiuzhang compilation platform will form a relatively complete logical structure.
These so-called logical structures are actually mathematical formulas that remove word vectors one after another.
These word vectors and logical formulas are actually the underlying code of the content compiled by the compiler.
Utilizing such a low-level code, it is possible to communicate with c language, c++ or other programming languages, and accurately call the relevant content of these programming languages.
Chen Xiao's development of this compiler completely borrowed the ability of c language and c++lv8, based on Chen Xiao's understanding of technology systems.
After learning a lot of languages ??and forming your own logic.
Jiuzhang compilation platform is likely to become the basic platform for building artificial intelligence in the future.
Now that the language library has achieved initial results, Chen Xiao also tried to do some simple programming.
For example, compile a program for addition and subtraction.
Opening the Jiuzhang compiler platform, Chen Xiao directly entered: application: addition and subtraction of numbers.
Then click the run button.
The addition and subtraction of numbers, these words actually represent a lot of underlying logic.
The language library of the compiler also forms the corresponding language vectors and mathematical logic related to the addition and subtraction of numbers.
Following the nine chapters, the compiler will find the most concise and most suitable related language for the application according to the logical correspondence, and capture and edit the language to form the final program.
After Chen Xiao clicked to run, the application of addition and subtraction has been edited.
He randomly entered a few numbers for calculation, and the result was completely accurate.
Chen Xiao checked the corresponding database again and found out. This time the compilation platform calls the c language.
The underlying code is more complicated.
#include
int main
PR
}
Addition and subtraction, this is a very small logic, so it can be expressed in a few simple words on the Nine Chapters compilation platform.
But when compiling more complex applications, the situation is not so simple.
This involves the nine-chapter compiler, the second very important application-structural logic.
This requires programmers to divide a very grand application logic into small pieces of application logic from shallow to deep.
Then corresponding to such application logic, to enter the relevant Chinese language text.
For example, Chen Xiao now needs to write a more difficult program.
"If it is Monday to Friday, then the set desktop is the picture named seaside scenery in the picture on the d-th drive.
If it is Saturday and Sunday, then the set desktop is the picture named beach scenery in the d-th disk picture. "
For programs with a more complex background, Chen Xiao needs to use language structures to write.
In the nine-chapter compiler, the default is from the framework to the details, from simple to complex.
Chen Xiao wrote on the compiler.
"Set the desktop."
the"The background of the desktop is read from the D disk gallery."
"Read the system time, the time is Monday to Friday, read the beach, and read the desert on Saturday and Sunday."
Chen Xiao only used three lines for the whole procedure, and it was done in Chinese.
And each line of Chinese will have a corresponding underlying language.
This is the biggest advantage of word vectors and language structure logic.
Chen Xiao checked immediately, what language is the app calling?
He found that the Nine Chapters compiler called C++ after the conversion of the underlying logic through the language library.
However, the code that appears in c++ has hundreds of lines in total, and the code is even denser and confusing.
It took Chen Xiao less than a minute to write this app, and the app is completely accurate without any bugs.
If an experienced programmer writes this application in C++, it may take more than 10 to 20 minutes.
For those engineers who are new to programming languages, it may take an hour or two, or even longer.
The Jiuzhang compilation platform has greatly solved the problem of programming and typing codes.
In the future, a truly excellent programming engineer is not how accurate he is in typing the code, but how fine and rigorous his logical thinking ability is.
Seeing the running results like this, Chen Xiao was quite satisfied.
The server of the compilation platform will always run in parallel with Baidu's server, continuously learning related language knowledge and language logic.
The original intention of Chen Xiao to develop this editor is to improve the efficiency of programming and develop domestic operating systems at the fastest speed.
At present, the compiler is available, and the most difficult point of developing a domestic operating system is also placed in front of the right one.
That is the entire logic and layout of the operating system.
For this point, the top engineers in the country and even the world are needed to help think and write logical planning diagrams.
This matter can never be handled by Chen Xiao alone, but requires the cooperation of a human team.
Chen Xiao looked at the sky outside the office, and the lights were already on.
He was working overtime behind closed doors in the office, even Song Yi and office director Luo Ting didn't know about it.
With a rumbling stomach, Chen Xiao opened the refrigerator, got some quick-frozen dumplings and boiled them in the pot, and it will be dealt with tonight.
It's definitely not going home so late, Wen Qi and Han Wen live at home, it's not convenient for Chen Xiao to go back.
In the evening, my father called and asked Chen Xiao when he would go back for the Spring Festival?
Chen Xiao could only give a wry smile, even if it was the Spring Festival, he had to assign some homework to the engineers of Yuedong Internet.
After the Spring Festival is the end of February, time can't help but use up.