Font
Large
Medium
Small
Night
Prev Index    Favorite Next

Chapter 241

Whether you can use Chinese to program is not the key, just look at the advantages of English over Chinese in the computer subject.

Many people are discussing Chinese computers, imagining what would it look like if the computer was invented by the Chinese? First of all, what would the keyboard look like? Like abacus like gossip or like a guzheng? In fact, when there is a molded example, all possibilities will be gone. Therefore, with the current computer, it will never be known what would the Chinese invent computers. Even if there is, it will be said to be borrowing from existing computers, or the improvements of current computers, etc.

So, what are the advantages of English over Chinese in modern computers? I think there are two:

1. Encoding.

English is naturally an encoding language, which is obviously more suitable for machine implementation. Especially in the early stages of computer development, hardware technology was still very simple, and fewer encodings were obviously easier to implement. There are only 26 English letters, and the commonly used symbols can only be represented by 7-bit binary. English letters are simple in strokes, and only 8x8 dot matrix can display pretty good characters. Although with the development of hardware technology, fewer characters are no longer a problem, historical accumulation has left behind. The smallest operating unit of modern computers is bytes and 8-bit binary, which means that there are fish in English fishing. Other characters can only be represented by multiple bytes. Various encoding schemes now give English letters a special status. For example, although unicode is aimed at all codes, English letters are especially only 8 bits. Therefore, once other languages ​​do not understand the original encoding scheme, they cannot decode correctly and become garbled. However, English characters are never garbled.

2. Accumulation

The second advantage is that there is no way, that is, the accumulation of history. Now almost all important documents, software, and papers in the computer discipline are in English or all in English, and are written in English. For the mother tongue, which is a natural barrier, is it.

So what about the solution? The second accumulation is no way, so you can only solve it slowly by time. Let’s talk about coding.

According to the previous analysis, the reason for the garbled code is caused by multiple bytes. In the past, the hardware was not good, and 8 bits were already the best (the 4004 and 4-bit computers made Intel famous). There are only 256 symbols at most, indicating that Chinese characters are obviously not good. If 16 bits are uniformly defined from software and hardware as the minimum operating unit, that is, one byte is 16 bits. Then, Chinese characters are exactly the same as Ascii. At the same time, the display character module is also based on 16x16 as the basic display mode, which is completed by hardware. In that case, Chinese characters are exactly the same as English letters. This will be more suitable for the application of Chinese characters in computers.

Report|9th Floor|Like|Reward|Comments

Author: Lecheng Hang 1lv10 Time: 2016-11-2419:05:11

Decoding and encoding is here:

When hoeing the wheat at noon, sweat drips into the soil. Who knows that every grain of food on the plate is hard to do. Double-byte Chinese characters are easy to be scrambled, while single-byte English letters will not. The most important thing for a Chinese computer is to make Chinese characters and English letters equally right?

Report|Floor 10|Like|Reward|Comments

Author: Lecheng Hang 1lv10 Time: 2016-11-2419:10:59

In the past, the hardware was not good, and 8 bits was already a day (the 4004, 4-bit computer that made Intel famous) - the number of bits of a computer has nothing to do with processing power. Is it not enough to use two or more bytes? Nowadays, computers are only 32-bit and 64-bit. Can't they only process 4 or 8 characters? Text encoding is to encode according to needs. It's normal. 8-bit English characters are enough, and Chinese characters need at least 2 bytes. Is there any problem? Is it much more difficult because 2 is bigger than 1? 2 bytes and 1 byte is twice as much storage capacity for computers? What's the problem?

Report|Floor 11|Like|Reward|Reply|Comments

Author: Lecheng Hang 1lv10 Time: 2016-11-2419:24:05

Whether you can use Chinese to program is not the key, just look at the advantages of English over Chinese in the computer subject.

Many people are discussing Chinese computers, imagining what would it look like if the computer was invented by the Chinese? First of all, what would the keyboard look like? Like abacus like gossip or like a guzheng? In fact, when there is a molded example, all possibilities will be gone. Therefore, with the current computer, it will never be known what would the Chinese invent computers. Even if there is, it will be said to be borrowing from existing computers, or the improvements of current computers, etc.

So, what are the advantages of English over Chinese in modern computers? I think there are two:

1. Encoding.

English is naturally an encoding language, which is obviously more suitable for machine implementation. Especially in the early stages of computer development, hardware technology was still very simple, and fewer encodings were obviously easier to implement. There are only 26 English letters, and the commonly used symbols can only be represented by 7-bit binary. English letters are simple in strokes, and only 8x8 dot matrix can display pretty good characters. Although with the development of hardware technology, fewer characters are no longer a problem, historical accumulation has left behind. The smallest operating unit of modern computers is bytes and 8-bit binary, which means that there are fish in English fishing. Other characters can only be represented by multiple bytes. Various encoding schemes now give English letters a special status. For example, although unicode is aimed at all codes, English letters are especially only 8 bits. Therefore, once other languages ​​do not understand the original encoding scheme, they cannot decode correctly and become garbled. However, English characters are never garbled.

2. Accumulation

The second advantage is that there is no way, that is, the accumulation of history. Now almost all important documents, software, and papers in the computer discipline are in English or all in English, and are written in English. For the mother tongue, which is a natural barrier, is it.

So what about the solution? The second accumulation is no way, so you can only solve it slowly by time. Let’s talk about coding.

According to the previous analysis, the reason for the garbled code is caused by multiple bytes. In the past, the hardware was not good, and 8 bits were already the best (the one that made Intel famous was 4004, 4-bit computers). There are only 256 symbols at most, indicating that Chinese characters are obviously not good. If 16 bits are defined as the minimum operating unit from software and hardware, that is, one byte is 16 bits. Then, Chinese characters are exactly the same as Ascii. At the same time, the display font is also based on 16x16 as the basic display mode, which is completed by hardware. In that case, Chinese characters are exactly the same as English letters. In this way, Chinese characters are exactly the same as English letters. At the same time, the display font model is also based on 16x16 as the basic display mode, which is completed by hardware. In this way, Chinese characters are exactly the same as English letters.

For example, although unicode is aimed at all codes, the English letters are specifically only 8 bits. - The wrong unicode encoding is that all texts use 16.

There are at least two serious problems with unicode encoding: 1 is incompatible with a large number of English-speaking countries (especially developed countries such as the United States, which is also the most widely used language in the world). It turns out that one byte represents a letter, and unicode uses 2 bytes (one byte is the same as Ascii, the other byte is 0); 2 In programming languages, the string uses the encoded 0 as the ending character, while unicode characters have 0 encoding (especially each of the English characters has 0), so unicode cannot be used in the C language.

To this end, several variant encodings were redefined based on unicode encoding, utf-8/utf-16, etc. Among them, utf-8 is the most commonly used encoding. It is a variable-length encoding, which stipulates that: English and Ascii codes are compatible or 1 byte encoding. Other national texts are expressed in lengths ranging from 2-3 bytes (because English occupies a lot of encoding space, the rest is not enough, and there must be 3 bytes of text). Web page encoding uses utf-8 in large quantities, and different texts can be displayed in the same web page.
Chapter completed!
Prev Index    Favorite Next