Hello, Mr. Major General

Chapter 1026 Her Family Huo Shao Is Awesome

"Professor He, that's it... I spent all night on my computer last night, but I still can't find anything..." Gu Nianzhi was a little frustrated.

She had never encountered such a situation.

He Zhichu 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 responded, "I know, but this programming language is not widely used and is still in the laboratory stage."

"Then do you know why it is not widely used?" He Zhichu inspired Gu Nianzhi's thinking as if he was lecturing in a classroom.

"Prolog, or Programming-in-logic, as the name suggests, is a programming language based on logic theory, that is, a kind of intelligent program. The existing computer hardware level is limited, which is not enough to support the large-scale development of this programming language. application, so the actual application is basically zero.”

"Yes, then how is it different from ordinary programming languages?" He Zhichu raised his eyes to see the bright sunshine outside the window, and squinted his eyes.

"Uh, is Professor He testing me?"

"Aren't you known as a genius computer expert? Let me see how well you have mastered the basic knowledge." He Zhichu smiled lightly, put down the curtain with his slender and clean fingers, walked to his desk and sat down, opened the computer.

Gu Nianzhi giggled, and said: "Well, this is how I understand it. In ordinary programming languages, programmers occupy an absolute dominant position. His code lines are clear and clear, and they are all instructions to the computer. The logic programming language is to set logic rules for the computer, and then let the computer judge how to proceed to the next step according to the logic rules.”

"For example, using ordinary programming language to let the computer calculate the formula, the programmer teaches the computer to multiply and divide first, and then add and subtract. The computer performs calculations strictly in accordance with the order of calculation set by the programmer. From this perspective, the computer executes the programmer's order , never go wrong. The only thing that goes wrong is that the programmer writes the wrong program.”

"Prolog, a logic programming language, processes data according to logical rules, not simple addition and subtraction followed by multiplication and division."

"The simplest logical relationship is like this. First, let's assume that Xiaohong is a human being, and Xiaoli is also a human being. The two like each other. Then give the judgment rule: people who like each other are friends. Then when you enter Xiaohong likes Xiaoli , Xiaoli likes Xiaohong, the computer will conclude that they are friends, and then proceed to the next step of reasoning according to the friendship.”

He Zhichu nodded in satisfaction, "That's right, it's easy to understand, it's the truth. But, this is the most basic description. ——Do you use Prolog to program the process?"

Gu Nianzhi thought for a while, then shook his head and said, "I tried it a few times, but I didn't systematically edit the process on a large scale."

What she learned from Zhao Liangze was the most practical hacking technique, which meant that she studied more and more thoroughly the existing widely used programs.

Because the essence of hacking is to put it bluntly, it is to crack the function.

The most powerful hacker can crack all programs.

As for the intelligent programming language, there is basically no practical application, so there is no need to crack it, so Gu Nianzhi has a superficial understanding of this aspect.

"It's a pity. If you have the opportunity, if you use Prolog programming more, some problems will not be a problem." He Zhichu reminded her implicitly.

Gu Nianzhi didn't understand what He Zhichu meant. She shrugged and said disapprovingly: "But intelligent programs are closely related to the artificial intelligence of computers. Before artificial intelligence makes breakthroughs, these intelligent programming languages ​​can only be small Xiao Nao, why spend time on this? After artificial intelligence becomes popular, it won’t be too late for me to study how to crack it.”

He Zhichu shook his head disapprovingly, "Well, as far as I know, this intelligent programming language is already a semi-finished product in military laboratories in some countries.

——Do you know the concept of semi-finished products of the military? "

Gu Nian suddenly got stuck.

With He Zhichu's status, Gu Nianzhi couldn't take anything he said lightly.

Gu Nianzhi suddenly realized something.

She thought of the programming language Prolog that He Chuchu mentioned just now. Although she only had a superficial understanding, this superficial understanding included the core rules of this intelligent programming language.

And He Zhichu's reminder also seemed to open the door to a new world in front of Gu Nianzhi.

She stared fixedly at the source code on the computer that she had been pondering for the whole morning, as if she understood something.

"Nianzhi?" He Zhichu didn't hear Gu Nianzhi's words for a long time, so he called her worriedly.

Gu Nianzhi came back to his senses and said with great joy: "Professor He, you are amazing! I think I have found the problem! Sorry, I have to find a bug. When I find the bug, I will treat Professor He to dinner!"

"Really? Don't coax me." A faint smile appeared on He Zhichu's clear and indifferent face. The smile was both light and shallow, just like sporadic rain in spring falling into the clear blue lake water. Tiny ripples.

Gu Nianzhi nodded again and again, "Never break my promise! Breaking my promise will make me grow into a big fat man!"

"Tsk tsk, you're so cruel to yourself that you're even afraid of me." He Zhichu lightly teased her, then hung up the phone.

