this post was submitted on 24 Jul 2023
572 points (96.9% liked)

Programmer Humor

32568 readers
256 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] CookieJarObserver@sh.itjust.works 11 points 1 year ago (15 children)

Binary is just morse in Mashine readable Form.

[–] jungle@lemmy.world 3 points 1 year ago (11 children)

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

[–] BlackRose 5 points 1 year ago (1 children)

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 2 points 1 year ago (1 children)

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 1 points 1 year ago* (last edited 1 year ago) (1 children)

Looks right, but would that not already be optimized?

[–] jungle@lemmy.world 1 points 1 year ago (1 children)

Not sure what you mean by optimized.

[–] BlackRose 1 points 1 year ago (1 children)

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.

[–] jungle@lemmy.world 1 points 1 year ago

Yeah, that extra 0 also irks me, it's the typical issue when concatenating words, that requires a trim() at the end.

But it's not an issue in terms of showing that you need three symbols to represent Morse code.

load more comments (9 replies)
load more comments (12 replies)