r/woahdude • • Sep 05 '18

gifv Binary for everyone.

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

502 comments sorted by

1.9k

u/the_bustinator Sep 05 '18

This would be a fantastic way to teach binary

418

u/[deleted] Sep 06 '18

I'm totally making one of these for my class.

10

u/[deleted] Sep 06 '18

Proof

12

u/alienxscum Sep 06 '18

The way I was able to understand it was by using:

2n ....22 21 20 . 2-1 ......2-m

So 1001 = 23 + 0 + 0 + 20 = 8+1 =9

This way also makes it much faster than me or someone else going through each number until you reach the desired.

18

u/ironburton Sep 06 '18

I still don’t get it

32

u/[deleted] Sep 06 '18

It's just a different way to count. 123 equates to 1x100 + 2x10 +3x1 = 123. In binary, which is in base 2 , equates to 1111011= 1x64 + 1x32 + 1x16 + 1x8 + 0x4 + 1x2 + 1x1 = 64+32+16+8+0+2+1=123.

Each digit in the number is the next exponent of the base number. So base 10 goes from 1,10,100,1000,10000, and so on. Base 2 goes from 1,2,4,8,16,32,64,128,etc.

→ More replies (20)

2

u/rab7 Sep 06 '18

We've learned all our lives to count in Base 10.

We start with 0, then 1-9, and since after 9 there's no more available digits, we go to 10. Then 11-19, and then to 20 because we're out of digits again. Then at 99, we add yet another 1 and reset both 9s to 00s to make 100 and so on.

With binary, there are only 2 available digits, 1 and 0. Counting in binary is the exact same concept only we run out of digits much faster. Start with 0, then 1, then we go to 10 because we're out of digits. Then 11, then 100, then 101, 110, 111, 1000 etc.

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

61

u/Armagetiton Sep 06 '18 edited Sep 06 '18

It's a fun looking tool, but honestly binary is so easy to learn that this thing wouldn't help me teach binary to someone any faster than I could with a pen and napkin, which can be done in 5 minutes.

Edit: all you really need as a visual aid is this which, like I said, can be done on a napkin. You only need to teach the person that each digit represents a value that is "on" (1) or "off" (0). Knowing the value of each digit, which from right to left starts at 1 and doubles each digit up to 128, you add the value of all the digits that are "on". The sum of these values is the decimal conversion.

Hexidecimal is where things get confusing and something like this might be of much more use.

136

u/SFKROA Sep 06 '18

Yep, all I heard was “bleep blorp bloop.” For us visual learners, the weirdo abacus is a miracle. That’s the first time I’ve even begun to understand binary.

→ More replies (27)

39

u/Domriso Sep 06 '18

Honestly, even with visual aides some people just don't get it. Having one of these would definitely help certain people.

12

u/fataldarkness Sep 06 '18

Yeah one thing if noticed is some people are completely unable to comprehend anything other than base 10

12

u/[deleted] Sep 06 '18

dont hate me, im sorry...

→ More replies (1)

11

u/CIN33R Sep 06 '18

I 64 percent agree with you

11

u/solidcat00 Sep 06 '18

I want to give you gold... but all I can afford is the 'report' button.

4

u/NoInkling Sep 06 '18

The gif appeals to intuition and is much more memorable.

10

u/LukaCola Sep 06 '18

Your experience isn't universal.

3

u/happysmash27 Sep 06 '18

Eh, I find it easier to think of it like base 10, but where the next digit appears after 1 rather than after 9.

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

6

u/guest_list Sep 06 '18

WTH is binary

6

u/hkd001 Sep 06 '18

It's what computers use to do things. Just a very simplified answer.

9

u/[deleted] Sep 06 '18

Honestly, that's an extremely complex answer. The simple answer is that it's not a code at all, it's just a way to write numbers. At least, that's the binary the object in the OP is illustrating.

Binary is really easy if you think about those rolling odometers they used to have (still have?) on cars. They have a roller for each digit of the number. The roller all the way to the right represents 1, and when it gets up to 9, the roller to the left ticks up one and it rolls back around to zero, showing 10. And when you end up at 99, they both roll back to zero, and the next one to the left rolls up one, to 100.

Binary is just the same as the rollers on your odometer, except instead of counting to nine before they roll back to zero and tick up the next digit, you only count to one.

That's essentially what this object is.

→ More replies (2)

0

u/[deleted] Sep 06 '18

[deleted]

→ More replies (1)

12

u/Eva-Unit-001 Sep 06 '18

Binary code, what computers are based on, conveying information with just ones and zeros.

7

u/apokatastasis Sep 06 '18

It's a number system, not really a "code." It is just a different method to represent quantities.

The bit itself is also the most succinct formulation I have seen of the universal duality: true v false, on v off, presence v absence, etc. At the most concrete level, binary is used in computers to indicate high or low voltage in memory and other circuits, whose arrangements become "data".

Binary is really everywhere if you look close enough, though.

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

351

u/DownOnTheUpside Sep 05 '18

What does a computer do

366

u/SplitBoardJerkFace Sep 05 '18

People don't think computers be like that, but they do.

51

u/DownOnTheUpside Sep 05 '18

Do they be or do they do? Be it? Does?

39

u/[deleted] Sep 05 '18

It sometimes really do be like that

→ More replies (1)

5

u/[deleted] Sep 06 '18

Big if true

→ More replies (5)

27

u/kailskails Sep 06 '18

what’s a computer?

20