Looking at the computer in front of him, He Zhichu thought for a while, and clicked on an unused program...

...

After Gu Nianzhi hung up the phone, he stared at the computer screen for half an hour, sitting there motionless, like a clay sculpture.

In fact, her mind was running fast, thinking about how to use Prolog, an intelligent logic programming language, and how to crack this intelligent logic programming language.

But the first step in cracking is detection.

He Zhichu's words gave Gu Nianzhi a new idea.

What will happen if Prolog or a programming language similar to Prolog is mixed in an ordinary program?

Could the bug that neither she nor Zhao Liangze could find was related to an intelligent programming language like Prolog? !

Another half an hour later, after Gu Nianzhi had thought everything through, he picked up the mouse, opened his programming book, and started writing the program.

This time, she modified her small program for checking bugs, and looked for smart programming languages ​​as a kind of bug.

The basis for the search is that any source code that runs with logical settings is a bug.

Because common programming languages ​​never write source code with logical settings.

After the modification, the source code given to her by Zhao Liangze was checked again.

This time Gu Nianzhi didn't sleep anymore, she sat in front of the computer all the time, watching her program run and search without blinking.

I have to say that the source code of the surveillance software that Zhao Liangze gave her is really amazing.

Fortunately, the computer in Huo Shaoheng's mansion is more powerful, so it can perform such high-load calculations and tests.

Even so, it took her almost twelve hours to complete the entire test.

She eats her lunch and dinner in her bedroom.

For a full 12 hours, Gu Nianzhi didn't leave the house, except to go to the door to pick up the lunch and dinner delivered by the orderly, she hardly ever took a step away from the computer.

At eleven o'clock in the evening, her program finally heard the jingle of completion.

She had never been so happy to see the big "Done" appearing on the computer screen.

Gu Nianzhi let out a long breath.

Clicking on the program's error-report, she saw a few lines of instructions appearing in the previously empty error-checking report, and she immediately beamed with joy.

She checked her program all night last night, but not a single error was found.

There was nothing in that error-report, but Gu Nianzhi was not happy at all.

Now that she saw a real error command appearing in the error-report, she was very happy and drunk.

Gu Nianzhi read the error report excitedly, the more excited he was, the more excited he became.

"I wipe! Is there such an operation?!"

"It is actually possible to set a recursive () program based on the Prolog intelligent logic programming language in an ordinary programming language!"

"...This is a middle school player who is placed among a group of idiots who give instructions and actions one by one, quietly giving orders to the idiots..."

Gu Nianzhi was overwhelmed and dizzy watching.

It's as if in the source code that only "says one is one, and two is two", suddenly there is an additional code, telling them that when one appears, they can stay where they are, and when two appears, they can back to one.

If it is neither one nor two, then run according to the original instruction.

What the hell is setting up a logical dead program between the established "one and two" situations!

The key is to use intelligent logic programming as the basis, so that this logic will not become an endless loop of virus programs, so it will not be discovered by software users.

"It's amazing! Who is such a genius?!"

Gu Nianzhi didn't care about the middle of the night, and excitedly called He Zhichu: "Professor He! I found a bug! Sure enough, someone mixed a few lines of prolog instructions into the ordinary programming language! ——Professor He, you are amazing! You are the real Genius! A real computer expert!"

He Zhichu just fell asleep, and was woken up by Gu Nianzhi's phone call. He was not angry, and smiled lightly and said, "It's a great honor to be praised by a genius computer expert."

Gu Nianzhi smiled happily, "Professor He is too modest. This question has stumped many of us. I didn't expect you to see the essence of the problem all at once. I want to ask you, why do you know this is the reason?" ? You seem to be very proficient in computers too!"

He Zhichu's eyes flickered, and he said calmly: "I am also standing on the shoulders of giants. ——I once sponsored a military laboratory in a country and saw them do tests in this area."

"Oh! I understand!" Gu Nianzhi knew which country He Zhichu was talking about, she closed her eyes tacitly, "It seems that we still have a long way to catch up..."

"It's not too long." He Zhichu sat on the bed leisurely, "Actually, you said that some of you raised this issue either as a computer problem or a software problem, and you have already pointed out the core of the problem. I believe that person just needs to think more about it." After a while, you can figure out the crux of the problem.”

Because only an intelligent programming language can truly drive hardware to serve software.

Gu Nianzhi suddenly felt proud.

Her Huo Shao is so awesome!

※※※※※※※※※※※※※※※※※※※※※※※※※

This is the third update of 3100 words, and it is also a big chapter!

Remind dear friends of the monthly ticket and recommended ticket!

The first thing in the morning is the combination of two changes, so this is the third change, no problem 2333333~~~

mwah!

Chapter 1052/2302
45.70%
Hello, Mr. Major GeneralCh.1052/2302 [45.70%]