Rebirth 1999: Opening the Age of Black Technology
Chapter 351: absolute artifact
Latest URL: (typo unchanged, please read after 00:15)
Chen Xiao temporarily named the compiler platform he developed as Jiuzhang Compiler 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 advantage and can express the author's meaning in the most concise and clear way.
However, in order for the entire compiler to quickly understand the meaning of the programmer, to call the corresponding language library and communicate with the machine, the compiler must have a large number of contexts and language libraries.
One of the methods that Chen Xiao has come up with at present is to set common language structure functions for the Chinese language.
To put it more bluntly, it is to give a vector a phrase, and then combine these vectors in a mathematical formula.
And in the continuous learning process of the thesaurus, it constantly revises and expands its own vector combination.
A vector combination is an exact sentence.
The compiler can automatically extract the language logic and keyword groups of the combination, and automatically filter those nonsense phrases, so as to clarify the meaning of the programmer.
Chen Xiao checked the background of the server.
The server of the 9-chapter compiling platform speech library has been running for two days.
In the past two days, the server of Jiuzhang Compiler Platform and Baidu's server have been connected to the grid, frantically pulling out all the regular Chinese language resources that Baidu can search for.
In the process of continuous selection, reading and learning, the language library of the nine-chapter 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 for the compiler to compile the content.
Using 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.
For the development of this compiler, Chen Xiao completely borrowed the capabilities of C language and c++lv8, based on Chen Xiao's understanding of technological systems.
After learning the language a lot and forming your own logic.
The nine chapters 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 some simple programming.
For example, compiling a program for addition and subtraction.
Open the Jiuzhang compiler platform, and Chen Xiao directly input: Application: Addition and subtraction of numbers.
Then clicked the Run button.
The addition and subtraction of numbers, these words actually already represent a lot of logic at the bottom.
The language library of the compiler also forms the corresponding language vectors and mathematical logic about the addition and subtraction of numbers.
In the next nine chapters, the compiler will follow the logic to find the most concise and most suitable language for the application, and grab and edit the language to form the final program.
After Chen Xiao clicks to run, the application of addition and subtraction has been edited.
He arbitrarily entered a few numbers for operation, and the result was completely accurate.
Chen Xiao checked the corresponding database again and found. This time the compilation platform calls the C language.
The underlying code is more complicated.
#include
intmain()
{
doublesum=0;
int;
for(inti=1;i
{
sum+=*(1.0/i);
*=-1;
}
printf("%llf", sum);
}
Addition and subtraction operation is a very small logic, so it can be expressed in very concise words on the nine chapters compilation platform.
But when compiling more complex applications, the situation is not so simple.
This involves nine chapters of compilers, 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, the relevant Chinese language characters are input.
For example, Chen Xiao now needs to write a more difficult program.
"If it's Monday to Friday, the set desktop is the picture named Seaside Scenery in the d-th picture.
If it is Saturday and Sunday, then the set desktop is the picture named Beach Scenery in the d-th picture. "
Programs with complex backgrounds require Chen Xiao to write them in language structures.
Among the nine-chapter compilers, the default is from framework to detail, from simple to complex.
Chen Xiao wrote on the compiler.
"Set the desktop."
"The background of the desktop is read from the d drive gallery."
"Read the system time, Monday to Friday, read the beach, and read the desert Saturday and Sunday."
The whole program, Chen Xiao only used three lines, and it was done in Chinese.
And for each line of Chinese, there will be a corresponding underlying language.
This is the biggest advantage of word vectors and language structure logic.
Chen Xiao immediately checked, what language is the app calling?
He found that the Jiuzhang compiler called C++ through the language library and after the conversion of the underlying logic.
There are hundreds of lines of code in C++, and the code is dense and dazzling.
Chen Xiao wrote this application and used it for less than a minute, and the application is completely accurate without any bugs.
If an experienced programmer writes this application in C++, it may take 10 to 20 minutes.
For those engineers who are beginners in programming languages, it may take an hour or two, or even longer.
The nine chapters compilation platform greatly solves the problem of difficulty in programming and typing.
In the future, the really good programming engineer will not be how accurate he typed code, but how precise and rigorous his logical thinking ability is.
Seeing the results of this operation, Chen Xiao was quite satisfied.
The server of the compilation platform will always run in parallel with Baidu's server, and continuously learn relevant language knowledge and language logic.
The original intention of Chen Xiao to develop this editor is to improve the efficiency of programming and develop a domestic operating system at the fastest speed.
At present, there are compilers, and the most difficult point of developing a domestic operating system is also placed in front of it.
That is the whole logic and layout of the operating system.
This requires the help of the top engineers in the country and even the world to think and write logical planning diagrams.
This matter cannot be done by Chen Xiao alone~www.readwn.com~, but requires the cooperation of people.
Chen Xiao looked at the sky outside the office, the lights were already on.
He was working overtime behind closed doors in the office, and neither Song Yi nor Luo Ting, the office director, knew about it.
There was some grumbling in his stomach, Chen Xiao opened the refrigerator, got some quick-frozen dumplings and boiled them in the pot, even if it was dealt with tonight.
It's definitely not going to go home so late. Wen Qi and Han Wen live at home, and it's not convenient for Chen Xiao to go back.
In the evening, Dad called and asked Chen Xiao how long it took to go back for the Spring Festival?
Chen Xiao could only laugh bitterly. 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 not help but use.
7017k
You'll Also Like
-
, who was at full level of single defense, made Messi and Ronaldo cry
Chapter 185 8 hours ago -
Wandering the Heavens: Becoming a Killer
Chapter 206 8 hours ago -
I invite people from all realms to become the fourth disaster!
Chapter 102 8 hours ago -
I, who eats the school beauty's soft rice, founded the Gotei 13
Chapter 202 8 hours ago -
With the system in hand, he returned to the village and became a fisherman.
Chapter 200 8 hours ago -
I'm the ultimate disaster of the Beasts Pirates.
Chapter 192 8 hours ago -
Reincarnation Game: I can strengthen everything
Chapter 187 8 hours ago -
Fairy Tail Holy Light Magic
Chapter 204 8 hours ago -
Dragon Ball I can become stronger if I am killed
Chapter 218 8 hours ago -
Pirates: I become stronger by checking in on the plot island
Chapter 69 8 hours ago