×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules Donate
34

Binary explained by a wooden counter.

submitted by Dingo to Computers 7 monthsNov 17, 2024 10:21:05 ago (+34/-0)     (files.catbox.moe)

https://files.catbox.moe/phpvqb.mp4

This is how you represent numbers as a series of light switches. The number of "bits" is how many digits you see on the counter. For example, old keyboards used to have a ribbon with 8 wires representing an 8-bit number, or (alternatively) a specific combination of the 8 different "switches", can actually represent one of 256 different and unique "keys" pressed on the keyboard. These unique "keys" would represent 0, 1, ... !, @, #, ... a, b, c ... A, B, C ... INS, RETURN, ... etc.


54 comments block


[ - ] BulletStopper 6 points 7 monthsNov 17, 2024 11:03:12 ago (+6/-0)*

Clean up the design and turn it into a kids toy, like the shaped blocks and holes, etc.

Like panning for gold.

Most kids will just like flipping the locks over until they get bored with it.

But there's always going to be a few that will be playing with it, and something will suddenly click, and they'll "get it".

Or the memory of playing with it suddenly comes back during a class on binary, and they'll think, "Wait a minute. I KNOW this!" and then they'll get it.

The seeds planted earliest grow the deepest.

(I had given my oldest son an old keyboard to bang on as a toddler when he was sitting next to me while I was working at the computer. Later he took keyboarding in school. Then a tour in computer commo in the army. Now he makes a very good living, 6 figures, in IT.)

The Sumerians used base 60. Which is why so much of our world is STILL based on it. (Although it actually predates even the Sumerians.)

https://en.wikipedia.org/wiki/Sexagesimal

https://worldhistoryedu.com/the-sumerian-mathematical-system-and-its-significance/

[ - ] JudyStroyer 4 points 7 monthsNov 17, 2024 11:29:00 ago (+4/-0)

I agree with the words in which you have typed.

[ - ] BulletStopper 6 points 7 monthsNov 17, 2024 11:42:37 ago (+6/-0)

Duly noted in the log. Your social credit score has been updated accordingly.

[ - ] bonghits4jeebus 3 points 7 monthsNov 17, 2024 13:45:17 ago (+3/-0)

I mean this is what I do with a keyboard (as on a piano). Music is math. IDK how important binary is, but the math in music is a lot harder than counting in binary.

[ - ] PotatoWhisperer2 0 points 7 monthsNov 17, 2024 16:49:04 ago (+0/-0)

IDK how important binary is

It underlies all computing and nearly all electronics(there are edge cases).

[ - ] i_scream_trucks 0 points 7 monthsNov 17, 2024 17:47:11 ago (+0/-0)

ive got a binary wristwatch somewhere i bought like... 20 years ago.

it was a pain in the ass.

[ - ] uvulectomy 5 points 7 monthsNov 17, 2024 17:51:01 ago (+5/-0)

Maybe you should try wearing it on your wrist instead.

[ - ] Smedleys_Butler 1 point 6 monthsNov 17, 2024 19:41:11 ago (+1/-0)

Jolly good

[ - ] Dingo [op] 0 points 6 monthsNov 17, 2024 20:28:59 ago (+0/-0)

He just walked into that one 🤣. I think you might have killed him though.

[ - ] bonghits4jeebus 0 points 6 monthsNov 17, 2024 20:18:22 ago (+0/-0)

I guess it depends on how old the kid. Counting in binary isn't even useful for computer programming at a beginner level. It underlies, but you can get pretty far pretending the computer does its math in decimal.

[ - ] PotatoWhisperer2 0 points 6 monthsNov 18, 2024 04:48:13 ago (+0/-0)

Counting in binary isn't even useful for computer programming at a beginner level

Fuck. What?

It's the very basic shit you teach the fucking unending retards of shitskins invading our learning facilities.

Shit man, if you aren't counting in binary, trinary, hex, dec, fucking whatever, at the start of it all...

Fuck it. Do whatever. Faggot.

[ - ] bonghits4jeebus -1 points 6 monthsNov 18, 2024 12:29:41 ago (+0/-1)*

The basic shit when I learned was like

10 PRINT "HELLO"
20 GOTO 10

No binary.

Programming a computer is communicating with a computer -- not building one. As long as you and it speak the same language, how the computer implements high level code doesn't matter.

You can come at programming from the angle of simply being a more advanced user -- say learning to script a game / macro a task. And you can come at it from the angle of being a more advanced builder of computers (say customizing a Linux build for your frankenstein hardware), in which case binary is in your face much more immediately.

I dunno why I end up playing devil's advocate here. I came at programming as a user because I was like 5 years old. Binary was a few years in there for me.