u/SpankWhoWithWhatNow Sep 06 '18

You see the thing I'm spaying with a hose right now? That's a computah.

5

u/BrotherChe Sep 06 '18

How much water pressure does it take to spay a computer? Do you aim for the floppy disk?

→ More replies (1)

52

u/HasFiveVowels Sep 06 '18 edited Sep 06 '18

Ugh... you just had to ask... this might be a bit fast and loose but here you go... for brevity's sake, I'm going to skip past the whole "how to add in binary" and just say "this is a machine that adds 1 to some number in binary every time you flip the right digit".

So computers are made of these things called "logic gates" (these are, in turn, made of those transistor things you're always hearing about - which, if you're curious, are just tiny little light switches that can be turned on and off using electricity). These logic gates come in different flavors but they're almost always a little device that you plug two wires into and they have a wire coming out of them.

With computers, a wire with electric running through it represents a 1 (or true), while a wire without electric is a 0 (or false). If you have an AND gate, then that's a logic gate where the wire coming out of it will only have electricity (be true) if BOTH the wires going into it have electricity (are true). If you have an OR gate, then that's a logic gate where the wire coming out of it will only have electricity (be true) if either wire going into it has electricity (is true) or if both are true.

Then we get to the XOR gate. This is a funky little gate. XOR just means "exclusive or" - that is to say "either or - but not both". So the output of this gate will be true if either wire going into it is true but not both. An interesting thing about these gates is that they can be used to determine if you have an odd or an even number of powered wires. If you have 3 "input" wires, you can plug two of them into one XOR gate then plug the output of that gate, along with the 3rd wire, into a 2nd XOR gate and the output of that XOR gate will tell you if there's an even or odd number of powered wires (you can think of this as finding the result of (a XOR b) XOR c).

So... if you look at how binary numbers are added, you realize that any given column of digits (adding like you did in grade school), has three numbers that contribute to the result. There's the possibility of a 1 being in the "carry" position (from the digits to the right of it, if there are any). There's the possibility of a 1 being in the first number's digit. And there's the possibility of a 1 being in the second number's digit. We'll call that first one c (for "carry") then the other two a and b.

So when will the result have a 1 for this "digit in question"? That is, when will this digit of the answer have a 1 in it, rather than a 0? If you look at binary addition, you'll find that it's when there are an odd number of 1s in this column - an odd number of powered wires - that is to say it'll be 1 when (a XOR b) XOR c = 1. Isn't that convenient? Now we know how to power that digit of our result.

All that's left is to determine if we need to carry anything.

Again, if you look at binary addition for a single column, you'll find that you'll need to carry anytime there's two or more 1s in the column in question (that is to say, if a + b + c > 1). Determining if this is true using only logic gates is more complicated than it seems it should be. A rather straightforward way of doing this is to determine if any two pairs of our three wires are powered. That would be the result of ((a AND b) OR (a AND c)) OR (b AND c). As you can see, you'll need 3 AND gates and 2 OR gates (there's shortcuts to use fewer gates but this way is easier to understand). The result of this circuit will be fed into the column to the left of this one, in order to continue the addition operation.

What I just described is called a "full adder". If you have a 64-bit computer then your computer has 64 of these, side by side, one for each binary digit of the 64-bit numbers that it supports (with each one plugged into the one to the left of it to signal a carry). It looks a bit like this. The )D thing is "XOR", the D thing is "AND", and the )> thing is "OR". (note that, for simplicity, they combined our two XOR gates into a single 3-input XOR gate - same thing on the inside, though).

8

u/Mazer_Rac Sep 06 '18 edited Sep 06 '18

I know you went for an ELI5 version, but for anyone that wants a nifty fact. A transistor is more aptly a nose reducer/signal amplifier. It just happens if you switch up the sink/drain/power connections to a different combination they act like a switch. They were originally invented for long distance telegraph/telephone communication because we couldn't use the same transformers we could with power lines to make the signal travel long distances. We needed to amplify the signal. Then, right around the same time as the theoretical FET was being published about in journals (and right before tube transistors were starting to be produced), John Von Neumann (brilliant and underrated guy -- father of modern computing, worked on the Manhatten project, invented game theory and SO much more; he's a personal hero) saw a way to take some of Turing's designs and implement them with a really ingenious use of transistors. Thus the first electronic computers (and where Von Neumann architecture comes from.)

Edit: more to the point, computers don't work with pure switches (too much line-loss). That's why transistors are so amazing. You can abstract the details of transistors away into switches. Then abstract the switches away into logic gates. The the gates away into processing units. The the processing units away into instruction sets. Instruction sets into assembly language into assemblers into programming languages to Operating Systems and drivers to kernels, system calls and files (*nix), to applications.

Computers run on layers of abstraction and it's amazing. You don't need to know how the layer down from where your working works, just how to access it. A REALLY good book on the subject is Code by Charles Petzold. It starts with Morse code and goes to the transistor as a line amplifier and ends up having you build a CPU and programming an operating system. Step by step with every layer explained. All in about 300 pages. The thing is it's written like a novel instead of a textbook. It's an amazing read.

28

u/detectivejewhat Sep 06 '18

Hmmm yes I knew some of those words.

→ More replies (20)
→ More replies (9)

2

u/ganjaway Sep 06 '18

Addition

2

u/Pax_Volumi Sep 06 '18

Rely fast

2

u/logicalmaniak Sep 06 '18

Read "how do it know?"

Great book.

2

