salamm
Known
- Messages
- 200
- Reaction score
- 525
- Points
- 93
I have always wanted to talk to my computer. I was curious about what language it could speak. Does a computer have a specific language? Yes.
All computers and digital devices process information using a language called binary. They communicate with each other through this language. Every action taken on a computer is sent to its processing center in binary, which the computer then processes and displays for us.
If the main language of computers is binary, what about programming languages like C++, C#, Java, HTML, and others? These languages are actually interpreted languages. The code is converted into binary by a program called run-time. This means the computer does not process the code directly; it must first be changed into base-2 numbers.
Since programming with just 0s and 1s is difficult, these programming languages were created to allow programmers to write code logically, which is then converted to binary by run-time.
Now, what does this binary language look like?
In our daily lives, we usually use base 10 numbers. For example, when we add 1 to 9, we get 10, which has two digits. However, in base 2, it works differently.
In base 2, if we add 1 to 1, we don’t get 2 because 2 is not defined for computers. Instead, it becomes 0010. This number represents 2, not 10. To help the computer understand, we use an extra digit. So, the binary number 0010 means 2 to the computer. The number 3 in base 2 is written as 0011. The first 1 from the right has a value of 1, and the second 1 has a value of 2, which adds up to 3. The number 4 in base 2 is written as 0100. Since 3 in base 2 is 0011, we need to add another number to reach 4, but we can't place a 2 in any digit. Therefore, we fill the other digits with 0 and place a 1 in the next position, resulting in 0100.
The value doubles from right to left. For example, it goes 1, 2, 4, 8, 16, 32, and so on.
I apologize if I can't explain it clearly, but it's not necessary to learn it all. i'm writing it out of curiosity. Each binary number we give to a computer has a specific meaning. Some letters in binary are represented like this:
Alphabet | Binary equivalent | Alphabet | Binary equivalent | Alphabet | Binary equivalent |
---|---|---|---|---|---|
A | 01000001 | J | 01001010 | S | 01010011 |
B | 01000010 | K | 01001011 | T | 01010100 |
C | 01000011 | L | 01001100 | U | 01010101 |
D | 01000100 | M | 01001101 | V | 01010110 |
E | 01000101 | N | 01001110 | W | 01010111 |
F | 01000110 | O | 01001111 | X | 01011000 |
G | 01000111 | P | 01010000 | Y | 01011001 |
H | 01001000 | Q | 01010001 | Z | 01011010 |
I | 01001001 | R | 01010010 |
According to this table, 01001000 01000101 01001100 01001100 01001111 means "hello." Computers only understand 0s and 1s and return results in a way we want.
You can try this page if you want to convert words to binary or vice versa.
Even now, as I write and upload this text to the forum, it consists of many 0s and 1s. When I click the post button, all the text you are reading is sent to the Windice server in packets of 0s and 1s. Windice's server is a computer that receives these packets and converts them back into text. (All servers in the world are computers.)
Another point to mention is that besides binary numbers, there are also hexadecimal numbers (hexa) or base 16 numbers. In this system, you can fit numbers from 0 to 15 in one digit.
After the number 9, the letters A, B, C, D, E, and F represent the values 10, 11, 12, 13, 14, and 15. The number 16 in base 16 is shown as 0010. I won’t go into too much detail to avoid confusion and boredom.
But why is base 16 needed when we have base 2?
Well, base 16 is very useful for computers today. Binary numbers can get very long, which increases the chance of errors during transmission and slows down processing. It also takes up more data space.
As you saw earlier, the word "hello" turns into a long string of 0s and 1s. But in base 16, it appears as 48656c6c6f. These numbers and codes apply not just to text but also to other content like images and videos. Images on a computer are made up of tiny parts called pixels. Imagine a puzzle where each piece is a different color; putting them together creates a complete picture. The computer stores all these pixels using binary and hexadecimal codes.
The world of computers and binary and hexadecimal languages is quite complex, and this is just a small part of it. I know it can be a bit dull, but I found it interesting and wanted to share it with you.
Stay happy and successful!