[ - ] lolxd 0 points 6 monthsNov 18, 2024 13:23:45 ago (+0/-0)

Binary Logic, and Enumeration is the bedrock for all software.

To retards that need and IDE and stackoverflow to solve problems. Sure, Binary is archaic and useless. To the kind of people that would literally make a game like Rollercoaster Tycoon as a side project. Binary math is literally bread and butter. The people in software making 10s of millions a year do this, the ones making under 50k aren't.

[ - ] bonghits4jeebus 0 points 6 monthsNov 18, 2024 16:36:10 ago (+0/-0)

I didn't say it was archaic. Nor is it that hard to count in binary.

Beginner level computer programming doesn't start with instruction code. It's more like math. Which is typically done in decimal, and there's nothing wrong with that. Boolean logic, which you do get to quickly, is related. But still not the actual use of binary arithmetic.

[ - ] lolxd 0 points 6 monthsNov 19, 2024 00:48:49 ago (+0/-0)

Beginner level programing should start with a basic understanding of the most rudimentary and lowest level of software logic. Sending a kid off to C++ class without even just a basic grasp of how a computer actually works before it's abstracted 8 layers is an absolutely retarded way to teach. You don't need a mastery of Binary, but you should have enough knowledge to at least respect it.

[ - ] bonghits4jeebus 0 points 6 monthsNov 19, 2024 11:03:57 ago (+0/-0)*

I don't even want to argue about binary any more because I was just playing devils advocate. Kids don't start on C++ any more. Which is good. C++ (specifically all the Bjorne Stroustrop plusplus stuff) sucks. as a programming language. If you wanna argue against Logo, that's what I had to learn on. And Basic and assembly. Most C compilers cost money at that time. Even the free assembler for x86 was limited shareware. (I owe that guy a donation BTW. I wonder where he is.)

I don't see that as a good thing. Later students were more pure starting from math and MATLAB doing science work moving on to programmer work. Some of them became great programmers while NOT learning at 5 years old. They learned it by the book.

[ - ] Puller_of_Noses 5 points 7 monthsNov 17, 2024 12:47:52 ago (+5/-0)

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

[ - ] Dingo [op] 2 points 7 monthsNov 17, 2024 13:51:23 ago (+2/-0)

Agreed.

[ - ] BulletStopper 1 point 7 monthsNov 17, 2024 14:45:37 ago (+1/-0)

There are 10 kinds of people in this world.

Those who are capable of reaching accurate conclusions based on incomplete data

[ - ] PotatoWhisperer2 1 point 7 monthsNov 17, 2024 16:51:30 ago (+1/-0)

Heh, exactly what I was thinking.

The second part here is that there are not all that many people who can do this, outside of trained responses that is. You'll find more of them here of course, as that's what we do here. We notice.

[ - ] BulletStopper 0 points 7 monthsNov 17, 2024 17:16:39 ago (+0/-0)

...and those who aren't. :)

[ - ] bosunmoon 0 points 7 monthsNov 17, 2024 18:14:05 ago (+0/-0)

Seven who are, one who can...

[ - ] Wahaha 3 points 7 monthsNov 17, 2024 12:28:41 ago (+3/-0)

It's easier to get if you know our number system is base10 (meaning ten numeral digits) and binary is base2 (meaning two numeral digits) and that there are an infinite number of these number systems, but we generally only care about base2, base8, base10 and base16.

You keep counting until you run out of numeral digits and then you just add a new digit to the left and reset the one that overflowed back to zero. You go from 9 to 10 or from 1 to 10 or from 8 to 10 or from F to 10.

Another neat feature of number systems is that each numeral digit corresponds to it's base number taken to the exponential of its digit.

Take "1000" for example. The third digit is "1". In base10 that means 1x10³ (10x10x10 is 1000). It's a "1", Base10 and the third digit is a 1. (It starts with the zeroth digit. Think of it as digits you need to add. "1" you need to add zero digits. "10" you needed to add one digit. Etc.)

Now if this was base2 it would be 1x2³ (2x2x2 is 8).
Or if you fully write it: 1x2³ + 0x2² + 0x2¹ + 0x2⁰.

Base8: 1x8³
Base16: 1x16³

[ - ] jfroybees 0 points 7 monthsNov 17, 2024 13:02:17 ago (+0/-0)

What is fortran math?

[ - ] bonghits4jeebus 0 points 7 monthsNov 17, 2024 13:47:08 ago (+0/-0)

What, like where you bound the value of every variable?

[ - ] jfroybees 0 points 7 monthsNov 17, 2024 14:09:54 ago (+0/-0)

