typeface
large
in
Small
Turn off the lights
Previous bookshelf directory Bookmark Next

Chapter 661 C Language

Although 100 million is not a small amount, it accounts for almost one-third of the military currency Wang Xuexin has earned for so long, but Wang Xuexin had to bear the pain and buy it at this time.

Originally, Wang Xuexin thought that the system would give some profound solutions, such as a very impressive circuit diagram or a sophisticated platform to simplify the circuit. Unexpectedly, the system only replied with a few words "C language"!

Wang Xuexin couldn't help but yell in his mind: Damn, are you kidding me?

But as soon as I thought about it, I was stunned for a long time and was speechless.

Maybe C language can really solve the problem...

The difficulty Turing encountered was ultimately due to the lack of standardization and process flow of computer operations, that is, how to wire the connections depends entirely on the scientists' understanding of the data.

This wiring method is okay for fixed-point arithmetic... Fixed-point arithmetic is relatively simple. Although it wastes storage units, it simplifies the wiring.

However, although floating-point arithmetic saves storage units and increases accuracy, the complexity of wiring has increased several times because of the complexity of the operation.

At this time, it will be difficult or even impossible to complete the wiring solely by relying on scientists' understanding and feeling of the data as before. Sometimes even mathematical geniuses like Turing will be circumvented by complicated wiring methods.

Therefore, Wang Xuexin does not need to pay attention to the circuit diagram-like wiring methods drawn by Turing, nor does he need to understand the so-called "order", "operation", "rounding overflow" and "data normalization" in floating point operations.

"Wait for the operation.

He just needs to invent a "language", a "language" that can be used in computers.

Wang Xuexin had always thought that high-level languages ​​​​such as "c language" would definitely not be able to be used on such primitive computers at this time, because they are not compatible and current computers "cannot read" high-level languages.

Now Wang Xuexin realized that he was wrong...

At this time, this kind of low-level computer is indeed "incomprehensible" and cannot use high-level language directly, but high-level language can clarify the logical relationship between data and determine whether a selection judgment or loop is required when the operation reaches a certain step.

Then the corresponding wiring method is solidified and standardized. When working, you only need to put it on in a fixed way... This achieves the simplification and process of complex wiring, and even ordinary people can operate it after training.

It does not require scientists to do it themselves.

In this way, scientists can be freed from monotonous, complicated, and meaningless wiring work... These should be left to programmers to do, and scientists should spend their precious time on more meaningful work.

, such as improving computer research algorithms, etc.

But this was just Wang Xuexin's idea, and he was not sure whether this was what Turing wanted.

So Wang Xuexin put on a pensive look and said with an uncertain tone: "I remember that you mentioned in the paper a model for converting real problems into mathematical operations, which is the input and output of data, storage, and

A series of instructions!”

What Wang Xuexin is talking about is the Turing machine that he understands, which is the computer imagined by Turing. The machine he imagined can be connected with real events and solve problems is very similar to modern computers... The overall process is exactly the same.

, only some details are different.

Turing nodded happily and replied: "This is what I want to express, Comrade Head, it seems that you have understood my paper. I am very happy to hear this!"

"What I want to say is the series of instructions mentioned in your paper!" Wang Xuexin said.

This series of instructions is actually the program written when using modern computers.

"Is there any problem?" Turing asked.

Wang Xuexin flipped through the files Turing gave him, took out the wiring methods that were as complex as circuit diagrams, and asked: "If we want to correspond to your paper, can these wiring methods be understood as giving instructions to the computer?

"

Turing looked at Wang Xuexin in surprise, then nodded: "That's absolutely correct, that's what I've been thinking all along!"

Turing felt like he had found a soulmate, because even Qiong was probably not aware of this. He didn't expect that on the other side of the world, in China, which was extremely backward in industry and technology, there was someone who thought the same thing as him.

When Wang Xuexin received Turing's affirmative answer, he was half relieved, because this proved that his previous guess was correct, and the "C language" given by the system was also the correct answer.

At this time, Wang Xuexin couldn't help complaining about this damn system. He actually asked for 100 million military coins for just these three words... Damn it! Did the strong wind blow my money?

But when I think about it more carefully, I feel that this is actually my fault... I clearly know the C language and know that it is used on computers, but I didn't consider whether it could be used and rejected it without thinking!

It seems that I really don’t have the potential to be a scientist. I can return home empty-handed even if I sit on the mountain.

After thinking about it, it was useless to regret that the military coins had been spent. Wang Xuexin had no choice but to say to Turing: "In that case, why don't we sort out these wiring methods in an easy-to-understand way, like

The way we communicate with machines can be called a 'language'!"

Turing couldn't help but be stunned when he heard this: "Communicate with the machine? 'Language'?"

These terms are already out of date in modern times, such as "human-computer dialogue", "human-computer interaction", and various "languages" for computers.

But in this era, this is difficult to understand, because it is equivalent to treating the machine as an intelligent thing. When people input data and instructions, they are not controlling but communicating with the machine. Using a kind of human and machine

Communicate in a way that everyone can understand, and this way is called "language".

It took Turing a while to react. He nodded and praised: "This is... This is a very vivid and novel statement, Comrade Leader! A 'language'... You, can you give an example?"

What kind of language should be used so that both we and the machine can understand it?"

This is not much difficult for Wang Xuexin. Although he has not learned C language deeply, he remembers the main statements very clearly.

Wang Xuexin sat down at his desk, took the paper and pen and said while writing: "For example, during calculation, the machine will need to determine whether a certain value is '0' or '1' before it can continue to calculate. This wiring method

We can classify it as a judgment statement, or an 'if statement'..."

As soon as he started talking, Turing understood what Wang Xuexin meant.

"That's great, Comrade Leader!" Turing jumped up like a child, dancing with excitement: "You are simply a genius, Comrade Leader! If you do this, no matter how complicated the wiring method is, it can be operated in a standardized way.

It’s well organized in the manual and doesn’t require a lot of skills!”

Wang Xuexin nodded, sighing that scientists are different. He could guess everything from the beginning...


This chapter has been completed!
Previous Bookshelf directory Bookmark Next