Chapter 749 Even if you are a liberal arts student
It is difficult because it still has a lot of "retention" of assembly language, sacrificing readability for efficiency.
Further up are high-level languages, which are the most friendly to people. The current mainstream languages are BASIC and PASCAL proposed by Li Hongjiang.
The characteristic of high-level language is that it is closer to human language habits. It is almost equivalent to a special kind of English, which is easy to master. But the disadvantage is that a lot of redundancy will be generated after compilation, and the compiled program will take up a lot of space and be inefficient.
The efficiency of C language is only ten to twenty percent lower than assembly, so C language can be used to write operating system software and development tool software.
It could even improve the operating system itself.
The UNIX mentioned by Li Kaijiang is an operating system similar to DOS, but it is far more complex than DOS because it has been designed for multi-user and multi-task operations since its birth.
So its initial users are not individuals, but large, medium and small computers shared by many people and multitasking in parallel, not personal computers.
And this system is open source, which means everyone can use it casually; and more than 95% of it is developed in C language, so its functions are extremely powerful.
Until decades later, the UNIX system was also the main operating system used by major financial institutions, universities, and national strategic institutions.
Of course, with the popularity of personal computers and mobile phones, UNIX has also differentiated into subsets of personal versions. The latest Apple systems, Android systems and Hongmeng systems on mobile phones are actually its children.
But that happened a long time ago. Now when Li Kaijiang asked about UNIX and C language together, Zhou Zhi knew that the school must have introduced a minicomputer.
However, even today's small computers have the same computing performance, and are not even as good as the performance of a later flip phone.
"The machine-readable card sampling program was developed by our department, elbow, do you want to take a look?" Mai Mingchuan enthusiastically extended an invitation: "I'll invite you to the cafeteria for dinner!"
"Lao Mai is still so picky." Gu Kailai said with a smile: "You guys are so wealthy now, why don't you even invite us together?"
This is true. Nowadays, the most popular major in major colleges and universities must be information technology. The country is in urgent need of talents in this field, and various resources are tilted towards this aspect.
“It’s a lot of pressure.” Mai Mingchuan shook his head: “The minicomputer cost the school more than 500,000 yuan. If we don’t produce a 1 million yuan result by next year, the old secretary will eat me.”
“Let’s go, let’s go, I’ll give you my treat!” Mai Mingchuan waved his big hand: “But let’s break it down before we mess up. If this project really comes to fruition, will you pay for it or should we?”
Zhou Zhi found it funny: "Director Mai, actually, I think a joint declaration is more of a gimmick."
Zhou Zhi has worked hard to do this, and Zhou Zhi also came up with the idea. It's obvious that the baby is the junior in Mr. Gu's pocket. The next hard work will be in the computer department. If the results end up being in the Chinese department, it will be very bad.
Seeing Mr. Gu nodding in agreement with Zhou Zhi's statement, Mai Mingchuan smiled and said: "It seems that the country has not yet had an information industry project that spans the two major disciplines of liberal arts and sciences. A joint application does sound more exciting!"
Even if It was a holiday stir-fry, and the food in the Sichuan University cafeteria was just like that. After having a random meal in the banquet hall next to it, Zhou Zhi followed Mai Mingchuan and Li Hongjiang to the computer room after getting Gu Lao's approval.
"Director Mai, Professor Li." In the computer room, there were teachers on duty and classmates who were using the computer. They all stood up and greeted the two of them.
"This is classmate Zhou Zhi. He came to take a look at our machine-readable card program." Li Hongjiang said: "Have the materials from the Chinese Department been sent?"
"Sent them. Yes, sixty boxes in total.”
Even though Li Hongjiang had been mentally prepared, he couldn't help but be shocked by the number, because the design of the font library actually did not require such "stupid" efforts. But behind this "stupid" kung fu is determination and courage.
Also, these things are indeed helpful for subsequent work.
There are indeed similarities between the machine-readable card program and the thoughtfully conceived dot matrix character collection scheme.
The machine-readable card is a bunch of small square areas, marked with a pen. The machine-readable program will scan the machine-readable card, read the color block distribution, convert it into the candidate's answer, and compare it with the standard answer. , calculate the candidate’s score.
The dot matrix is actually a large square formed by a collection of thirty times thirty small squares. Some of the squares in this set are filled with black. All the black colors added together form a Chinese character, which is called a dot matrix character.
The white areas are represented by zeros, and the black areas are represented by ones. The dot matrix characters become a string of binary codes.
This code can only express a very rough font. It also needs to add a vector function to make the strokes of the characters "smooth" according to the font design rules. It can also be enlarged and reduced freely, so that it can be called "a certain style". word vector".
Gather all the characters together to form a character library.
Now that the characters are available, they must be easily extracted. This requires encoding each character. When the encoding of the character is input to the computer and its output device is specified, the computer will extract the character and display it. to output devices such as screens and printers.
This encoding is actually a low-level thing. People don't need to know its specific principles. Programmers have developed another set of methods that are convenient for humans to remember and use to complete the concept of "typing". This is the input method.
People only need to use a set of rules to tell the input method what words I need to type. The input method will convert this set of rules into machine language, extract it from the font library and display it, and the work is done.
What Zhou Zhi is currently studying is how to easily and quickly create a collection of dot matrix characters in the system.
This requires modifying the machine card reading program.
This involves positioning the scanned image, finding the starting point of the scan, letting the computer know where to start, and then reading. There are 900 points in a word, which ones are assigned zeros and which ones are assigned ones.
Then you also need to know the end, which is to find the end point of the scan.
In addition, a check digit must be added to use a set of magical algorithms to ensure that the computer knows several things - first, this is the operator's determination to enter a text; second, the string read The binary code must be correct;
The computer center also has a lot of work. After asking students to open a computer for Zhou Zhi and access the programs in the server, Mai Mingchuan and Li Hongjiang convened a meeting with students to assign teaching and research tasks. .
As a result, when the machine was turned on, he heard a roar: "Who asked you to mess with the program!"
Li Mingjiang's heart skipped a beat, and he quickly entered the computer room with Mai Mingchuan, only to find Zhou Zhi I have put on an anti-static wrist strap and seem to be typing something on the keyboard.
"Instructor! He is modifying our program randomly!" The student who came in just now had red eyes.
Zhou Zhi spread his hands: "The modification is modification, but not random modification. I have saved your old program. I just reset the scanning accuracy and added some characteristic parameters of dot matrix characters. . ”
“Boss, can you understand our program?” Li Mingjiang was greatly surprised.
You are a liberal arts student! !
(End of this chapter)