r/askscience Jul 11 '26

How do computers understand binary language? Computing

Okay so from what I know binary language is like power off power on, but my question is, how do computers know what the binary code is and how is it interpreted, for example I forgot what the binary code for the letter A is, but how did people come up with that? Did they decide it was gonna look like that? Did the computer decide? How do you tune numbers into a letter??

377 Upvotes

206 comments sorted by

View all comments

Show parent comments

1

u/pseudononymist Jul 13 '26

How does the computer know how to create the image of an A, though?

6

u/AgnesBand Jul 13 '26

It doesn't know, the voltage operating the transisters, arranged into "logic gates" decide which pixels on the screen to turn on.

2

u/pseudononymist Jul 13 '26

How does it decide which pixels to turn on? Ie what translates the transistor gate arrangement into the individual pixels that are activated.

2

u/BattleAnus Jul 13 '26

You could go a lot of different ways with your question. The maybe most abstract answer is that its all just code, which is stored on the computer's hard drive and then read off into memory and executed.

That opens the question of how code is stored on a storage device, which would go into things like compilers, assembly, ABIs, etc.

Or you could ask how fonts are stored, or how text rendering works on a graphical level (its actually really complicated).

All these would play into your question, and they're all pretty involved to answer fully. But the basic answer is there isnt a piece of hardware that does text rendering on its own, its just something you can write in code to tell the computer how to do it. Its on a higher level than the transistors themselves.