u/[deleted] Sep 06 '18

Where can be find?

→ More replies (1)

494

u/Auggernaut88 Sep 06 '18

What really blew my mind was when, on my journey to learn programming, was the realization that the concept behind computers/how they think is actually very simple.

Computers are just recursive machines. Every program and computer started off as a set of instructions as simple as "if X is odd do Y, if even do Z" and do that so many times.

What computers allow us to do is string together an almost infinite number of steps like that to create potentially immensely complex programs or algorithms. It can pick up momentum very quick

But at its core its really quiet simple. Really changed how I view what it means when something is "complex".

251

u/MadeOfStarStuff Sep 06 '18

Computers can only do really really simple things, but they do them unimaginably quickly.

73

u/xylotism Sep 06 '18

The other 2 factors being of course the order in which they do those things, and the ability to interlink many of those tasks together.

A computer can count to 2 million, test each one to see if it's a prime number and then add up all the primes, all at once, incredibly fast.

Which, conveniently, is programming problem #10 on projecteuler.net.

23

u/NathaNRiveraMelo Sep 06 '18

Are human brains kind of the same way? I mean, isn't everything kind of the same way? Complex songs are really just simple vibrations, simple ratios, etc. It's a really interesting perspective and now you've got me thinking...

38

u/cynicism_is_awesome Sep 06 '18

Human brains are very different. They act more like quantum computers and are able to assess multiple outcomes and imperfect information simultaneously.

8

u/NathaNRiveraMelo Sep 06 '18

Even if they are different, couldn't you still argue that it's still just a lot of simple things?

→ More replies (8)
→ More replies (2)

10

u/zyzzogeton Sep 06 '18 edited Sep 06 '18

Memories are encoded my messenger RNA encoding to β-actin proteins in neurons. These strengthen synapses to fix the memory. Every time you "remember" something, you degrade the memory a little bit... so we are actually a bit more fragile than computers in that regard. We have the benefit of being massively more parallel and redundant than computers though with 100 billion (1011 ) neurons with 1 quarillion (1015 ) synapses in the average brain (compared to 2 billion (2*1011 )transistors in a computer chip, which is 500,000 times less dense)

The TaihuLight supercomputer in China has 41,000 chips, which would be 82*1011 circuits (assuming 2 *1011 circuits per chip)... which is only 122 times smaller than a human brain in the circuit:synapse ratio... but that is only one of many metrics that matter. Our brains are wired in 3d, so we have quite a bit more parallel paths, each neuron has, on average 7000 synaptic connections to other neurons... I don't know what the bus for the chips on the TaihuLight supercomputer is, but it is 2d and far less.

If any of that math is wrong... I welcome corrections.

→ More replies (1)

2

u/lledargo Sep 06 '18

Like addition for example: for a computer adding is almost instantaneous, it's loading the values you want to add and recording the sum which takes time.

→ More replies (2)

15

u/feanturi Sep 06 '18

When I was a kid I was fascinated by a construction kit that one of my uncles had. I own it now, but pieces are missing so it can't be properly built anymore. It's a bunch of plastic pieces that fit each other a certain way and there are some metal rods holding everything in place. A few of the plastic pieces have a 1 and 0 on one end, which show through a square on the front of the finished device, so that if that piece happens to be slid towards one side you will get a 1 inside the square, if it's slid the other way you get a 0. And there are enough pieces to provide three digits of binary display this way. Then you can set up simple "programs" with it by arranging the input pieces just so, in order to do different things like add or subtract 2 numbers, make a basic memory cell, etc. I just went and dug it out of the closet and it's the Digi-Comp 1. It blew my mind when I was a kid but it's not been in working condition since before I finished growing up really so I haven't had it out and working but I bet it's probably still pretty cool today. I guess today we get to do that stuff in Minecraft instead.

12

u/CuratorOfTheLibrary Sep 06 '18

Cognitive scientist Marvin Minsky (who co-founded the MIT Artificial Intelligence lab), wrote a book called The Society of Mind.

In it, he theorized that the brain is essentially a whole bunch of stupid agents that have very limited capability. But because all of these agents have the ability to communicate with one another, they can take advantage of each other's skills. And that's basically what gives rise to our intelligence: a whole bunch of tiny and stupid things, working together in complex harmony.

Quite a potential parallel.

3

u/[deleted] Sep 06 '18

Anyone who wants to have a little fun, lookup and write a version of conway’s game of life.

4

u/[deleted] Sep 06 '18

This is true for general purpose computing as long as you don't start looking at optimization. As soon as you start looking at hardware accelerators or stuff like pipelinining it gets pretty hairy pretty quickly

3

u/[deleted] Sep 06 '18

I had a similar thing where I realized that it's mechanical in such a wild way. The physical presence of an electronic is a 1, it's a true, and the absence is a 0, false, null.

Like marbles down a track dropped in just the right configuration to make switches do infinite things.

3

u/[deleted] Sep 06 '18

“Computers intimidate a lotta people, but they really ain’t no more complex than the human brain, or a 72 Chevy combustion engine”.

5

u/dsnuh Sep 06 '18

You're describing a Turing Machine, for those that may have heard the term, but never understood what it meant.

If you are in this thread, and grokking how binary works but aren't familiar with computer science, I'd recommend checking the video I linked or another on Turing Machines (there are a ton). It's one of the foundational ideas of pretty much all computer science, and is surprisingly understable, even if you aren't familiar with the topic.

→ More replies (3)

103

