573
you are viewing a single comment's thread
view the rest of the comments
[-] CookieJarObserver@sh.itjust.works 11 points 2 years ago

Binary is just morse in Mashine readable Form.

[-] Cruxifux@lemmy.world 9 points 2 years ago

I was gonna say “like, kind of” because of Morse code.

Ya beat me to it bro

[-] jungle@lemmy.world 3 points 2 years ago

Not really, Morse code is not binary, but tertiary.

[-] fibojoly@sh.itjust.works 5 points 2 years ago

I'm guessing you're saying that because of the pauses? Otherwise I don't get it.

[-] jungle@lemmy.world 1 points 2 years ago

Yes, the space is a necessary symbol in Morse code, otherwise it's impossible to decode.

[-] fibojoly@sh.itjust.works 1 points 2 years ago

Makes sense. I remember asking myself whether Morse was a form of Huffman encoding back when I was learning that stuff. And it kinda is going for that, but without actually doing it properly since it wasn't a binary code per se and so could use the pauses. "Ternary" makes sense.

[-] jungle@lemmy.world 2 points 2 years ago

Right, Morse was actually mentioned as an example when I was learning Huffman encoding. :)

[-] BlackRose@slrpnk.net 1 points 2 years ago* (last edited 2 years ago)
[-] BlackRose@slrpnk.net 5 points 2 years ago

I'd say it's quinary but can easily be represented binarily

  1. short mark, dot or dit ( ▄ ): 1

  2. longer mark, dash or dah ( ▄▄▄ ): 111

  3. intra-character gap (between the dits and dahs within a character): 0

  4. short gap (between letters): 000

  5. medium gap (between words): 0000000

[-] jungle@lemmy.world 1 points 2 years ago

You can do it with three symbols:

  1. Dot: 10
  2. Dash: 1110
  3. Gap: 00

The long gap between words is just three short gaps.

There's a Vsauce video about this: https://youtu.be/HY_OIwideLg

[-] BlackRose@slrpnk.net 1 points 2 years ago* (last edited 2 years ago)

Looks right, but would that not already be optimized?

[-] jungle@lemmy.world 0 points 2 years ago

Not sure what you mean by optimized.

[-] BlackRose@slrpnk.net 1 points 2 years ago

Optimized to use less symbols by combining them (long gap between words is just three short gaps). I also think if a sentence ends, there would be the unnessecary 0 from the dots and Dashes at the end.

[-] BlackRose@slrpnk.net 3 points 2 years ago* (last edited 2 years ago)
[-] Lowered_lifted@lemmy.world 0 points 2 years ago

Unless I'm mistaken I would say that it's the other way around, Morse code is more like a human readable machine language expressed in binary because the 26 character alphabet is expressed in different binary values, much like ASCII.

this post was submitted on 24 Jul 2023
573 points (97.2% liked)

Programmer Humor

32707 readers
117 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS