16
Looking at the barrage filling the screen, Han Yuan smiled and didn't mind it too much.
Regarding the things the viewers were talking about, no one was clearer about them than he was.
Chinese programming is not entirely absent in current human society; if one wanted to make it, it could actually be made.
Because whether it is Chinese programming or English programming, the number of keywords and key terms defined by programming languages is actually not very large.
Just like keywords such as if and else in English programming, can Chinese define them?
It is entirely possible; it's just that it cannot reach the level that exists in his mind.
When he first acquired the Chinese Intelligent Programming Language, he had already arranged for the "Yuanchu" Laboratory to collect information related to Chinese programming.
To put it bluntly, a programming language is just a set of symbol systems; there is neither English programming nor so-called Chinese programming.
Because whether writing code in Chinese or in English in current human society, it actually does not reduce the complexity of algorithms and logic.
What ordinary people think programming looks like is this:
"Help me buy a watermelon at the watermelon stand, and if you pass by the sundry shop, buy another bottle of Haitian soy sauce."
But actual programming:
【Define Watermelon】
【Define Watermelon Stand】
【Define Haitian Soy Sauce】
【Define Sundry Shop】
【Function Buy Things (Call Things, Location)】
【Return 【Status, Route】】
【Function Run (Logical Structure)】
【Buy Melon = Buy Things (Watermelon, Watermelon Stand)】
【Buy Haitian Soy Sauce = "Failure"】
【If Buy Watermelon 【1】 Contains Sundry Shop】
【Buy Haitian Soy Sauce = Buy Things (Return Haitian Soy Sauce, Sundry Shop)】
【Return 【Buy Watermelon 【0】, Buy Return Haitian Soy Sauce 【0】】】
【Run (Define)】
That's right, the above things constitute the entire process of buying a watermelon and buying Haitian soy sauce.
And this is still incomparably simplified; actual programming is actually even more complex than this.
Because whether it is Chinese programming or English programming, ultimately computers can only recognize binary composed of on and off.
The grammar and language attached to human high-level languages cannot be completely understood unless clearly written in the program.
Just like the matter of buying a watermelon.
When a programmer writes this kind of code, they even need to write in whether the robot lifts its left foot first or its right foot first.
Otherwise, the robot will not walk out at all.
This is also a drawback of all modern high-level programming languages: the volume of code; during reproduction work, the greater the reproduction workload, the more massive the required amount of code is.
Take the Windows desktop system most used in current human society as an example.
For example, Windows 7 has approximately over 50,000,000 (fifty million) lines of code.
If matching software is added, the total scale of lines of code will exceed 100,000,000 (one hundred million) lines.
If a complete software ecosystem is added on top of that, the total scale will not be lower than 1,000,000,000 (one billion) lines.
The Chinese programming that many people think and feel—if it simply replaces English with Chinese characters while still following mechanical grammatical structures, braces, indentations, and other such grammar or formats—
then this is actually completely unnecessary.
But if Chinese programming can make the program a lightweight language just like Chinese itself, just like using one's mother tongue, rather than rigid format changes, that would be awesome.
Unfortunately, the Chinese programming currently being researched cannot achieve this point at all. Coupled with English programming occupying the entire market, naturally no one goes to research and promote it.
And in Han Yuan's mind, this Chinese Intelligent Programming Language provided by the system can ultimately achieve a lightweight programming language.
Of course, this is also processed in batches.
When the Chinese Intelligent Programming Language was researched and developed, it was actually also an extremely bulky language.
It was later, after bit-by-bit optimization and improvement, that it became the Chinese Intelligent Programming Language transmitted by the system.
Han Yuan was not prepared to throw it all out at once.
Because the changes made by the ultimate Chinese Intelligent Programming Language are too many.
For example, the basic language of a computer is binary, and using so-called 0 and 1 for expression is the control of logical levels, which is low level and high level.
In fact, high/low levels are just an intensity of logical levels, and do not necessarily have to be expressed with 0 and 1.
It is also possible to use other symbols for representation.
For example, in many chips, the intensity of its high level is actually 3.3V, and the low level is 0V; or rather, the high level is 4.5V, and the low level is 0.25V or 0V.
It's just that people still call them 1 and 0.
The reason why it is said that the Chinese Intelligent Programming Language transmitted by the system has made great changes to the basic base language
is because it no longer uses Arabic numerals like 0, 1, -1, 2 for representation, but instead uses characters in Chinese.
After all, whether it is Arabic numerals or Chinese characters, to a machine it is actually just controlling switches; no matter what you change it to, it can be recognized.
It's just that the corresponding base code and chip circuitry need to be redesigned and rewritten.
Besides this, the Chinese Intelligent Programming Language transmitted by the system also requires a unique assembler, compiler, unique computer hardware, chips, and other things to cooperate with it.
And Han Yuan currently does not have these things.
Especially the newly added syntax library and definition library tailored for the Chinese Intelligent Programming Language; these two things are the key.
Only with these two program libraries can the lightweight language programming method be ultimately realized.
Therefore, this time, Han Yuan was not prepared to directly and comprehensively throw out the Chinese Intelligent Programming Language transmitted to him by the system.
This time, the underlying basic base code he adopted was still Arabic numerals.
Coming back to his senses, he coughed to clear his throat, and Han Yuan continued to add, "The 'Chinese Intelligent Programming Language' used this time was researched and designed on the basis of Chinese."
"From the underlying binary code, to assembly language, and then to high-level programming language, it has formed its own complete system."
"Compared to the English programming used in the early days, after the Chinese Intelligent Programming Language develops to a certain extent, it can greatly simplify programs."
"However, this is also relative."
"Starting from today, for at least two to three months, I will sit here and write out the control programs for the central computer and numerical control equipment bit by bit from the underlying base code."
"After completing the control program design of the central computer and numerical control equipment, I will then begin to carry out the upgrade of industrial equipment."
"This is a very boring process, and it requires me to summon twelve-fold mental focus."
After speaking, Han Yuan glanced at the virtual screen and filming sphere floating in front of him, ignored the viewers inside the Livestream Room anymore, and instead turned on the integrated chip computer.
Power flowed, and the grayish-white display screen lit up. There was nothing on it at all, just like when a Linux system boots up and there is only a white display screen.
The computer booted up, and Han Yuan did not waste any time. Familiar as usual like playing games, he cracked his fingers, and after making a series of crisp cracking sounds, he placed his fingers on the customized input device.
"1101101010011010"
"1001001100101001"
"."
As Han Yuan continuously tapped the input device, on the monitor of the integrated chip computer, a series of various symbols composed of numbers constantly appeared and disappeared.
Sometimes the volume of data was so huge that it gave people the feeling of binary code constantly scrolling through in The Matrix, dazzling one's eyes.
The code composed of complex values refreshed at such a fast frequency and speed that it amazed the viewers inside the Livestream Room.
【What is this, what is this.】
【Binary?】
【Is the anchor writing binary code?】
【Didn't they say Chinese Intelligent Programming? What on earth are these -101 things?】
【Underlying code, computer language!】
【Why would I suddenly think of learning binary in the middle of the night? All of this must start from a bat...】
【My IQ is a bit lacking; after watching for a long time, I feel dazed and confused, and can't understand anything.】
【Numbers all over the screen, can this also be considered Chinese programming?】
【Programming is not that simple. The anchor doesn't have anything right now, so he definitely has to build the underlying code first. Only with the underlying code can he write the assembler, and then can he write Chinese programs.】
【Computer Language — — > Assembly Language — — > High-level Programming Language.】
【Is there anyone who can understand this? What on earth did the anchor write?】
【Can't understand!】
【Can't understand + 1.】
【+1.】
【+2.】
【+10086.】
【There are very few people who know underlying binary code nowadays, right?】
【Isn't binary code 0 and 1? It seems I just saw the anchor write -1? Was my vision blurry?】
【It seems I saw it too.】
【If there is a -1, then that's a Ternary system.】
Inside the Livestream Room, the viewers discussed animatedly, and netizens were very interested in the underlying code written by Han Yuan.
After all, this was the first time the vast majority of people had direct contact with underlying computer language.
However, people who could understand it were almost nonexistent.
Therefore, they simply couldn't make head or tail of what this anchor was actually writing.
But the experts from various countries lying in wait inside the Livestream Room were different.
Huaguo, Beijing.
In the underground base where the "MSC-CNC eight-axis six-linked numerical control processing equipment" was previously tested, among the still busy crowd, there were programmers watching the Live Broadcast.
When they saw Han Yuan starting to write the underlying machine code, the expressions of the top programmers watching the Live Broadcast turned solemn or blank one after another.
A bald-tier Senior stared fixedly at the Live Broadcast screen without blinking the moment Han Yuan started writing base code, furrowing his brows.
After a while, this programmer Senior, with furrowed brows, seemed to have thought of something; his pupils dilated, his mind wandered to the skies, and he was unconsciously murmuring something in his mouth, as if calculating.
Half a day later, this top programmer Senior finally came back to his senses, abruptly stood up, and exclaimed out loud!
"So it's like this!"
"So that's how it is!"
"I've found out what that lock in the 'MSC-CNC eight-axis six-linked numerical control processing equipment' actually is."
Hearing this, everyone in the control room instantly cast their gazes over, looking at the shiny head of this programmer.
On top of it, it seemed to be filled with the radiance of wisdom.
They had been researching this numerical control processing equipment for over two months, yet they still hadn't found any useful information.
Now there seemed to be a result?
Stared at by everyone, this bald programmer took a deep breath, and with a trembling tone said:
"Base system!"
"It's the base system!"
"We all know that binary is the underlying code used by modern computers, and it is composed of 0 and 1."
"But this anchor modified the base system related to the computer's underlying code. The base code he adopted is not binary, but a Ternary system."
"When writing these underlying codes, he used the three numbers -1, 0, and 1."
"This means that whether it is the central computer he uses or the numerical control processing equipment, they will all use Machine language compiled with Ternary system code."
"Although I don't know how this anchor managed to make the numerical control processing equipment recognize underlying code of a different base system."
"But this should be the reason why we have consistently been unable to find information related to deciphering the lock."
Hearing this, everyone in the entire control room instantly widened their eyes, full of bewilderment and utter confusion.
After a while, someone in the control room finally came back to their senses.
The expert in charge of hardware analysis for the "MSC-CNC eight-axis six-linked numerical control processing equipment" perplexedly posed his question to the bald programmer in front of him.
"Binary and the Ternary system, when applied to computers, is the difference very big?"
Hardware and software are two completely different fields. Even top experts in their respective fields only know about these things and haven't delved into them deeply.
What this hardware expert wanted to ask was actually not the difference between the two, but the places that needed to be changed after both were applied to machines.
Because by confirming the places that needed to be changed, they could find out where that lock actually was.
"To say it's big, it's big; to say it's not big, it's not big."
The bald programmer didn't answer. In the control room, another expert spoke up.
"Normally speaking, applying binary and the Ternary system to computers or machines is nothing more than adding another intermediate level to high and low levels."
"Adding an intermediate level is simple, but verifying this intermediate level requires certain modifications to the chip equipment of computers and machines."
"Ternary computers are not impossible to realize. In fact, this is not a fresh concept; National University of Defense Technology over in Changsha already has ternary computers."
"Compared to binary, the Ternary system is closer to the base-e system."
"And theoretically speaking, base-e is the theoretically most efficient base system for'storage'. To some extent, this means that the Ternary system is superior to binary."
"Theoretically speaking, as long as the instruction sets are both Turing complete, what binary can calculate, the Ternary system can also calculate, and vice versa."
"The reason why modern computers use binary is because two-state electrical levels are the easiest to control."
"The operating foundation of computer chips is high levels and low levels."
"High levels can be 3.3V, can also be 4.5V, and can even be 5V, while low levels are generally 0V."
"In the early years, chip manufacturing technology and transistor manufacturing technology were not very mature, because the judgment and control of input levels could not be done perfectly."
"And using binary can effectively solve this problem. Even if the fluctuation difference of the input level is very large, it is only necessary to control the low level to 0V."
"In this way, even if the level input to the chip fluctuates to a certain extent, the chip can still make judgments, greatly improving the judgment accuracy rate and reducing errors."
"Binary thus became the default basic base system of computer chips and has continued to the present."
"Although with technological progress, traditional computer components such as vacuum tubes and transistors have gradually been phased out, replaced by ferrite cores and semiconductor diodes with faster speeds and better reliability."
"These electronic components form a very good controllable current Transformer, which provides the possibility for the realization of ternary logic circuits."
"Only by this time, binary computers have already spread across the globe. If modifications were to be made, the things involved would be far too many, which can be said to be a task as difficult as ascending to heaven."
"Therefore, at present, computers like ternary computers and quaternary computers still exist only in the laboratories of various countries, solely for research, and have not been widely promoted."