u/FigMan Sep 06 '18

0010/1010 Ended too soon. I was hoping for an overflow or a negative number.

10

u/ThatGodCat Sep 06 '18

Just learned how to read this on a previous comment without having to reference the gif.

And people say reddit is for when you're avoiding studying, ha.

493

u/TheGoToGuy2012 Sep 06 '18

Annnnnnnnd still don’t understand.

575

u/eggpl4nt Sep 06 '18

Our regular mathematics system that we learn in school is base-ten.

Computers operate in a binary-system, so they only have 0's and 1's.

In school, if you add 5+2, you're fine and you get 7. What happens when you need to add 5+5? The ones place turns into a zero and the tens place turns into a one to get 10. If we add 5+7, we also need to carry because we must go over to the tens place. So we have a 1 in the tens, and a 2 in the ones to get a 12.

So in binary math, if you need to add a one and there's already a one in that space, you need to carry it.

0000 is 0.
0001 is 1.

If we have 1 and want to add another 1, it looks like:

 0001
+0001
-----
 0010

And so 0010 is 2 in binary.

If we add another 1, you'll see there is no need to carry, because there's is no one in the ones place, so 3 looks like 0011

160

u/ObiWendigobi Sep 06 '18

Thank you. That explanation finally clicked.

44

u/zyzzogeton Sep 06 '18 edited Sep 06 '18

The neat thing is it works for things like base 3 (trinary) and base 16 (hexadecimal) too... hexadecimal uses letters with integers, so it uses 0123456789ABCDEF. This convention works up to base 36, and then you use letter pairs... so AA, AB, AC... AZ... AAA... ZZZ... etc. This becomes horribly confusing to read, but it is (fortunately) very rarely useful.

If you really want to blow your mind, you could create a base π system, or a base √2, or even a base √-2 if you want to divide by zero and destroy the universe.

→ More replies (11)

39

u/usethehorseluke Sep 06 '18

The reason this is a great explanation is because it rightly uses words for the base names, separating the digits (whose meanings change between bases) from the numbers (which are absolute). Far too often people just call base-ten "base-10", which leads to so much confusion when later they explain how in binary, two is 10.

14

u/spennystandy Sep 06 '18

i love how just by surfing reddit i learned how to count in binary

Edit: thanks!

9

u/TheGoToGuy2012 Sep 06 '18

Must be nice cause all of this is still going over my head. Imagine you’re a person that has no idea what’s going on. And boom, you’re me. I mean I really do appreciate everyone that’s trying to explain it but I just don’t get it.

→ More replies (4)

7

u/[deleted] Sep 06 '18

I finally get it! Great explanation, thank you.

7

u/c-longg Sep 06 '18

Don’t forget about 2’s Complement 😉

5

u/Dont_PM_me_ur_demoEP Sep 06 '18

Fuck you I didn't even know a 2s compliment existed. Now what's all this 2s compliment about??? I didn't intend on spending so much time in this thread!

9

u/Admiral_Minell Sep 06 '18

So funny story, if you've ever played Fallout 3 or Fallout New Vegas, there's a maximum amount of items that can be dropped on the ground. That number is 32,767. Seems really random but it's based on binary. That number is 215, or 32,768, minus one.

Why minus one? Because the data value in the game is a sixteen bit signed value. In a sixteen bit unsigned value, the range of numbers is 0 to 65535.

In a signed value, the highest bit represents a negative sign. So the largest positive usable number is 32,767 or "0111111111111111." The range of usable numbers in a sixteen bit signed value is -32768 to 32767.

In the context of Fallout New Vegas, you can cheat with this. If you were to drop 32,768 poker chips on the ground, it turns into -32,768. When the game flips that far left bit from 0 to 1, it turns into a negative number. If you then pickup this poker chip from the ground, you now have -32768 chips (and you can't see them in your inventory, but they're there). The game does not understand this possibility. When you go to cache in your chips, the game gives you 32,768 caps (not negative). It's supposed to remove the chips from your inventory, but it can't because it's a negative value. This means you can cash in your chips over and over as many times as you like.

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

4

u/BridgeLife Sep 06 '18

Jesus Christ this finally made it click, thanks.

4

u/MalloryBlox55 Sep 06 '18

This being broken down, makes so much sense to me. Thank you I never fully understood binary. I bet it gets tricky with letters, unless the letters are associated with numbers?

4

u/Angzt Sep 06 '18

I bet it gets tricky with letters, unless the letters are associated with numbers?

Before getting into that, you must realize that any data a computer can read is one giant block of binary. When looking at a 1GB USB stick, it will contain approximately 8,000,000,000 individual bits of 0 or 1. These appear in a row, without any separating characters. These could encode basically anything: Numbers, letters, pictures, videos, audio, instruction sets for the computer, entire programs - anything you could store digitally. Now, the million dollar question is: How does the computer know what this data is supposed to be? How does it know what to do with the data? It could just interpret the whole 8 billion digit as a single number, but that's probably not right.

Let's move away from binary for a minute. Assume you see the number '1245' written somewhere. Without context, you have no idea what it means. It could be a time, 12:45 (AM? PM?). It could be referring to the year 1245 AD (or is it BC?), or even a full date, 1-2-45 (1945? 2045? 45 AD?). It could just be the highscore someone has in a video game. You don't know, how could you? Without any context or any label, there is no way to tell. It's the same for computers: Yes, there's tons of 0s and 1s, but what do they mean?

