"Professor He, that's how it is … I spent the whole night on the computer and still couldn't find anything …" Gu Nianzhi was a bit depressed.
She had never encountered this kind of situation before.
He Zhichu coughed lightly and said to Gu Nianzhi, "Nianzhi, I wanted 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 isn't widely used. It's still in the experimental stage."
"Then do you know why it isn't widely used?" He Zhichu seemed to be teaching Gu Nianzhi a class to enlighten her.
"Prolog, also known as Programming-in-logic, as the name implies, is a programming language based on logic theory. It's also a type of intelligent program. Current computer hardware is limited and can't support the large-scale use of this programming language, so the actual use is basically zero. "
"Right, then what's the difference between it and normal programming languages?" He Zhichu looked up at the bright sunshine outside the window and squinted.
"Oh, is Professor He testing me?"
"Aren't you known as a genius computer expert? Let me see how well you've mastered the basics. " He Zhichu smiled faintly and lowered the curtains with his long, clean fingers. He walked to his desk and sat down to turn on the computer.
Gu Nianzhi giggled and said, "Okay, that's how I understand it. In normal programming languages, the programmer is the absolute leader. The lines of his code are clear and are all instructions to the computer. However, a logic programming language like Prolog sets logical rules for the computer and then allows the computer to determine how to proceed to the next step of the program based on the logic rules.
"For example, using a normal programming language for the computer to calculate a formula, the programmer teaches the computer to first multiply and divide, then add and subtract. The computer calculates strictly according to the calculation sequence set by the programmer. From this perspective, the computer executes the programmer's orders and will never make a mistake. The only thing that makes a mistake is the programmer writing the wrong program.
"However, a logic programming language like Prolog uses logical rules to process data. It's not as simple as adding and subtracting, then multiplying and dividing.
"The simplest logical relationship is like this. First set Little Red as a human, and Little Li is also a human, and the two of them like each other. Then give the judgment rule: people who like each other are friends. Then when you input Little Red likes Little Li, and Little Li likes Little Red, the computer will conclude that they are friends. Then proceed to the next step of reasoning based on the relationship between friends. "
He Zhichu nodded with satisfaction. "Not bad. That's the principle. However, this was the most basic description. Do you program in Prolog? "
Gu Nianzhi thought about it, then shook her head and said, "I've tried a few times, but I haven't done a systematic large-scale programming process."
She had learned the most practical hacking techniques from Zhao Liangze, which meant that she had studied the most widely used programs and had a thorough understanding of them.
To put it bluntly, the essence of a hacker was the ability to crack.
The most powerful hacker could crack all programs.
As for the intelligent programming language, there was basically no practical use, so there was no need to crack it. Therefore, Gu Nianzhi's understanding of this aspect was relatively shallow.
"That's too bad. If you have the chance, use Prolog more often. Some problems won't be problems anymore," He Zhichu reminded her subtly.
Gu Nianzhi didn't understand what He Zhichu was implying. She shrugged and said nonchalantly, "But AI programming is closely related to computer artificial intelligence. Before artificial intelligence makes a breakthrough, these AI programming languages can only be used on a small scale. Why should we spend time on this? When artificial intelligence becomes popular, it won't be too late for me to research how to crack it. "
He Zhichu shook his head disapprovingly. "Nianzhi, as far as I know, this kind of AI programming language is already a semi-finished product in some countries' military laboratories. Do you know what it means to be a semi-finished product in the military? "
Gu Nianzhi was instantly stumped.
He Zhichu's status meant that Gu Nianzhi couldn't ignore anything he said.
Gu Nianzhi suddenly realized something.
She thought of the programming language Prolog that He Zhichu had just mentioned. Although she only had a superficial understanding of it, this superficial understanding included the core rules of this intelligent programming language.
He Zhichu's hint also seemed to open the door to a new world in front of Gu Nianzhi.
She stared fixedly at the source code that she had been studying all morning on the computer and seemed to understand something.
"Nianzhi?" He Zhichu didn't hear Gu Nianzhi speak for a long time, so he called her worriedly.
Gu Nianzhi came back to her senses and said happily, "Professor He, you're amazing! I think I already found the problem! I'm sorry, I have to find the bug. When I find the bug, I'll treat Professor He to a meal! "
"Really? Don't try to fool me. " A faint smile appeared on He Zhichu's cold and aloof face. The smile was light and shallow, like the tiny ripples caused by scattered rain falling into a clear blue lake in spring.
Gu Nianzhi nodded quickly. "I won't go back on my word! If I go back on my word, I'll grow into a big fat man! "
"Tsk tsk, you're so hard on yourself. Even I'm afraid of you." He Zhichu teased her briefly before hanging up.
Looking at the computer in front of him, He Zhichu thought for a moment and opened an infrequently used program …
…
After Gu Nianzhi hung up, she stared at the computer screen for a full half an hour. She sat there motionlessly, like a clay statue.
In fact, her mind was racing, thinking about how to use the intelligent logic programming language, Prolog, and how to crack this intelligent logic programming language.
However, the first step to cracking it was detection.
He Zhichu's words gave Gu Nianzhi a new idea.
What would happen if a normal program was mixed with Prolog or a programming language similar to Prolog?
Could the bug that she and Zhao Liangze couldn't find be related to the intelligent programming language Prolog?!
After another half an hour, Gu Nianzhi finally thought it all through. She picked up the mouse, opened her programming notebook, and began writing a program.
This time, she modified her bug detection program to treat the intelligent programming language as a type of bug to search for.
The basis of the search was that any source code that ran with logical settings was a bug.
That was because normal programming languages never used logical settings to write source code.
After the modification, she re-checked the source code that Zhao Liangze gave her.
This time, Gu Nianzhi didn't sleep. She sat in front of the computer the entire time and watched her program run and search without blinking.
She had to admit that the source code of the monitoring software that Zhao Liangze gave her was truly amazing.
Fortunately, the computer in her official residence was more powerful, so she could perform such high-load calculations and tests.
Even so, it took her almost 12 hours to complete the entire test.
She had her lunch and supper in her bedroom.
For a whole 12 hours, Gu Nianzhi didn't leave the house. Other than going to the door to get lunch and dinner from the orderlies, she barely left the computer.
At 11 o 'clock at night, her program finally chimed with a successful completion.
She had never been so happy to see a big "Done" appear on the computer screen.
Gu Nianzhi let out a long sigh of relief.
She clicked on the program's error-report and saw a few lines of instructions in the previously empty error-check report. She instantly smiled.
She had checked the program all night last night, but couldn't find a single error.
There was nothing in the error-report, but Gu Nianzhi wasn't happy at all.
Now that she saw that there was a real error in the error-report, she was overjoyed and speechless.
Gu Nianzhi read the error-check report excitedly. The more she read, the more excited she became.
"F * ck! You can do that?!
"You can actually set up a recursion program based on Prolog's intelligent logic programming language in a normal programming language!
"… This is like inserting a chuunibyou into a group of idiots who do one action at a time and secretly giving orders to the idiots …"
Gu Nianzhi's heart surged and she couldn't take it all in.
It was as if in the source code that only knew how to "say one is one, say two is two", there was suddenly an additional code that told them that when one appeared, they could stay where they were, and when two appeared, they could return to one.
If it was neither one nor two, then they would follow the original instructions.
This was setting up a dead logic program between the established "one" and "two" situations!
The key was using intelligent logic programming as a foundation, so this dead logic wouldn't become an endless loop of a virus program, so it wouldn't be discovered by the user of the software.
"That's amazing! Who's such a genius?! "
Gu Nianzhi couldn't care less about the middle of the night. She called He Zhichu excitedly. "Professor He! I found a bug! Someone really mixed a few lines of Prolog instructions into a normal programming language! Professor He, you're amazing! You're the genius! You're a real computer expert! "
He Zhichu had just fallen asleep and was woken up by Gu Nianzhi's call. He wasn't angry and smiled faintly. "It's my honor to be praised by a computer expert."
Gu Nianzhi smiled happily. "Professor He, you're too humble. This problem stumped many of us. I didn't expect you to see the essence of the problem so quickly. I want to ask you, how did you know this was the reason? You seem to be very proficient with computers! "
He Zhichu's eyes flashed. He said calmly, "I'm also standing on the shoulders of giants. I once sponsored a country's military laboratory and saw them do this kind of testing. "
"Oh! Got it! " Gu Nianzhi knew which country He Zhichu was talking about. She closed her eyes tacitly. "It looks like we still have a long way to go to catch up …"
"Not long either." He Zhichu leisurely leaned against the bed. "Actually, you said that someone suggested this problem was either a computer problem or a software problem. You've already pointed out the core of the problem. I believe that person will be able to figure out the crux of the problem as long as they think about it for a while. "
This was because only intelligent programming languages could truly drive hardware to serve software.
Gu Nianzhi suddenly felt honored.
Her Huo Shao was just that awesome!
※ ※ ※
This was the third update of 3100 words. It was also a big chapter!
A reminder for the monthly votes and recommendation votes!
The first update in the morning had two updates in one, so this was the third update. There's no problem 2333333 ~ ~ ~
You've already exceeded your reading limit for today. If you want to read more, please log in.
Login
Select text and click 'Report' to let us know about any bad translation.