8 votes

ha.mr: a link compressor

5 comments

  1. [3]
    json
    Link
    Arbitrary video I'm watching: Using text: "Output is the same length as the input" https://youtu.be/xlM8X7KHveE http://ha.mr/#n,C~hpwX=R%5DX22 Using emoji "Output is 31% smaller than the input"...

    Arbitrary video I'm watching:

    Using text: "Output is the same length as the input"

    https://youtu.be/xlM8X7KHveE
    http://ha.mr/#n,C~hpwX=R%5DX22
    

    Using emoji "Output is 31% smaller than the input"

    https://youtu.be/xlM8X7KHveE
    http://ha.mr#📀🤙🏾🤷‍♀️🤵🏻👩🏻‍🤝‍👨🏼🚶🏽‍➡️👨‍🦯‍➡️👨🏽‍❤️‍💋‍👨🏻
    http://ha.mr/#%F0%9F%93%80%F0%9F%A4%99%F0%9F%8F%BE%F0%9F%A4%B7%E2%80%8D%E2%99%80%EF%B8%8F%F0%9F%A4%B5%F0%9F%8F%BB%F0%9F%91%A9%F0%9F%8F%BB%E2%80%8D%F0%9F%A4%9D%E2%80%8D%F0%9F%91%A8%F0%9F%8F%BC%F0%9F%9A%B6%F0%9F%8F%BD%E2%80%8D%E2%9E%A1%EF%B8%8F%F0%9F%91%A8%E2%80%8D%F0%9F%A6%AF%E2%80%8D%E2%9E%A1%EF%B8%8F%F0%9F%91%A8%F0%9F%8F%BD%E2%80%8D%E2%9D%A4%EF%B8%8F%E2%80%8D%F0%9F%92%8B%E2%80%8D%F0%9F%91%A8%F0%9F%8F%BB
    

    What.

    4 votes
    1. [2]
      chers
      Link Parent
      Well I would assume that it is only 31% smaller when emojis are rendered? I don't no as for this tildes post i got this...
      5 votes
      1. Sheep
        Link Parent
        Seems right to me. The emoji url has 20 emojis. This tildes post has 45 characters in its url. That is a 43% reduction. What this tool doesn't take into account is that text characters are not...

        which is apparently 43% shorter.

        Seems right to me.

        The emoji url has 20 emojis. This tildes post has 45 characters in its url. That is a 43% reduction.

        What this tool doesn't take into account is that text characters are not equally wide, whereas emojis are always the full width a character on a computer can have.

        iiiiiiiiii and 👍👍👍👍👍👍👍👍👍👍 are both the same length character wise (10), but visually the emojis take up more than quadruple the space.

        6 votes
  2. 0xSim
    Link
    There is a tool called "NoPaste" https://github.com/bokub/nopaste that compresses and encodes plain text documents in its url. I even wrote my own fork to use brotli compression and add syntaxic...

    There is a tool called "NoPaste" https://github.com/bokub/nopaste that compresses and encodes plain text documents in its url. I even wrote my own fork to use brotli compression and add syntaxic coloration, it was a pretty fun weekend project. I should try to update it to use base85 instead of base64

    2 votes
  3. chers
    Link
    ha.mr (hammer) Is a cool new project created by Portal Runner. The link is a ha.mr link to the video.

    ha.mr (hammer) Is a cool new project created by Portal Runner. The link is a ha.mr link to the video.

    1 vote