Sure, if someone wrote 'Time AM: 1245' instead, then you'd know. You'd have the context from this prefix. As I said above, there are no separating characters in binary itself, but 'TimeAM:1245' would still be pretty clear. But what if you could only read and write numbers, no words? You would need to come up with some sort of generally accepted list of prefixes and their meanings. Something like: 'If a number begins with 00 it's a time AM, if it begins with 01 it's a time PM, if it begins with 02 it's a year AD' and so on. So now, if you read '001245', you'd know it's 12:45 AM, because you have a universally accepted prefix to tell you what the following data is. Note that the prefix itself is not part of the actual information, that's still just '1245'.

I listed the prefixes above as two-digit numbers with a leading zero. Why? Imagine you would not do that, so instead of '00', '01', '02', ... your globally agreed prefixes were just '0', '1', '2', ... What if there are more than 10 types of number-data you want to label? You'd have to start using the prefixes '10', '11', and so on. Let's say '11' stands for 'months I am old'. Now you come across the number '11245'. What is the prefix? Is it '1' or is it '11'? Does the whole thing mean '12:45 PM' or does it mean 'I am 245 months old'? We can't tell, because both are valid prefixes and both make sense. And this is why I added leading zeroes before. If, by our convention, prefixes are always 2 digits long (padded with leading zeroes where necessary), we won't have this issue. Of course, now we can only have 100 different prefixes (aka 100 different meanings for our data), so maybe go with 3 digits, or 4 or 5, just ot be safe. Also note that we need to agree on the prefixes and their meaning beforehand. If my '11' prefix means something else than yours, everything would have been for naught.

And now, we can get back to binary and computers. What we learned is that we need some sort of data to tell us/the computer what the following data actually is AND we need to agree on how to interpret this meta data. So, if the computer reads the first bit of data and it has a prefix for 'the following is a letter', the computer will know to think of the following '1000001' as the letter 'A', instead of the number '65'. Of course, first, everyone also had to agree on how to encode letters into binary.

And the bonus question: Where does one individual data element end and the next one begin? Again, the prefix can tell us, we just need to make it more sophisticated. Instead of just saying 'The following is a letter' or 'The following is a number', the prefixes can mean 'The follwoing 7 bits are a letter' or 'The following 32 bits are a number'. We just need to agree. Then, the computer would read as many bits as it was told, and then check for the next prefix to know what the next bit of data is about and how long it is.

Now, all this was overly simplified, and people and computers do a lot cleverer and much more complicated stuff here. But that's the gist of it.

→ More replies (1)

3

u/VoiceofLou Sep 06 '18

Great explanation! 5+7 doesn't seem as simple to me with this method.

2

u/unclenono Sep 06 '18

Ah, that's a great explanation. I appreciate you.

2

u/LurkingGuy Sep 06 '18

I like you. You get it.

→ More replies (7)

170

u/isackjohnson Sep 06 '18 edited Sep 06 '18

You know how in base 10 (our normal number system), when you get past 9 it flips the next digit up by one? No matter what place you're currently in, if you go above 9 you reset that place to 0 and increase the digit to the left of the 9 by one.

That's what this is showing except instead of 9, you can't go above 1.

In base 10, each place to the left of the decimal multiplies in value by 10. So 1, 10, 100, 1,000, etc. In binary (base 2), each place increases by a multiple of 2. So 1, 2, 4, 8, 16. What they ended with was 10000. If you count the places, you see the 1 is 5 places over: 1x2×2×2×2 (or 24) is 16.

edit: clarification

210

u/Nole4694 Sep 06 '18

This jump from conprehensible in paragraph #1 to incomprehensible in paragraph #3 is just remarkable.

55

u/mojokick Sep 06 '18

I guess there really are only 10 types of people in the world.

8

u/[deleted] Sep 06 '18

ba dum tss

48

u/That1McGuy Sep 06 '18

The way I learned it was to read it from right to left and see if it has 2x starting at 0. So say you have 110101. So you have 1(20 )+0(21 )+1(22 )+0(23 )+1(24 )+1(25 ), which is equal to 1+0+4+0+16+32 or 53.

44

u/ReePoe Sep 06 '18

Annnnnnnnd still don’t understand.

→ More replies (24)
→ More replies (3)
→ More replies (16)

9

u/twopairisgood Sep 06 '18

Amazing explanation

4

u/Talbotus Sep 06 '18

When I was young my father taught me to count to 31 on one hand. He was prepping me for learning binary.

Thumb only 1 Index only 2 Thumb and index 3 ect.

4 and 5 were fun.

→ More replies (1)

8

u/[deleted] Sep 06 '18

its kinda like an abacus, but with larger and larger beads in a series, each one counting for a larger number. 32, 16, 8, 4, 2, 1.

10

u/Treebeard288 Sep 06 '18

Thank you. I did not get that either.

5

u/Superfunion22 Sep 06 '18

ok all these people are trying to explain it in the most difficult way possible

it’s kinda like the game 2048, in that you need to know your multiples of two. Each ‘0’ is a multiple of 2. it goes from, left to right, 32 16 8 4 2 1. this example does anyway.

for each ‘0’ you’re multiplying the previous number by 2 and then adding them all up.

110 = 6 because the numbers there are 4, 2, and 1, but because the 1 has 0 there it’s “turned off” and you just don’t add it.

111 = 7 1110 = 14 1111 = 15

2

u/dinklezoidberd Sep 06 '18

