Analysis on the working principle of source code system

Raphael 2022-03-20 09:01:10

Duncan Jones' film is very good. Compared with "Inception", which sells special effects, Duncan Jones did not rely on any special effects and created the awesome low-cost science fiction film "Source Code".

It is also a movie involving multiple worlds, and many students will be confused. Take advantage of my identity as a physicist, a programmer, and impersonating Wenqing, to write something and try to explain something for everyone.

First of all, we need to know how the source code system in the movie works. I saw many students trying to explain the parallel world of the ending, but in fact they ignored the working principle of the source code.

The source code does not simulate the memory of the teacher Shawn. Otherwise, it is impossible to explain how the information outside the train is obtained. According to the explanation of the doctor in the film, the source code should be a quantum computer system. They used the source code to create a parallel world, and then used Shown's eight-minute memory of death to compare the parallel world and found the overlapping parts, and then sent the captain to this world to find the answer.

The role needs to be defined here. The source code is the system, and the captain is actually the program that runs the system. People outside cannot know what the system looks like. Everything is only presented on the screen through the language of the captain's brain. This is the result of running the program.

Then why did the captain see a screen talking to him when he came back from that world? The environment of the captain: display screen, bare wires, hydraulic oil, engine room. In the film, the captain yelled: There was hydraulic oil everywhere, and there was a problem with the engine room! The people outside were surprised and asked: Are you in the cabin? In fact, contacting the captain’s identity, this environment should be the environment that the captain had imagined from his last image memory before he died on the plane.

The captain's appearance in real life is that only half of his body remains, with a cannula behind his head. Much like the look in The Matrix. But unfortunately, it can't be as handsome as in The Matrix. The description in The Matrix is ​​a bit fantasy, and the description of the brain is a bit like the soul. If the soul does not return to the body, it will be pulled out and people will die. In fact, the tube in the back of the captain's head became virtuous. Therefore, this system cannot use normal living people to make programs, and the captain's body is dead while his brain is active during the mission. It's already a dead person in name, and it happens to be used for this kind of experimental task.

Well, now we have figured out how this system works. The captain is actually dead, but the brain can continue to exist through the life support system. He was connected to the "siege", this is the world the captain imagined, and external operators can communicate with the captain through this system. There were more than two hundred people on that train, and they found Shawn, whose brain activity was similar to that of the captain. Just extract the eight minutes before Shawn's death, compare it with the parallel world created by the source code, and implant the captain's brain activity into that point in that world. Due to the quantum uncertainty, even if the characters' activities are similar, they also produce different results because of the captain's influence. The captain can also explore the world to his heart's content and obtain information other than the train. Because source code creates the whole world.

Some students may ask, how much data should this have to create the entire world. In fact, based on quantum theory, all unmeasured events are in a quantum state. In other words, the world can revolve around the captain, and the source code does not have to simulate every detail of the world and the universe, only the incident about the captain is certain. That is to say, the captain jumped the train and went to the parking lot to have a white van there. Otherwise, the source code would not have to create a white van. The van was in a quantum state, and the event happened before the van appeared. Just like the hypothetical experiment of Schrödinger’s cat, only by opening the box can we know how alive the cat is, or how miserable it is to die, otherwise the world in the box is a quantum state, just like chaos.

As time goes by, more and more events occur in the world, the quantum state is determined, and more and more information, which is represented by entropy in quantum physics. The greater the entropy, the more disorderly the world will become and the more information will be. Obviously the source code system cannot sustain the operation of such a world. So there is a time limit of eight minutes, maybe not because of the eight minutes of memory before death, but also because the system can't run for that long.

As for many people who think that the movie should be stopped at the last kiss, I also hope that it will stop. But the movie did not stop, but in fact it should be stopped. (Well, this is a bypass...) The reason is because the system can't keep running. Not every time the program runs, Shawn dies, and Shawn suddenly faints and then returns to the "siege" system. If the source code can run forever, Shawn can stay with the beautiful women until they are old. Obviously, the Ministry of Defense does not have that much money to support such love.

Some students said, what if the source code really creates a new world? Just as the power of the source code mentioned at the end of the film is beyond your imagination. This ending is really beyond my imagination. It seems that the system can't be turned off no matter how it is turned off. This is a virus. Or, as in "Midnight Ring" (referring to the book), scientists use computer clusters to simulate a world. As a result, the appearance of Sadako made the world out of control and has been affecting the real world. As the doctor in the film said, it is not to travel through time and space to create and change the world, but to simulate a world, assign values, and check the results of the program of the lieutenant. When the operation is over, the system is terminated.

Just like in computer games, they exist in such a closed system. No matter how realistic the game is, it just exists in the computer, and the game is gone after a level. The world will generate a parallel world at that point, and in the film, this is to simulate the past world at this point in the current timeline, rather than going back and creating a parallel world at that point. So the picture will freeze at that kiss, and the system is unsustainable. Duncan Jones likes happyending. Sam is sent back to Earth in "Moon", and the world is maintained in "Source Code".

Put aside these nagging theories. It should be the gentle side that touches everyone's heart. Everyone on the train has their own worries. Some are busy negotiating with customers, some are frustrated because of unemployment, and some college students are busy preparing for exams. At the last moment of his life, Shawn spent money to make comedians make everyone laugh. Life shouldn't be so heavy.

"If there is one last minute left in your life, how should you spend it?"
"I will make every second meaningful."

View more about Source Code reviews

Extended Reading

Source Code quotes

  • Colter Stevens: The explosion came from behind me.

  • Colter Stevens: You seem concerned about the time. What are you late for?

    Max Denoff: I'm on my way to an asshole festival. I hear you're headlining.

    Colter Stevens: Oh, that's funny. What are you, a comedian?

    Christina Warren: Yeah. He is a comedian.