This is the most rigorous plot and the most logically justified film in the "future" and "time travel" category of movies I have ever seen.
I suspect that the screenwriter is a programmer.
First, briefly review the plot: the protagonist can foresee the future situation within two minutes at first, so he can seek advantages and avoid disasters in advance. Later, in order to meet a destined woman, he went to tail to follow her to the Grand Canyon. He found that when he was with this woman, he could foresee a farther future. The following plot is a plot that was cursed and played by some people who did not understand: the protagonist foresees a far future. In the future, he will continue to generate branches to search for various endings. In the end, this path is still unable to find the best. Excellent solution (actually got the worst result, all of them died), so at the end of the movie, the entire search branch goes back farther.
Obviously, he used the ability of recursion. This is most vividly reflected in the climax of the movie, the dock warehouse section: he searches recursively at every fork in the road. This plot can simply be used as a courseware in a computer algorithm class.
In fact, at the end of the movie, the protagonist chose to cooperate with the government to fight against the evil forces, and he said some very philosophical words. But is this the end? Wake up, this is a flaw that the screenwriter deliberately sells to take care of the emotions of the literary and artistic petty bourgeoisie. Who would write a depth-first search recursively that would only search for one branch? !
And that very bloody sentence: One of the characteristics of the future is that he will change every time you look at him, because you look at him.
This is clearly a critique of the side effect. In another great movie, the butterfly effect, there is also a deep critique of the side effect. Because of the side effects, the behavior of the program will become unpredictable, and the correctness of the program will not be verified. This is the protagonist's deep call for purely functional development.
There is another benefit through FP: parallel
Regarding the plot of this search, there are several points worthy of criticism: He performed multiple search tasks in parallel at the same time. But in the movie, it seems that it is not purely parallel, because other search branches will know the previous search results and pruning. This is considered search optimization.
Regarding recursion, everyone basically agrees. So why at first the protagonist could only foresee for two minutes, but then followed by a mm, the character exploded? The truth is that he started "tail recursion".
Regarding the movie name "next". This is a statement that indicates that the iteration is aborted and jumped.
In addition, with regard to future calculations and future processes, do you think about the starting point? ? continuation.
think about it. In order to promote the idea of FP, Lao Mei actually made a movie, which is really entertaining and entertaining.
View more about Next reviews