6 ms·
Yeah but what you really want is base-emoji. https://github.com/pfrazee/base-emoji https://github.com/pfrazee/base-emoji
by pfraze 9y ago
Yeah but what you really want is base-emoji. https://github.com/pfrazee/base-emoji https://github.com/pfrazee/base-emoji
- lkurusa 9y agoOh, wow. But... the real question is how many bytes of data can I put in a tweet using this? :-)
- ecesena 9y agoIt's right below the table: > For example, using Base64, up to 105 bytes of binary data can fit in a Tweet. With Base65536, 280 bytes are possible.
- desdiv 9y agoHe's asking about base-emoji, not Base65536. >The emojis used are in emojis.json. There are 843 emojis there, but the converter reads sequences of 8 bits at a time, and so only maps the value to the first 256 of them. One byte per emoji means 140 bytes per tweet. Since it's just a joke format they're not trying to be space efficient. Using all 843 emojis would result in 170 bytes per tweet (ln 843 / ln 2 / 8 * 140).
- chocolatebunny 9y agoSometimes you don't know what you're missing in life until you find it.
- mjburgess 9y agoBefore you came into my life I missed you so bad - Carly Rae
- blincoln 9y agoI came up with the same concept - and almost the same name[1] - as a joke at work last year, and could not stop laughing at the results, so I completely agree. The one improvement to the public project I'd suggest is from my own. Instead of always starting from index 0, for each character position, increment the starting index by one until it loops around. That way all of the emojis get a roughly equal chance of screen time - depending on the entropy of the unencoded data, of course. [1] I called mine "basemoji".
- krick 9y agoIt actually could be interesting, if it only wasn't so (needlessly) inefficient.
- dnautics 9y agoBase-one was an education. I feel like base one should have some error correcting ability to take care of slippage events.
- firethief 9y agoJust include a length field with the message. The message length contains enough information to repair any possible corruption to the message.
- jrochkind1 9y agothe value of the length field must also be expressed in base-1. also, the total length reported by the 'message length' header must included the space taken by the header itself as well.
- jacobush 9y agoI think I am missing the joke
- falsedan 9y ago> the "joke" It's "hilarious", you're missing out on "a witty insight" about "valuable programming skills". alt post: it's as much of a joke as xkcd's "I understood that reference" performance pieces.
- cyphar 9y ago"Unnecessary" usage of "quotation" marks doesn't "make you" seem "enlightened", "it 'just' makes" you "sound" ""pretentious"".
- falsedan 9y agoThe quotes are what other people have said. Jokes need to have a punchline and evoke a humour response in the audience; the references to base-1 in the ancestor comments do neither, so describing them as a 'joke' is inaccurate (hence the quotes to mark it as verbatim). I certainly agree that overuse of quotes makes a comment pretentious!