Yang Fei immediately wrote the program on the interface. He had just started using the Jiuzhang compiler, and he couldn't quite figure it out logically.
He put his hands on the keyboard for a long time without knowing what he was typing.
Then Yang Fei thought for a long time and typed a few more words.
Chen Xiao looked at the text typed by Fei and said, "It is better to use concise language as much as possible, so that the compiler's speech library can accurately recognize it."
When Chen Xiao said this, he was actually thinking about a question.
The Chinese language is indeed broad and profound, and it can express meaning accurately.
However, the vocabulary of Chinese is very large. If the operator combines it at will, this will bring certain difficulties to active recognition.
Currently Jiuzhang is learning more language knowledge from Baidu, but due to server performance, especially due to the chip's computing power, the compiler's recognition of long and difficult sentences is not so accurate. The understanding of polysemy is not so accurate.
This will cause bugs in the compiler when running, and will also make it more difficult for engineers to write programs.
Therefore, Chen Xiao has a plan to develop a standardized statement usage library for the compiler. This will not only allow engineers to learn and master the Jiuzhang compiler as quickly as possible, but also improve the accuracy and efficiency of the compiler.
Chen Xiao kept this matter in mind and planned to arrange Yang Fei's team to do it after the Spring Festival.
After Yang Fei stared at the keyboard for a long time, he finally finished writing a small program.
This small program is a function for inviting friends in a chat group. If written directly in C++, it would take Yang Fei about a whole day.
Even if the entire team writes it together, it still takes most of a day.
In addition to the time for subsequent program testing and bug correction, it may take two or three days.
But now it only takes less than 20 minutes for free to input the logic I want to express.
After clicking run, Yang Fei expected a miracle to happen.
It's a pity that the compiler prompted a lot of bugs, and Yang Fei failed in his first attempt.
Chen Xiao looked at the content compiled by Yang Fei carefully.
As expected, there was no problem with the logical structure. The biggest problem was that the language expression was not recognized by the compiler's language library.
At Chen Xiao's suggestion, Yang Fei modified his sentences to make them clearer and more concise, with fewer ambiguous sentences and polysemy words.
Yang Fei spent nearly 20 minutes revising the entire sentence.
Then he clicked Run with some trepidation.
What Yang Fei is struggling with is not just whether the statements he wrote can form a perfect logical closed loop and run smoothly, but he is also worried that it will not succeed after this run, which would be a slap in Chen Xiao's face.
As a result, everyone breathed a sigh of relief. The result of the code running was perfect and met everyone's expectations.
Because this small program is only a part of the entire application, there is no way to intuitively check whether the writing of the small program is successful through the application?
But after the compiler has been logically and linguistically verified and there are no errors, it can already explain the problem.
The entire Yuedong Internet employees were excited. What is efficiency? This is efficiency. Work that originally took a day or two or even longer can now be completed in less than an hour. How can this not be exciting?
But even if such a result occurs, everyone is still worried. After all, the Jiuzhang compiler is an emerging thing. If the Jiuzhang compiler itself has a bug, then it will be wrong to show that it ran successfully.
The best way to verify is to find the corresponding code of the language called by the Jiuzhang compiler, and then use other compilers to verify it.
Yang Fei quickly followed the method told by Chen Xiao to find the corresponding code.
It turns out that the corresponding language called by the Jiuzhang compiler is also c++, which indeed proves that c++ is widely used in programming.
Yang Fei immediately looked at the C++ code. There were tens of thousands of lines of code in total, which indicated that the amount of the project was indeed very large.
Yang Fei first asked his team to check whether the code was accurate step by step, and the conclusion he came to should not surprise everyone.
The code given by C++ is as expected by the team. The logic of each line is very correct, the pointer processing is also very appropriate, the location and application of variables are just right, and even a little clever.
If this day's sentence is regarded as a composition, it will definitely be a perfect composition.
However, visual inspection cannot draw a final conclusion.
The most important thing is to run it to see if there are any bugs.
After running, Yang Fei and everyone were excited.
Perfect, absolutely perfect.
The entire code has no errors and runs very smoothly.
After the test run, Yang Fei's eyes widened with a look of disbelief on his face.
After all, several days of work can be completed in less than an hour. If the Jiuzhang compiler is applied, the work efficiency of the staff of Yuedong Internet will be greatly improved.
Previously, when Chen Xiao talked about developing a domestic system, everyone thought it was just a joke.
Judging from the current preparations, Zodiac is serious, and everyone may really be able to complete the work of developing a domestic operating system.
[Influence +15]
[Influence +15]
[Influence +15]
Everyone thought that if Changtian Technology could really develop a domestic operating system that could be widely used, if everyone could use the Jiuzhang compiler to develop industrial design software with more functions and more power.
Then Xia Guo will definitely be able to reach the world's advanced level in computer applications.
As Chen Xiao said, engineers who encounter the Internet in the future will spend more energy and time on thinking and exploring the logical structure of applications instead of boringly typing code.
Compilers can make engineers' wild imagination come true.
The picture is too beautiful to think deeply about.
After holding back for a long time, Yang Fei said: "Boss, you are the eternal god!"
Chen Xiao said with a smile, "So this Spring Festival will be difficult for you, because there is a lot of work for you to do, and your Spring Festival holiday has also been shortened from seven days to three days. You have to rush back to the company immediately after the second day of the Lunar New Year, and of course you have to work overtime. The fee is three times as per the company’s regulations!”
The work arranged by Chen Xiao is to sort out the logical relationships of the Windows 98 system in detail.
The other is to explore the standard language library of the Jiuzhang compiler.
Everyone had no problem with the first job.
Yang Fei even issued a military order to eat every code of Windows 98 and to clarify the logical relationship of the system.
But the second question is more difficult for everyone.
Yang Fei said with a bitter face: "Mr. Chen, we are science students, and we are studying computers. I failed the Chinese language test with a score of about 80 in the college entrance examination. Otherwise, I would have gone to Yenching University to study. You let us, who are blind in Chinese, sort out the text." This aspect of things is very difficult!”
After Yang Fei said this, Chen Xiao had an idea and was overjoyed.
That’s right, professional matters should be handled by professionals.
To revise the language library of the Jiuzhang compiler, it should be done by liberal arts students, especially liberal arts students who study Chinese language. Only they know which words and sentences are more accurate and complete.
Thinking of this, Chen Xiao couldn't help but cursed. He had never thought that someone who studied Chinese language and literature could actually come here to engage in programming!
7017k