Chapter 189: I Talk, You Type
My IQ Grows Every Year by Quiet Art (介安艺)
Zhang Yuan sat at the computer in the middle. He wasn't typing. Pinched between his fingers was a cigarette that had been crumpled out of shape, and his eyes were fixed on a desk calendar.
Counting back from today, eleven days in a row had been crossed out with heavy red X's.
Only nine days were left until the date Fang Shi had given for switching over to compute time at the supercomputing center.
Lin Fang sat in the chair beside him with her head against the backrest and her eyes closed. When she heard the door open, she opened her eyes slowly and turned her head.
"Chen Zhuo."
Her voice was so hoarse it was barely audible.
Zhang Yuan came to as well. He turned his stiff neck and looked at the door.
Chen Zhuo pulled the door shut behind him and slipped the backpack off his shoulders. He walked to the desk, pulled over a folding chair and sat down.
He didn't speak right away. His gaze moved over Zhang Yuan's bloodshot eyes and the calendar on the desk.
"Senior."
When Chen Zhuo spoke, his voice was very steady.
Zhang Yuan's mouth twitched into a smile that looked worse than crying, and he tossed the bent cigarette onto the desk.
"You're here."
Zhang Yuan scrubbed a hand over his face.
"I told you everything on the phone. Three-dimensional transonic, the continuity equation diverges completely, forty-some million grid cells. The local machines can't even get a sandbox through, and in nine days we have to go onto the supercomputer."
Zhang Yuan paused. A deep helplessness came through in his voice.
"Going onto the supercomputer like this is suicide. Is there really no way out of this?"
Chen Zhuo looked at him.
He knew how Zhang Yuan and Lin Fang had gotten through these eleven days.
For the first five they had fought the physics head-on, and for the last six they had waited in despair. For anyone doing research, that kind of mental torment is like being flayed alive.
Chen Zhuo didn't try to comfort them, and he didn't offer any empty pep talk.
He unzipped his backpack and took out a black notebook.
He laid it flat on the desk and pushed it across to Zhang Yuan.
"There's one way."
Chen Zhuo tapped the notebook with his finger.
"But I can't promise anything."
Zhang Yuan's eyes lit up. His slumped body straightened at once, and Lin Fang shot up out of her chair and hurried over to the desk.
Zhang Yuan reached for the notebook to open it.
Chen Zhuo kept his hand on the cover.
"Senior, don't get excited yet."
Chen Zhuo looked at Zhang Yuan, and his eyes were candid.
"I spent six days in the old library. What's in this notebook doesn't even count as a complete mathematical theorem."
Zhang Yuan's hand stopped in midair.
"What do you mean?"
"I mean it's a defective product."
Chen Zhuo pulled his hand back and leaned back in his chair.
"It's very rough. There are gaps in the logic, and I haven't fully stitched together the boundary conditions for the conversion between algebra and geometry. If this draft went to blind reviewers in pure math, it would be sent back to be rewritten."
Zhang Yuan looked at the notebook and swallowed.
"But the direction is right?" Zhang Yuan asked.
"It should be."
Chen Zhuo nodded.
"If you follow this direction, you can get around that bottomless pit of compute you'll never manage to fill."
Zhang Yuan grabbed the notebook and opened it to the first page.
Lin Fang leaned in to look too.
One glance was enough to knot Zhang Yuan's brows tightly together, and Lin Fang froze as well.
The pages were covered in dense writing, but it wasn't the fluid mechanics equations they knew. It wasn't the discrete matrix algebra Chen Zhuo had used last year either.
It was all unfamiliar symbols: tensors, group theory, mappings.
Zhang Yuan turned two more pages. The further he read, the more alarmed he became, and the more lost.
"What is this?"
Zhang Yuan looked up, completely bewildered.
"Where are the pressure waves? The velocity field? How are you handling the nonlinear terms of the N-S equations? Why isn't there a single physical quantity on here?"
"Because what's written there isn't physics."
Chen Zhuo stood up and walked to the big whiteboard in the middle of the room.
The whiteboard still held the long expansion of the Navier-Stokes equations that Zhang Yuan and the others had written days ago, along with all sorts of boundary conditions for the grid partition.
Chen Zhuo picked up the eraser. Without the slightest hesitation, he raised his hand and started wiping hard from the top left corner downward.
In the quiet lab, the scrape of the eraser on the board sounded a little harsh.
"Hey, you…"
Zhang Yuan instinctively tried to stop him. Those were the initial conditions for the sandbox, and it had taken them several days to derive them.
But Chen Zhuo didn't stop.
He moved quickly and decisively. In a few strokes, everything about continuous flow, finite-difference schemes and grid nodes was wiped clean.
The entire whiteboard was now completely blank.
Chen Zhuo tossed the eraser back into the tray and dusted the chalk off his hands. Then he turned and took a brand-new stick of chalk from the desk.
"Senior."
Holding the chalk, Chen Zhuo pointed at the empty board.
"Our earlier approach was held hostage by habit. All we could think of was simulating a gust of wind, simulating the forces when that gust hits forty million grid points on the train nose."
He turned and wrote on the whiteboard a symbol for an algebraic variety.
"The physical road is blocked by compute. So we drop the physics."
The chalk moved fast across the board.
Chen Zhuo began copying the symbols they couldn't understand onto the whiteboard, line by line, from the hardcover notebook.
"Drop the physics?"
Standing by the desk, Lin Fang felt as if everything she understood had been turned on its head.
"We're computing the aerodynamics of a high-speed train entering a tunnel. How do we compute that without physics?"
"With algebra."
Chen Zhuo kept writing as he spoke, and his voice carried clearly through the empty room.
"Treat that three-dimensional, streamlined train nose as a pure topological manifold. Then find a set of polynomials that maps it into an algebraic space."
Chen Zhuo wrote out a complicated set of homology group mapping formulas.
Zhang Yuan stared at the whiteboard, and his brain couldn't quite make the turn.
He was a doctoral student at one of the country's top engineering programs, and he was very good at applied mathematics. Calculus, partial differential equations, even traditional linear algebra were all things he handled with ease.
But he had almost never touched a field as abstract as algebraic geometry.
Looking at the gibberish on the board, all letters and circles and boxes, Zhang Yuan felt a headache coming on.
"Chen Zhuo, hold on."
Zhang Yuan couldn't help interrupting, and he rubbed his temples.
"These algebraic varieties and homology mappings, I can't really follow them. This stuff is way too abstract."
Zhang Yuan pointed at the whiteboard.
"I'll just ask the most practical question there is. How does this theory of yours fix the servers crashing? How does it get us onto the supercomputer in nine days?"
Chen Zhuo stopped writing.
He turned and saw how agitated and lost Zhang Yuan looked, and he suddenly smiled.
"Senior, if you can't follow pure math, let's switch languages."
Chen Zhuo bounced the chalk in his hand a couple of times, walked over to Zhang Yuan and pulled the chair from earlier toward him. He sat on it backward, arms folded on the backrest.
"When you write the low-level code, how do you handle forty million grid cells?" Chen Zhuo asked.
"How else? You set up a 3D array, feed in all the coordinate points, then write a huge set of nested loops and make the machine iterate through the boundary conditions at every point, step by step."
Zhang Yuan answered on reflex.
"So it runs out of memory, right?"
"Obviously. Forty million nodes, high-order matrix multiplication on every iteration. Even a god would run out of memory."
Zhang Yuan said it grumpily.
Chen Zhuo nodded.
He pointed at the algebraic formulas on the whiteboard that Zhang Yuan found so incomprehensible.
"Translate that set of formulas into C++ or Fortran you can understand, and it comes down to one thing."
The smile left Chen Zhuo's face. His tone turned very serious, even a little cold.
"Delete the grid-meshing module from your code. Completely."
The lab went silent.
Zhang Yuan stood frozen with his mouth slightly open, as if he hadn't heard right.
Lin Fang was stunned too.
"Delete it? Delete the grid-meshing module? Then what do we build the train nose model with?"
"Polynomial coefficients."
Chen Zhuo looked at them and said it slowly, word by word.
"What this algebraic mapping does is turn that complicated geometric train nose into a few letters. You don't need to put forty million coordinate points into the code."
Chen Zhuo stood, went to the whiteboard and underlined one of the lines of formulas with the chalk.
"In the new low-level code, the surface of the train nose is just a few sets of simple algebraic polynomials."
He turned to look at Zhang Yuan.
"When the flow passes over the train nose, the computer's underlying logic no longer has it slamming into forty-some million fragments."
Chen Zhuo rapped the board with the chalk.
"Instead, the computer solves these few sets of algebraic equations directly. Solve the equations, get the result."
Zhang Yuan's eyes slowly went wide.
Chen Zhuo looked at him and delivered the finishing blow.
"If there isn't a single grid cell left in the code, there are no tens of millions of data fetches."
Chen Zhuo tilted his head slightly, and his eyes were sharp.
"Senior, would your memory still overflow?"
Those few sentences struck like lightning and split the tangled fog in Zhang Yuan's head wide open.
At that moment, the instincts of a top engineering PhD flared up in him completely.
No grid.
Solve the equations directly.
Zhang Yuan's breathing went heavy all at once. He stared at the symbols on the whiteboard, which had looked like gibberish a moment ago, and now he looked at them as if he were looking at a gold mine.
If this logic could be successfully translated into engineering, the compute barrier really would be gone!
This purely mathematical tool smashed the physical shackles of fluid mechanics right at the foundation.
"It could work…"
Zhang Yuan muttered to himself, his hands trembling slightly as he braced them on the desk.
"This approach could work. Don't mesh, just compute the algebra directly…"
He spun around to look at Chen Zhuo, his eyes full of fervor.
"Chen Zhuo, what is your brain even made of? How did you think of turning the train nose into a few equations?"
Chen Zhuo didn't respond to that.
He went to the desk, picked up his notebook and opened it.
"Senior, sober up. It's not time to pop the champagne yet."
Chen Zhuo pointed to the blank spaces in the notebook.
"Like I just said, this is a defective product. There are a lot of holes in the mathematical logic that haven't been filled."
He looked up at the clock on the wall.
"At the normal pace of pure math research, fully stitching these boundary conditions together and deriving a perfect, self-consistent theorem would take me at least a few months, maybe half a year."
The warmth that had just risen in the lab cooled a little under Chen Zhuo's calm words.
Lin Fang bit her lip.
"But we don't have a few months. The supercomputing center's machine time switches over in nine days."
"Right. There's no time."
Chen Zhuo dropped the notebook on the desk with a light slap.
"So we can't wait for the theory to be perfect before we write the code."
Chen Zhuo went to the whiteboard with the chalk in his hand.
He looked at Zhang Yuan and Lin Fang. Some of his usual gentle composure had left his eyes. In its place was the hard focus of someone facing a challenge.
"For the next nine days, I'll be here."
Chen Zhuo pointed at the floor under his feet, then at the whiteboard behind him.
"I'll handle the derivation. I'll work out the algebraic and geometric boundary conditions step by step, and when I hit a gap in the logic, I'll patch it on the spot."
Then he pointed at the server keyboard in front of Zhang Yuan.
"You two sit here."
"Every time I finish a line of mathematical logic on the whiteboard that holds together, don't worry about whether it makes sense physically. Right away, translate it into low-level engineering code and type it into the server."
Chen Zhuo looked Zhang Yuan in the eye.
"I write a line of theory, you type a line of code. Every meter of road I clear, you pave a meter of code over it."
Listening to him, Zhang Yuan felt his scalp prickle.
This was insane.
It went completely against the normal process of research.
No project had ever started its engineering code before the theory had even taken shape. It was like a construction crew following an architect who hadn't finished the blueprints, putting the building up while he was still drawing.
It was a relay with no way back, running entirely on instinct and teamwork.
But right now it was the only way to make it through the supercomputer's door in time.
Zhang Yuan turned and exchanged a look with Lin Fang.
Lin Fang didn't hesitate. She pulled out her chair, sat down, put her hands on the keyboard and took a deep breath.
Zhang Yuan turned back as well. He went to the desk, picked up the long-since flattened pack of cigarettes, crushed it and threw it in the trash.
He pulled over his swivel chair and sat down at the machine next to Lin Fang's. He had already cleared the white-on-blue text from his screen and opened a brand-new code compiler window.
The cursor blinked against the black background.
He looked up at Chen Zhuo, standing in front of the whiteboard.
"Let's go."
Zhang Yuan's voice was no longer hoarse. It carried a ruthless edge, as if he had burned his boats.
"You just keep pushing forward. However crazy the equations you write, Lin Fang and I will turn them into code that runs, even if we have to type our keyboards to pieces."
Chen Zhuo looked at the two of them.
He turned around to face the huge whiteboard.
He raised his hand.
The white chalk came down on the board.
Crisp taps rang out through the basement lab.
Chen Zhuo began filling in the first missing homology group conversion condition from the hardcover notebook.
Zhang Yuan stared at the whiteboard.
Three seconds later.
The rapid clatter of a keyboard filled the lab. Zhang Yuan's fingers flew over the keys, and the first line of low-level code, defining the polynomial coefficients, appeared on the screen.
The fans roared on as before.
But this time, no one was staring at a frozen progress bar anymore.
On one side, pure math made its frantic climb across the whiteboard. On the other, the engineering code was rebuilt on the screen in real time.
The nine-day countdown had begun.