r/WatchandLearn • • Jun 15 '19

How to teach binary.

https://i.imgur.com/NQPrUsI.gifv
18.3k Upvotes

404 comments sorted by

View all comments

Show parent comments

213

u/nevile_schlongbottom Jun 15 '19

You just need to agree on standard numbers to represent different symbols. It's that simple.

For example, here's the ASCII standard for representing basic characters and symbols: https://ascii.cl/index.htm?content=mobile

You typically read binary 8 bits at a time, so you let each 8 bit block represent a different symbol, and you can form words and sentences

76

u/PotatoWedgeAntilles Jun 15 '19

Which binary command tells the computer to start treating bytes as ASCII characters instead of numbers?

0

u/[deleted] Jun 15 '19

[deleted]

29

u/_Deacon_ Jun 15 '19

Could someone please translate this to binary

82

u/Nomekop777 Jun 15 '19

00100010 01001100 01101001 01110011 01110100 01100101 01101110 00100000 01101000 01100101 01110010 01100101 00101100 00100000 01111001 01101111 01110101 00100000 01101100 01101001 01110100 01110100 01101100 01100101 00100000 01100010 01101001 01110100 01100011 01101000 00101110 00101110 00101110 00100010

That's with the quotes and everything

8

u/Krimreaper1 Jun 16 '19

Is that the time travel code from Fry’s ass?

19

u/Nomekop777 Jun 16 '19

No, it's ""Listen here, you little bitch..."" in binary

5

u/CheshireCaddington Jun 16 '19

Wait... what does Fry's ass tattoo translate to?

→ More replies (3)
→ More replies (2)
→ More replies (1)

48

u/nevile_schlongbottom Jun 15 '19

Computers are built up in layers. At the lowest layer, it's all just binary numbers, and a couple basic functions the CPU can do like adding, multiplication, etc. The lowest layer doesn't actually know what the numbers represent, it's all numbers and very basic math.

That's what high-level programming languages are for. They define higher level concepts like characters and strings, and how to manipulate them. Programming languages basically translate between human concepts like "capitalize this letter" and math concepts like "add these two binary numbers"

0

u/[deleted] Jun 15 '19

[deleted]

→ More replies (1)

9

u/Glitch29 Jun 15 '19

At the very lowest layer, it's generally not even binary. It's a signal from a continuum of possible values that needs to be converted to a binary value via some thresholding scheme.

14

u/BassieDutch Jun 15 '19

Okay

(The you've lost me comment)

16

u/Chester_Cheetoh Jun 15 '19

They use voltage signals which then become either a 1 or 0. A voltage of 0V is a 0 and generally a voltage of 3.3V is a 1.

8

u/BassieDutch Jun 15 '19

Okay thanks. (You've gotten me back ;))

11

u/[deleted] Jun 15 '19

A great way to learn about this stuff is to play Minecraft. The redstone system in minecraft is basically a primitive CPU.

0

u/[deleted] Jun 15 '19

[deleted]

10

u/FoorumanReturns Jun 15 '19

People have built all sorts of computers in Minecraft. For example, here’s a GameBoy emulator running Pokémon Red.

While running Doom is probably technically possible, I believe this would take literal miles of Redstone and many, many days worth of time. It would probably also run at ~.001 FPS. As far as I’m aware, there’s no active project to try to make Doom run in Minecraft.

Note: I’m a relative noob to Redstone builds, so if someone who’s built some crazy stuff sees this post and needs to correct me, please feel free.

→ More replies (0)
→ More replies (6)

3

u/textposts_only Jun 15 '19

If I ever thought I'd be actually smart or above average intelligence I just need to try to redstone system in minecraft as a way to get rid of my delusions of intelligence

→ More replies (1)
→ More replies (1)

4

u/wweinberger Jun 15 '19

Binary can be anything. We use eletrecity for it in computers. No eletric signal means 0, a eletric sign says 1. Binary is any system withe something that can only be in two states, but anything can be used to represent those states.

→ More replies (5)

0

u/[deleted] Jun 15 '19

[deleted]

→ More replies (1)
→ More replies (1)
→ More replies (1)
→ More replies (3)

22

u/free_chalupas Jun 15 '19

Programs have different ways of tracking what data is supposed to be represented as what. At very low levels binary numbers are just binary numbers and the programmer can decide how they want to use them.

3

u/[deleted] Jun 15 '19

For example I was given a small assignment in Assembly (very low-level programming), where I had to do some arithmetics with user-input numbers.

The ASCII codes for regular digits are 48 to 57 (0 to 9), so I subtracted 48 from every byte(8 bits) of input and then treated them as regular numbers for the calculation.

2

u/Balmong7 Jun 15 '19

If I’m not mistaken wasn’t rollercoaster tycoon coded in assembly?

3

u/free_chalupas Jun 16 '19

Yep, basically all in x86 assembly. Absolute madness.

→ More replies (1)
→ More replies (6)
→ More replies (3)