Back in the paleolithic era, I took a segment of FORTRAN in school. The professor was amazed at how I took to that like a monkey with a banana. I can only remember that it was sequence prediction to my mind. I left that area of schooling much to my detriment. You seem like you know lots about math is why I asked.

https://www.merriam-webster.com/dictionary/FORTRAN

[ - ] Dingo [op] 0 points 7 monthsNov 17, 2024 14:12:52 ago (+0/-0)

FORTRAN is a linear numerical programming language. It is designed for those to do heavy computing in a "process, add to result, throw away" method (required when RAM is limited). Often FORTRAN is used when your analysis takes days, weeks or months.

[ - ] Dingo [op] 0 points 7 monthsNov 17, 2024 14:17:46 ago (+0/-0)

I like next bring it to base 3.

000 = 0
001 = 1
002 = 2
010 = 3
011 = 4
012 = 5
100 = 6

and so on ... After that, hexadecimal starts to make a lot of sense because you can do "byte sized chunks" in just two digits instead of eight (in binary) or three (in base 10)

[ - ] FacelessOne 0 points 7 monthsNov 17, 2024 14:48:58 ago (+0/-0)

These are cool but Base 12 is keenly better for practical Mathematics.

[ - ] Wahaha 0 points 7 monthsNov 17, 2024 15:01:26 ago (+0/-0)

What makes it better for that?

[ - ] Dingo [op] 0 points 7 monthsNov 17, 2024 16:15:48 ago (+0/-0)

12 inches in a foot.

[ - ] GeorgeBailey 1 point 7 monthsNov 17, 2024 16:06:24 ago (+1/-0)

That's cool, still blows my mind how you go from that to a video game...

[ - ] PotatoWhisperer2 0 points 7 monthsNov 17, 2024 16:56:05 ago (+0/-0)

There are many, many conceptual layers from there to programming to any dumb user using said program. Any good CS program will have you working on each step at least once. Yes, including how electrons act in a confined field or transistor or.. Whatever.

[ - ] dass 1 point 7 monthsNov 17, 2024 15:30:22 ago (+1/-0)

What is the highest number this can count to?
9 999 ??

[ - ] Dingo [op] 0 points 7 monthsNov 17, 2024 15:53:16 ago (+0/-0)

In this example, it is 8-bits and if counted to the very end the value 11111111 (8 ones) = 255. This system goes from the number 0 to 255, meaning there are 256 total unique combinations.

[ - ] dass 1 point 7 monthsNov 17, 2024 18:14:26 ago (+1/-0)

Ah thank you.
Of course, it's 256 bit something something ...

[ - ] deleted 0 points 7 monthsNov 17, 2024 15:58:26 ago (+0/-0)

deleted

[ - ] Zyklonbeekeeper 1 point 7 monthsNov 17, 2024 15:13:33 ago (+1/-0)

In the musical sense binary is a form of "STECATO LEGATO"...there's really nothing complicated about the "binary code"

[ - ] qwop 1 point 7 monthsNov 17, 2024 12:23:16 ago (+1/-0)

01101110 01101001 01100111 01100111 01100101 01110010

[ - ] Dingo [op] 1 point 7 monthsNov 17, 2024 14:04:45 ago (+1/-0)

01000100 01101111 01101110 00100111 01110100 00100000 01111001 01101111 01110101 00100000 01101101 01100101 01100001 01101110 00100000 01101110 01101001 01100111 01100111 01100101 01110010 00101101 01100110 01100001 01100111 01100111 01101111 01110100 00111111

[ - ] PostWallHelena 1 point 7 monthsNov 17, 2024 12:16:06 ago (+1/-0)

Now make a hexadecimal one.

[ - ] Dingo [op] 0 points 7 monthsNov 17, 2024 18:30:03 ago (+0/-0)

It is a very interesting thing. I looked for a video of one all over and couldn't find one. I did find many electronic demonstrations. If one were to take the time to rig it up, you could do it with 16-sided rotating paddle (hexdecagon??) where the faces are labelled O, 1, 2 ... 9, A, B, C, D, E, F where F = 15 in decimal. On each last one (F) is where you'd put the latch to force rotation of the next paddle.

This might be easier to understand that the machine presented is a 2-sided paddle (0 and 1). From the side it looks like a line. If a 3-sided paddle, then the side profile would look like an equilateral triangle and so on ...

[ - ] PostWallHelena 0 points 6 monthsNov 17, 2024 18:55:09 ago (+0/-0)

16 sided rotating paddle.

Basically a dial. Not sure how you would implement the “latch” on the F which would only rotate the next dial 1/16 of the way around .

[ - ] Dingo [op] 0 points 6 monthsNov 17, 2024 20:23:42 ago (+0/-0)

