Chapter 1026: Her Huo Shao is Awesome (Chapter 3 Asks for a Monthly Pass)
"Professor He, that's it...... It took me a night on my computer last night, and I still can't find anything......" Gu Nianzhi was a little frustrated.
She's never been in that situation yet.
He Chuchu coughed lightly and said to Gu Nianzhi: "Nianzhi, I want to ask you, are you familiar with the programming language Prolog?"
"Prolog?Programming-in-logic?" Gu Nianzhi quickly reacted, "I know, but this programming language is not widely used, and it is still in the laboratory stage. ”
"Then do you know why it is not widely used?" He Zhizhi inspired Gu Nianzhi's thinking as if he was lecturing in class.
"Prolog, also known as Programming-in-logic, as the name suggests, is a programming language based on logic theory, that is, a type of intelligent program. The existing computer hardware level is limited and not enough to support the large-scale use of this programming language, so the actual use is basically zero. ”
"Yes, so how is it different from ordinary programming languages?" He Chuchu raised his eyes to look at the bright sun outside the window and squinted.
"Uh, is Professor He testing me?"
"Aren't you called a genius computer expert? Let me see how well you master the basics. He Chuchu smiled shallowly, lowered the curtain with slender and clean fingers, walked to his desk and sat down, and turned on the computer.
Gu Nianzhi grinned and said, "Okay, that's how I understand it. In ordinary programming languages, programmers are absolutely dominant. His code is clear and clear, and it is all instructions for the computer. Prolog, on the other hand, is a logical programming language that sets logical rules for the computer, and then lets the computer decide how to proceed with the next step based on the logical rules. ”
"For example, if you ask a computer to calculate a formula in a common programming language, the programmer teaches the computer to multiply and divide first, then add and subtract. The computer calculates in strict accordance with the calculation sequence set by the programmer. From this point of view, the computer executes the programmer's commands without error. The only thing that can go wrong is if the programmer writes the wrong program. ”
Prolog, a logical programming language, processes data according to logical rules, rather than simply adding, subtracting, and then multiplying and dividing. ”
"The simplest logical relationship is like this, first set Xiaohong is a human, Xiaoli is also a human, and the two like each other. Then give the judgment rule: people who like each other are friends. So when you type Xiaohong likes Xiaoli, and Xiaoli likes Xiaohong, the computer will conclude that they are friends. Then follow the friendship for the next step of the reasoning run. ”
He Chuchu nodded with satisfaction, "Yes, in simple terms, this is the truth." However, this is the most basic description. - Do you use Prolog to edit the process?"
Gu Nianzhi thought for a while, shook his head and said, "I tried a few times, but there was no systematic large-scale editing process. ”
What she learned from Zhao Liangze was the most practical hacking technique, which meant that she studied more and more thoroughly the widely used programs available.
Because the essence of hacking is, to put it bluntly, to crack functions.
The most powerful hacker that can crack everything.
The intelligent programming language basically has no practical application, so it does not need to be cracked, so Gu Nianzhi has a relatively superficial understanding of this aspect.
"It's a pity, if you have the opportunity, you can program more in Prolog, and some problems will not be a problem. He Chuchu reminded her implicitly.
Gu Nianyi didn't hear the meaning of He Chuchu's words, she shrugged her shoulders and said disapprerovingly: "But intelligent programs are closely related to the artificial intelligence of computers, and before artificial intelligence makes breakthroughs, these intelligent programming languages can only be petty fights, so why spend time on this? After artificial intelligence becomes popular, it is not too late for me to study how to crack it." ”
He Chuchu shook his head disapprovingly, "Nianzhi, as far as I know, this kind of intelligent programming language is already a half-finished product in the military laboratories of some countries. - Do you know what the concept of the military's semi-finished products is?"
Gu Nianzhi was suddenly stuck.
He Chuchu's identity and status made Gu Nianzhi unable to ignore anything he said.
Gu Nianzhi suddenly realized.
She thought of the programming language Prolog mentioned just now, although she only had a superficial understanding, but these superficial understandings included the core rules of this intelligent programming language.
And He Chuchu's hint is also like opening the door to a new world in front of Gu Nianzhi.
She looked at the computer steadily, and she had been pondering the source code all morning, as if she understood something.
"Nianzhi?" He Chuchu didn't hear Gu Nianzhi speak for a long time, and called her a little worriedly.
Gu Nianzhi came back to his senses and said happily: "Professor He, you are so powerful! I think I have found the problem! I'm sorry I'm looking for a bug, when I find a bug, I'll invite Professor He to dinner!"
"Really, don't fool me. He Chuchu's cold and indifferent face showed a faint smile, which was both light and shallow, like the small ripples of the sporadic rain falling into the clear blue lake water in spring.
Gu Nianzhi nodded again and again, "Never break my promise! Break my promise and make me grow into a big fat man!"
"Tsk, you're so cruel to yourself, even I'm afraid. He Chuchu lightly teased her and hung up the phone.
Looking at the computer in front of him, He Chuchu thought for a moment and clicked on an infrequently used program......
……
After Gu Nianzhi hung up the phone, he stared at the computer display screen for half an hour, sitting there motionless, like a clay sculpture and wood carving.
In fact, her mind was racing fast, thinking about how to use Prolog, an intelligent logic programming language, and how to crack this intelligent logic programming language.
However, the first step in cracking is detection.
He Chuchu's words gave Gu Nianzhi a new idea.
What happens if a common program is mixed with Prolog, or a programming language similar to Prolog?
The bug that she and Zhao Liangze couldn't find was related to the intelligent programming language Prolog?!
After another half an hour, Gu Nianzhi thought it all through, and then picked up the mouse, opened his programming book, and began to write a program.
This time, she modified her bug-checking applet to find the intelligent programming language as a kind of bug.
The basis for the search is that all the source code that runs with logical settings is a bug.
This is because ordinary programming languages never write source code without logical settings.
After the modification, the source code given to her by Zhao Liangze was re-checked.
This time Gu Nianzhi didn't sleep, she kept sitting in front of the computer, watching her program run and find without blinking.
I have to say that the source code of the monitoring software that Zhao Liangze gave her is really powerful.
Fortunately, the computer she used in Huo Shaoheng's mansion was more powerful and could carry out such high-load calculations and tests.
Still, it took her almost twelve hours to complete the entire test.
She eats both lunch and dinner in her bedroom.
For 12 hours, Gu Nianzhi did not leave the house, except for going to the door to get lunch and dinner from the orderly, she barely left the computer for a single step.
At eleven o'clock in the evening, the clanging sound of her program finally being completed.
She had never been so happy to see the big "Done" on her computer monitor.
Gu Nianzhi let out a long breath.
Clicking on the error-report of the program, she saw that a few lines of instructions appeared in the previously empty error check report, and she immediately smiled.
Last night, she checked her program all night, but she didn't find a single error.
There was nothing in that error-report, but Gu Nianzhi was not happy at all.
Now that she saw the real error instructions in the error-report, she was so happy that she was also drunk.
Gu Nianzhi excitedly read the error report, and the more he looked at it, the more excited he became, and the more he looked at it, the more excited he became.
"I'm rubbing! and this kind of operation?!"
"I can actually set up a recursion program based on the Prolog intelligent logic programming language in a common programming language!"
“…… This is a group of fools who command one action at a time, and a secondary two player is inserted, and he quietly gives instructions to the fools......"
Gu Nianzhi was thrilled and dizzying.
It's as if in the source code that only says "one is one, two is two", suddenly there is a code that tells them that when one appears, they can stay put, and when two appears, they can go back to one.
If it's neither one nor two, then run as it is.
This is a logical dead program set between the two situations of "one and two"!
The key is to use intelligent logic programming as the basis, so that this logic will not become a virus program with a dead loop, so it will not be discovered by the users of the software.
"Who is such a genius?!"
Gu Nianzhi couldn't take care of the three watches in the middle of the night, and called He Chuchu excitedly: "Professor He! I found a bug! Sure enough, someone mixed a few lines of prolog instructions in the ordinary programming language——Professor He, you are amazing! You are a genius! A real computer expert!"
He Chuchu had just fallen asleep and was woken up by Gu Nianzhi's phone call, he was not angry, he smiled faintly and said, "I am honored to be praised by a genius computer expert." ”
Gu Nianzhi smiled happily, "Professor He is too modest, this question has stumped many of us, but I didn't expect you to see the essence of the problem at once." I want to ask you, why do you know that? You seem to be very good at computers, too!"
He Chuchu's eyes flashed, and he said calmly: "I am also standing on the shoulders of giants. - I once sponsored a country's military lab and saw them do this test. ”
"Oh! I understand!" Gu Nianzhi knew which country He was talking about at the beginning, and she closed her eyes tacitly, "It seems that we still have a long way to go......
"It's not going to be long. He Chuchu sat on the bed leisurely, "Actually, you said that some of you have raised this question whether it is a computer problem or a software problem, and you have pointed out the core of the problem." I believe that that person only needs to think about it for a while, and he will be able to figure out the crux of the problem. ”
Because only an intelligent programming language can truly drive hardware to work for software.
Gu Nianzhi suddenly felt honored.
Her Huo Shao is so good!
※※※※※※※※※※※※※※※※※※※※※
This is the third more 3100 words, and it's also a big chapter!
Remind you of your monthly passes and recommended tickets!
The first in the morning is more than two in one, so this is the third more, no problem 2333333~~~
Boom!
Please remember that the first domain name of this book is .. Biqu Ge mobile version update fastest website:m.