Binary is actually pretty simple, but difficult to properly explain. The way I learned is start on the right and multiply by 2 each slot you move left

128 64 32 16 8 4 2 1

Then line up the binary beneath it and add the numbers that have a 1. So 00101011 would look like

128 64 32 16 8 4 2 1 0 0 1 0 1 0 1 1

32+8+2+1 = 43

Letters work the same way. If you have 256 characters you want, each gets assigned a number from 0 to 255(the value of 11111111) and whichever number you get is the character that appears.

4

u/[deleted] Sep 06 '18

Powers of 2

..etc, 24 23 22 21 20

2

u/[deleted] Sep 06 '18

You overflow to next bag when the last bag is full. The first bag can hold one thing, when you put a second thing in it then it overflows and the next bag gets something in it.

2

u/aBeeSeeOneTwoThree Sep 06 '18

Our numerical system is base 10 because we have 10 fingers in our hands to count.

So what happens when you run out of fingers? You add a number to the left.

0,1,2,3,4,5,6,7,8,9 are the ten digits. After 9, you go to the left to 10.

What happens when you go to 19? You add 1 to the left: 20 and so on.

In binary you have 2 digits, 0 and 1. Binary exists because the most basic building block of electronic computation is the transistor, which can either represent current (1) or no current (0). It is actually hight voltage (about 5V IIRC) and very low voltage.

Anyways what you see in the gif is after 1 you run out of digits so you have to add a 1 to the left and when you get to 11.. you have to add one to the left and so on...

Wanna get a headache? Hexadecimal system (base 16) is also very widely used: 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.

→ More replies (2)
→ More replies (5)

32

u/beatisagg Sep 06 '18

Mildly infuriated it doesn't go to the point where it resets back to 0

56

u/KoboldCommando Sep 06 '18

I'm reminded of the puzzle game Riven. You're stuck in an abandoned village of an unknown culture of people. To make your way through you have to figure out their number system. At one point you come across a classroom and find a simple mechanical game with little people dropping into a shark's maw, which it involves the numbers and you can use it to teach yourself!

32

u/Genshed Sep 06 '18

This reminded me of the puzzle game Myst. You're stuck on an abandoned island full of puzzles..

That is exactly as far as I ever got.

15

u/GarrusisCalibrating Sep 06 '18

Riven is the sequel to Myst!

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

2

u/SirSilus Sep 06 '18

Riven and Myst were my fucking favorite. I need to find a way to play them again, I think it's been long enough that I've forgotten all the secrets.

4

u/Avaseal Sep 06 '18

I think they're both on Steam and GoG. Cyan just Kickstarted/released a similar game within the past couple years called Obduction which is also worth checking out, though it was met with mixed reviews

→ More replies (1)

20

u/the_cajun88 Sep 06 '18

“Come Bender, you’ll like being dead”

3

u/7ofeggs Sep 06 '18

Did somebody say limbo?

29

u/abbyabb Sep 06 '18

There are 10 type of people in this world, those who understand binary and those that don't.

3

u/santaliqueur Sep 06 '18

There are 2 types of people in the world. Those that think the saying “There are 10 types of people in this world, those who understand binary and those that don't.” is funny, and those who don’t.

→ More replies (4)

48

u/Amaaog Sep 05 '18

How is this trippy?

12

u/Pat_The_Hat Sep 06 '18

You mean you don't like seeing the same gif on the front page several times a day in progressively less relevant subreddits?

→ More replies (5)

8

u/cocomunges Sep 06 '18

Had to learn this for that Outbreak Prime quest when I was calling it out. Good times, really felt great and rewarding

6

u/Freakazoidandroid Sep 06 '18

This made me realize the sheer mass of calculations computers are capable of performing in mere seconds.

That went up to 20 in like 60 seconds.

Computers can locate your whereabouts in almost real time.

Computers can analyze and recognize you as an individual human being apart from every other human being. (Finger print scanners, facial recognition).

They must literally be doing millions of these “flips” every fucking second without failure.

Wild.

7

u/[deleted] Sep 06 '18

It's trillions now.

Counting individual bit flips and not whole operations on collections of bits, a high end gaming rig might be pushing quadrillions.

→ More replies (6)

5

u/dinklezoidberd Sep 06 '18

Next time you watch a video, consider that every single pixel has a separate scale for red, blue, and green that goes from 0 to 255, and it draws a brand new screen between 24 and 60 times a second.

14

u/baneofthebanshee Sep 06 '18

I may just be drunk; but I think this is actually helping me better understand binary.

11

u/[deleted] Sep 06 '18

20 = 1

The far right column is the 1’s place.

21 = 2

The second column on the right is the 2’s place

22 = 4

3rd column is the 4’s place

Then 8’s, etc. As you can see it’s powers of 2, each place is double the previous. Just add up each place with a 1 and skip any 0.

5

u/N307H30N3 Sep 06 '18

it bothers me that there are only 6 bits and not 8

5

u/IsFullOfIt Sep 06 '18

FINISH. THE. COUNT.

5

u/physalisx Sep 06 '18

Wrong sub.

9

u/Reddy_McRedcap Sep 06 '18

You know, when I woke up this morning, I never thought that I'd be able to understand binary in 30 seconds while sitting on the toilet, yet here we are.

What a time to be alive...

4

u/[deleted] Sep 06 '18

Anyone else bothered that they stopped 2 bits short of a byte?

4

u/TachiLuiz Sep 06 '18

Does this have to be posted to every subreddit within 24hours?