Basically a dial.

First, DIAL GAY.

Second, not really a dial but almost exactly like how the old odometers worked in cars. Just that they'd have 16 clicks per full rotation instead of 10 (from 0 to 9).

[ - ] RobertJHarsh 1 point 7 monthsNov 17, 2024 11:54:19 ago (+1/-0)

One of my kids learned this a month ago in programming class.

128 64 32 16 8 4 2 1

[ - ] Smedleys_Butler 0 points 6 monthsNov 17, 2024 19:39:02 ago (+0/-0)

This bring me back to mathematics and culture course I took. Why don't we have base 60 today?

[ - ] Dingo [op] 0 points 6 monthsNov 17, 2024 20:21:28 ago (+0/-0)

Why don't we have base 60 today?

Well, count the number of "digits" on your hand and you'll see 10 (dec, as in "decimal" system) which is the base system we use with numbers today. Each digit on your hand can be represented with a specific "index" and can be represented as 1 .. 10, but if you include 0, then it is a range of 0..9. Note that 10 again represents the next biggest number, and because base-10 it is the decimal number 10.

The binary system is useful in digital logic, where the end state is ON or NOT ON (or 1 and 0). So here the next biggest number is 10, but represents 2, the base number again.

We can extend this to see how base-3 works. We have 3 total choices, starting as integers at 0. So, 0, 1, and 2. The next number is 3 (in decimal) and is represented in base-3 as ... <drum roll> ... 10.

Going with base 60, it would go like: 0,1,2, ... , 8,9,a,b,c ... 59thpictogram, 60thpictogram (equalling numerically 59 in decimal). The number 60 in base-60 is 10. The decimal number 66 in base-60 would be 16.

In this way, you might consider our english alphabet a base-26 system and extract numbers from words, or other similar means, to do gematria.

[ - ] Smedleys_Butler 0 points 6 monthsNov 17, 2024 20:27:15 ago (+0/-0)

Maybe the better question is, why did the Sumerians have base 60 in the first place.

[ - ] Dingo [op] 0 points 6 monthsNov 17, 2024 20:43:37 ago (+0/-0)

Well, I question if the babylonian system really was "base-60" right from the visual of it. First off, zero is not represented (the story of zero is supposedly from arabs, but anyway). Second, take a look at the number system and it's decimal representations here: https://upload.wikimedia.org/wikipedia/commons/d/d6/Babylonian_numerals.svg

Do you notice anything similar between columns? This one seems to be something very similar to (maybe a predecessor of?) the roman system. If you take the pictographs as a whole (i.e. not noticing the obvious use of "digits") it would appear this way, but again the final number actually represents 60, not 59.

Anyway, the reason base 60 is useful is because it is based on division and base 60 gave them easy calculations (actually approximations because the resolution is 1/60th of a rotation) to plot directional changes. For more accuracy, they could use a second wheel and this is how hours, minutes, seconds is in place. These "times" are actually also related to angles of shadows in the day. Honestly, I don't know a great deal more about this particular base than what I mention here.

The question why not base-60? Well, we do use such base 60 today for sure in measurements (compasses and timers, etc.). But also note that numbers are still represented as decimal (base 10). I kind of thought you were asking why we don't use numbers as base-60 and it really does come down to having 10 fingers when people learn to count. Out at sea, among intellectuals, base-60 sounds pretty good.

[ - ] Smedleys_Butler 1 point 6 monthsNov 17, 2024 20:48:42 ago (+1/-0)

Now imagine if we had 11 fingers. Maybe that's like the enochian number system for angels

[ - ] Smedleys_Butler 0 points 6 monthsNov 17, 2024 20:44:36 ago (+0/-0)

Maybe the better question is, why did the Sumerians have base 60 in the first place.

[ - ] canbot 0 points 6 monthsNov 17, 2024 19:09:37 ago (+0/-0)

Run it backwards.

[ - ] i_scream_trucks 0 points 7 monthsNov 17, 2024 17:46:19 ago (+0/-0)

i actually thought this was going to be a video of a mudslime with one of those big ass wooden rulers threatening a tranny yelling 'SHOW BOBS AND VAGENE'

[ - ] Doglegwarrior 0 points 7 monthsNov 17, 2024 12:43:28 ago (+0/-0)

In some sci fi book I read ants where used as a computer this visualization made it make sense how that was possible

[ - ] PotatoWhisperer2 0 points 7 monthsNov 17, 2024 16:57:35 ago (+0/-0)

Hypothetically you could run a human mind via paperwork. It would take a billion years and trillions of people to finish a single thought, but it's supposedly possible.