this post was submitted on 21 Jan 2024
45 points (95.9% liked)

Programming

17538 readers
89 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] sus 56 points 10 months ago (2 children)

To save even more data, replace every symbol with A. Then just store the amount of As.

[–] [email protected] 15 points 10 months ago

Would it be better to use A's and B's? We could half the necessary length of a symbol by assigning a certain combination of A's and B's to a symbol. And if characters take up too much space we could use 1's and 0's instead!

[–] [email protected] 14 points 10 months ago (1 children)

Then we could make a language where the letters are equivalent to the number of As

[–] Deebster 13 points 10 months ago

To save sending the tree every time, we could just have a fixed layout of letters and symbols. This would have the advantage that we could put them in order, which would be easier to work with.