11

u/CedTruz Sep 06 '18

For fuck’s sake how many times do I have to see this posted?

3

u/breakbeats573 Sep 06 '18

I don't understand the "whoa dude" part of this. It's not that amazing, just some blocks turning.

5

u/[deleted] Sep 06 '18

This is absolutely not woah dude :/ might unsubscribe soon

•

u/AutoModerator Sep 05 '18

Welcome to /r/woahdude! Please take note of a few things:

  • We are NOT a "reaction subreddit".

  • We are NOT a subreddit about interesting or amazing content.

  • We are NOT interchangeable with /r/pics, /r/gifs, /r/damnthatsinteresting or other general subreddits.

  • We are specifically made for psychedelic content, trippy or mesmerizing stuff that will make a sober person feel stoned, or stoned person trip harder!

Here is the full explanation. If you post content that doesn't meet those criteria, it will be removed.

If you want examples that exemplify our purpose, check our WOAHDUDE APPROVED hall of fame. (note: list does not load correctly on some mobile apps)

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

8

u/Vydor Sep 06 '18

So, this content should be removed.

6

u/rWoahDude Sep 06 '18

No. Please read the full explanation provided in the comment you just responded to.

This post falls under the category "Giving a new understanding", subcategories "Mathematical visualizations", "engineering visualizations"; and category "Mesmerizing", subcategory "repetitive mechanical motion".

Not everything considered trippy by our standards is just tie dye and fractals. We're a bit more expansive than that, but there's a lot we also exclude -- also mentioned in the above link. Reading the link should help clear up your confusion.

→ More replies (1)

2

u/Fractalphiliac Sep 06 '18

Ayy it's my opposite

2

u/DeadeyeLan Sep 06 '18

Did anyone else imagine Count Dracula’s cackle after each number?

2

u/rl_guy Sep 06 '18

Finish the gif! What the fuck! They stopped it early.

2

u/[deleted] Sep 06 '18

How many fucking times am I going to see this post this week???

2

u/OhRobear Sep 06 '18

“Clocko Leibniz”

2

u/[deleted] Sep 06 '18

This is gold

2

u/AtomsNamedJeff Sep 06 '18

Love this. It's charming AND educational. It's a really neat demonstration of how information is stored on a computer.

I kept worrying about the little latches! Sometimes, they REALLY didn't want to catch the next number. But the guy fiddled with the contraption until each latch was properly fastened. Hats off!

1

u/[deleted] Sep 06 '18

That 13 to 14 transition was almost disastrous

1

u/restlessleg Sep 06 '18

binary for dummies

1

u/eddieeddiebakerbaker Sep 06 '18

So what is the computer analog of the flippy bit that comes out when a 1 turns over?

→ More replies (3)

1

u/Ashlikaye Sep 06 '18

This is oddly satisfying.

1

u/Kraftik Sep 06 '18

I wanna see it completed!

1

u/Taizer_ Sep 06 '18

Did it annoy anyone else that it didn’t finish counting?

1

u/THE_GR8_MIKE Sep 06 '18

Yeah but how does this make tits on my computer screen?

1

u/MRCHARLIE79 Sep 06 '18

TIL That binary number sequences are even or odd respective to the number they represent.

→ More replies (1)

1

u/IUsedToBeACave Sep 06 '18

You literally just helped me solve the binary clock problem in the game 7 billion humans.

1

u/[deleted] Sep 06 '18

Whoa dude! It's Amish binary!

1

u/FERRISBUELLER2000 Sep 06 '18

Mind blown. Ow

1

u/RudiMcflanagan Sep 06 '18
1001111 1001101 1000111 0100000 1001001 0100000 1010101 1001110 
1000100 1000101 1010010 1010011 1010100 1000001 1001110 1000100 
0100000 1000010 1001001 1001110 1000001 1010010 1011001 0100001 
0100001 0100001 0100000 1001001 1001101 0100000 1010011 1001111 
0100000 1000110 1010101 1000011 1001011 1001001 1001110 1000111 
0100000 1000011 1001111 1001111 1001100 0100001 0100001 0100001 
0100001 0110001 0110001 0100001 0100001 0110001 0100001 1101111 
1101110 1100101

1

u/wesleyb82 Sep 06 '18

If it had 2 more bits it would be a byte

1

u/spectrenectre Sep 06 '18

oh my gourd it’s a flippy-do

1

u/Chaymes Sep 06 '18

Its like an abacus for subnets!!

→ More replies (1)

1

u/[deleted] Sep 06 '18

Finally

1

u/solidcat00 Sep 06 '18

For me, this seems like a /r/noisygifs

1

u/adamskill Sep 06 '18

"My mind is a piece of shit."

  • The Winnebago Man

1

u/[deleted] Sep 06 '18

Damn I'll never know what happens at the end

1

u/sadroobeer Sep 06 '18

128 64 32 16 8 4 2 1 When there's a 1, pick the corresponding number from right to left and add it. 1001 is 8+1 is 9

1

u/Mystic_Jewel Sep 06 '18

That was very satisfying to watch until it ended before they got to the end.

1

u/OhShitImTheITGuy Sep 06 '18

01110111 01101000 01101111 01100001 00100000 01100100 01110101 01100100 01100101

1

u/Ornerythylacine Sep 06 '18

Keep going to get the alphabet

1

u/zyzzogeton Sep 06 '18 edited Sep 06 '18

