16
He walked over to Lin Ziyang's side, glanced at his "scribbles," and then said, "Student, you're not a computer science major, are you? This isn't standardized at all.
Our operations must strictly follow the format in the textbook. Use line numbers; don't use these fancy arrows. The machine doesn't recognize those things."
Lin Ziyang looked at the Computer Science Teacher. "Teacher, I think this is clearer, and the logical relationships are obvious at a glance. Although the machine doesn't recognize it, humans can understand it, which greatly simplifies the complexity."
The Computer Science Teacher snorted. "But the point is to let the machine understand it, not humans. Student, you're not a computer science major and don't understand the knowledge in this field. It's better if you don't participate in our research."
Lin Ziyang knew that his method was the mainstream of the future and that the days of punch cards wouldn't last much longer. But since this Computer Science Teacher didn't believe him and was even angry, Lin Ziyang didn't bother to argue with him.
The students in the classroom continued their work. Worried that his wife would get tired, Lin Ziyang helped Lu Xiaoxue punch the cards according to the teacher's method and requirements.
Although he wasn't a computer science student, he knew this knowledge like the back of his hand.
Lu Xiaoxue trusted Lin Ziyang unconditionally and accepted his help.
Even though her teacher questioned Lin Ziyang, Lu Xiaoxue remained unmoved.
Because when she couldn't understand things before, she had often asked Lin Ziyang for professional computer knowledge, and her man explained everything perfectly every time.
If Lin Ziyang hadn't thoroughly researched computer science, he wouldn't have been able to answer her questions.
With Lin Ziyang's help, Lu Xiaoxue's work became much easier.
In less than an hour, the students in the class handed over their finished punch cards to an operator in the classroom.
After collecting all the students' cards, the operator began to stack them into the Card Reader.
The machine then made a rhythmic "click-clack" sound. As it sucked in the cards one by one, the hole information was converted into electrical signals.
Next, the Technician walked to the Main Console of the DJS9-130 and pressed a few buttons, and the Tape Drive began to spin.
At this moment, all the students held their breath, staring at the Line Printer.
Initially, the printer creaked and spat out a few rows of normal headers and data.
But soon, the printer's speed began to accelerate abnormally. What appeared on the paper were no longer numbers, but lines of chaotic characters and repeating garbled code.
Then the printer started spitting out blank paper wildly, and several red warning lights on the Main Console began to flash rapidly.
The Technician quickly terminated the operation, and his expression darkened.
Seeing this, the Computer Science Teacher hurried forward to check the situation.
He looked at the printed garbled code and the console logs, then swapped in a set of cards from another group of students to see if it was a machine issue or if the student-made cards were substandard.
He swapped in another group's cards, and the problem appeared again, though the location of the garbled code was slightly different this time.
Facing this situation, the Computer Science Teacher's brow furrowed as he muttered, "Is this an infinite loop? Or a data overflow?"
He was more inclined to believe that a physical link had gone wrong, so he continued to mutter, "Maybe the Card Reader is unstable, or a student's card sequence is wrong, or maybe a card is damaged?"
Thinking of this possibility, the Computer Science Teacher said to the students, "Everyone, re-check the order of your cards. Especially pay attention to whether the edges are damaged or curled. Then, we will conduct the experiment in the next class."
Hearing the Computer Science Teacher's words, the hearts of the students present also sank.
Re-check?
How was that possible?
These cards weren't just made in today's class; they were accumulated from several previous classes.
In total, each student had made dozens or even hundreds of cards.
If every single card had to have its holes and sequence verified, it would be like looking for a needle in a haystack, and there was no guarantee they would find the problem.
Hearing the teacher's words, Lu Xiaoxue's delicate brows also furrowed slightly.
If too much time was wasted on this step, when would there be time to learn other knowledge points?
Normally, she wouldn't mind the trouble, but now that she was pregnant, her body was getting heavier and movement was inconvenient. She needed more rest.
If her studies took up too much time, it would be hard for her to rest peacefully.
Lin Ziyang also saw Lu Xiaoxue's distress, so he said to the Computer Science Teacher, "Teacher, maybe it's not a hardware problem or a card sequence error."
Hearing Lin Ziyang's words, the Computer Science Teacher turned his gaze toward him.
Why is it this kid again!
This kid wasn't a computer science student, so his words naturally had zero credibility.
Thus, the Computer Science Teacher said with some displeasure, "What do you know? Do you even know what you're saying?"
The teacher spoke very rudely, but Lin Ziyang didn't get angry. Instead, he took a step forward and pointed to a spot on the log tape, saying, "Teacher, look here first. Near address 01234, the contents of the ACC Accumulator changed from a positive number to a negative number after the third loop iteration.
Assuming our algorithm's orbital semi-major axis parameter 'a' is always positive and continuously accumulates, if the initial value of a certain set in the input data axis is abnormally large, it might exceed the maximum positive number representable by the Accumulator word length after three consecutive accumulations, thus triggering a 'positive overflow.'"
Hearing Lin Ziyang's words, the Computer Science Teacher's expression became extremely bewildered.
Before, he felt that Lin Ziyang wasn't a computer science student and knew nothing about computer knowledge, so his words had no credibility.
But now, listening to these professional terms, how did he sound like someone who knew nothing about computers?
It seemed he not only understood but had mastered it.
Seeing Lin Ziyang stop halfway, the Computer Science Teacher said to him, "Student, please continue."
Seeing that the teacher was listening, Lin Ziyang cleared his throat and continued, "This overflowed value jumps from the maximum positive to the maximum negative. All subsequent calculations are based on this erroneous assignment, causing the results to diverge completely. This leads to logical confusion in the program, printing garbled code, and falling into an unintended loop of jumps.
So I think this is more consistent with memory overflow and process loss of control caused by logical errors, rather than a simple physical card-reading error."
After listening to Lin Ziyang's analysis, the Computer Science Teacher was even more astonished.
In fact, he also knew the concept of 'overflow,' but the knowledge he possessed was mostly at a theoretical level.
In a practical operation as complex and involving shared variables as today's, as a Computer Science Teacher, he really couldn't quickly locate the overflow point and accurately determine its cause.