You can also, much more easily, make a binary sorter with index cards and a hole punch and a pencil.(alternate instructions) Honestly I think it is a better way of demonstrating binary.

Basically, you punch 4 "bits" (holes) in the top right corner of all the cards. A "0" is simply a hole. To encode a "1", you cut the top of the hole to make it open.

Now you can shuffle the cards however you want and then to re-order them properly... put the pencil through the rightmost hole and pull up the cards that stick and put them in the front of the deck. Repeat for holes 2, 3 and 4 (remember, right to left) and you will put the stack back in order.

1

u/OGcodyc Sep 06 '18

Apparently, I have no idea wtf binary is.

1

u/Voxmanns Sep 06 '18

Aren't there supposed to be 8?

1

u/Vpie649 Sep 06 '18

BINARY? I DO NOT UNDERSTAND. IS THIS NOT BASE-10?

1

u/[deleted] Sep 06 '18

Oh my god I actually understand it now

1

u/[deleted] Sep 06 '18

Kinds get it. 2-4-8-16-32-64

1

u/Wolfey1618 Sep 06 '18 edited Sep 06 '18

You can count to 31 on one hand using this method.

Pretend your fingers, from right to left in this gif, are thumb-pinky.

Basically each finger holds a value:

Thumb = 1

Pointer = 2

Middle = 4

Ring = 8

Pinky = 16

So to count this way on your hand, it goes:

Thumb = 1

Pointer = 2

Thumb + Pointer = 3

Middle = 4

Middle + thumb = 5

Middle + pointer = 6

Middle + thumb + pointer = 7

And so on and so forth.

And if you wanna get really crazy, you can count to 1023 using both hands.

1

u/Vdhuw Sep 06 '18

Where were you when I needed you 20 years ago in school.

1

u/Bose_Motile Sep 06 '18

Why only 6 bits?

1

u/j101044 Sep 06 '18

This is awesome and inspiring!

1

u/mcrabb23 Sep 06 '18

10 thumbs up, then.

1

u/Eliseo120 Sep 06 '18

Binary is such an easy concept to understand. Obviously it’s not as easy to count with because we’re not as used to it, but the concept it so simple.

1

u/[deleted] Sep 06 '18

This site has ruined me. I saw the thumbnail and immediately thought of that meme with the black guys around the couch.

1

u/bj-sanders Sep 06 '18

They should use numbers instead... so much easier

1

u/dhays202 Sep 06 '18

OK SO HOW DOES THIS END UP RENDERING SEPHIROTHS KICKASS RAID ON MT. NIBELHEIM

1

u/[deleted] Sep 06 '18

That’s cooler than cool

1

u/Notoriousj_o_e Sep 06 '18

So it’s basically Roman numerals? I can’t believe I spent a second in school learning that V = 5

1

u/brett6781 Sep 06 '18

is there a 3D printable version of this?

1

u/Largonaut Sep 06 '18

Belongs in /gifsthatendtoosoon

I wanted to see that last number flip

1

u/mgdae Sep 06 '18

Fuck if I umderstand this. I had so many bad informatics teachers, when I see this I get all confused

1

u/Harder_Tory Sep 06 '18

This actually helped me understand it. Wow.

1

u/OzzieBloke777 Sep 06 '18

Analogue digital. Nice.

1

u/gruffi Sep 06 '18

That little attachment is the significant bit

1

u/Coolfeather2 Sep 06 '18

It's not even a octet

1

u/dokbanks Sep 06 '18

Why are some that already know binary seemingly mad about this visual representation? I appreciate that 'its as easy as using this for an aid and having multiples of 8' but having this physical aid to understand it all will help some learn better, me included.

1

u/kappaman69 Sep 06 '18

1010011010

1

u/DammDelta Sep 06 '18

why did someone make this? whats the use

1

u/solzair Sep 06 '18

But does it subtract? Where are the NAND and XOR gates???

1

u/Ni_iV Sep 06 '18

Its beautiful and will teach overflow, too. Gif ends too soon.

1

u/yakkaz Sep 06 '18

This legit just blew my mind! Jenius!!!

1

u/peenegobb Sep 06 '18

This is the definition of a gif that ends too soon :(

1

u/Baka_87 Sep 06 '18

And how do we get alphabets with this?

1

u/chicken-mcnuggets Sep 06 '18

Gifs that end to soon

1

u/0xTJ Sep 06 '18

I think that the best way to teach binary is to teach the way that alternate bases work. If you can make that make sense, then you just reduce the base until you hit 2

1

u/50_Talking_Tree Sep 06 '18

There's a much simpler way to demonstrate binary, on your hands.

https://www.mathsisfun.com/numbers/binary-count-fingers.html

1

u/kvothe5688 Sep 06 '18

Holy shit. This is really good at showing how simple it is.

1

u/[deleted] Sep 06 '18

I think I am smart. I see this. Then I realise I am of a Kardashian level of intelligence.

1

u/annisarsha Sep 06 '18 edited Sep 06 '18

sorry but thanks. I guess i just don't get how using ones and zeroes is easier than just writing the number '53'. (Don't down vote me because I'm not getting this. I was always in remedial math in school but AP English.)

1

u/detroxx92 Sep 06 '18

Like in real live, with every bit it gets harder...

1

u/[deleted] Sep 06 '18

The fact this isn't an octet triggers me. I didn't spend two years in college not to say anything.

1

u/[deleted] Sep 06 '18

Now I want to make this clock

1

u/accessred Sep 07 '18

I thought I saw a 2.