7 ms·
Base 2048
- losvedir 4y agoHeh, well that's one way to work around the inane Twitter character limit...! My personal Musk dream is that he'll abolish that. If I never have to see tweets of pictures of text or tweets ending in `/n` again, it will be too soon. Though, I sort of remember that Twitter was architected initially in a way that relied on the short tweets and it was a surprisingly complex change to even bump it up the little that they did recently, so who knows.
- wongarsu 4y agoIf they abolish the character limit, do they also rebrand the platform from twitter to blogger? /s I think there are some interesting observations in how both twitter and tiktok set out with short maximum lengths, establishing a culture of short, easy to digest messages, before relaxing the limit a bit. I'm not sure how much you can relax the limit before you turn the platform into something else entirely. But on the other hand there is a pattern of users circumventing the limit anyways. It will be interesting to watch how it develops over the years.
- evanb 4y agoTwitter’s limit used to be 140 characters. Then it became 280. By simple arithmetic progression the next limit will be…
- mike_hock 4y ago280. Then the next one will be 187 (186.6666...). n[0] = 140 n[k] = 2/k * n[k-1]
- evanb 4y agoThat is not an arithmetic progression; I chose my words carefully :) https://en.wikipedia.org/wiki/Arithmetic_progression https://en.wikipedia.org/wiki/Arithmetic_progression
- deleted 4y ago[deleted]
- jcims 4y agoThe prophecy will be fulfilled.
- deleted 4y ago[deleted]
- droidist2 4y agoKnowing Musk he'd totally be down for changing it to 420.
- ant6n 4y agoOr perhaps 5420.
- Someone 4y agoTwitter started as “an individual using an SMS service to communicate with a small group”, and SMS messages are 140 bytes (that may store 160 characters when using a 7-bit encoding such as https://en.wikipedia.org/wiki/GSM_03.38 https://en.wikipedia.org/wiki/GSM_03.38, but they didn’t go there) I guess bumping the limit up while keeping the ability to interact with all kinds of SMS systems and ancient phones was a challenge, or just required waiting a few years for some of the weirder systems to die out.
- opencl 4y agoThe 140 byte limit actually didn't last very long, it was 140 Unicode code points since at least a decade ago. You could use 140 CJK (Chinese/Japanese/Korean) characters or 140 emojis, and if it didn't fit in an SMS they just sent a link to the tweet. Interestingly when they doubled the character limit they also started double counting CJK characters so the limit is still effectively 140 for those languages.
- lifthrasiir 4y ago> Interestingly when they doubled the character limit they also started double counting CJK characters so the limit is still effectively 140 for those languages. CJK languages do tend to be relatively dense when written and counted by their code points.
- wongarsu 4y agoFor comparison: A sha512 hash in hex: 309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f Same in this Base2048: ЗཟǷњϳݫЬߦՏԈ௰ڿƫ௪தͶޡഺཀވࡌੳٿ༲৩ত༥၄ঙџڸࠑحϷгଘƩƴߢய߅ϚƐγ๓ۑఞ The encoding also seems to be HN-safe, using no emojis or other things HN filters. The font used here is lacking some of the characters, but that shouldn't matter if you just copy-paste.
- Beltalowda 4y agoThat base2048 string is 114 bytes (vs 129 for hex), so it's only significantly "shorter" in what you see, which isn't exactly human-readable (actually, less than the hex string; for a quick visual inspection comparing just the first and last 2 or 3 characters is enough, but that's a lot harder to do with all those unfamiliar Cyrillic, Tibetan, Tamil, Armenian, Arabic, Samaritan, Greek, etc. characters in there).
- jbverschoor 4y agoBase2048: ЗཟǷњϳݫЬߦՏԈ௰ڿƫ௪தͶޡഺཀވࡌੳٿ༲৩ত༥၄ঙџڸࠑحϷгଘƩƴߢய߅ϚƐγ๓ۑఞ (47 characters, 113 bytes) Base64: MJ7MSJwS1utMxA9QyQLytNDtd+5RGnx6m808qG1M2G+YndNbxf9JlnDaNCVbRbDP2DDoH2Bdz33FVC6TrpzXbw== (88 bytes) Base58: yP4cqy7jmaRDzC2bmcGNZkuQb3VdftMk6YH7ynQ2Qw4zktKsyA9fk52xghNQNAdkpF9iFmFkKh2bNVG4kDWhsok (87 bytes) Original: 64 bytes, 128 bytes in hex. I'd prefer base58. Maybe compress it first.
- vonwoodson 4y agoThat’s 2,598 tweets to transmit a single megabyte. So, if I wanted to tweet the movie Spaceballs, encoded at 4K UHD (20MB/s), I estimate that I will need to make 20,945,455 tweets. Twitter limits the posts made by nobodys (like me) to 2,400 tweets per day… so, it is going to take me just under 24 years to complete my task. I’d better get started.
- _8j50 4y agoOr just transmit a url to the media on some site,ipfs,.onion,etc... I don't know their use case but I was thinking more for malware command-and-control and red teaming.
- rpastuszak 4y agoYou can fit much more in a single tweet! You can do that with base64 + gzip + (and that’s the important one) _wrapping the content in a url_. Here’s pong (3.5kb) stored in a single tweet: https://twitter.com/rafalpast/status/1316836397903474688?s=21&t=cdc4cbXb_8uROEJTLiWDJw https://twitter.com/rafalpast/status/1316836397903474688?s=2... Source: I was bored, curious if I could turn twitter into a CDN
- Retr0id 4y agoYou can fit much more into a tweet if you consider image data, too.
- tonnydourado 4y agoProblem is that there's no guarantee that twitter won't apply lossy transformations to your data (in fact, it's guaranteed that it does). So either you would have to encode the data with lots of redundancy and/or error correction, or you have to encode in like, QR code or something similar, and rely on image recognition to extract it. Inside the range of characters support by twitter, your data is "guaranteed" to not change
- mananaysiempre 4y ago
- rpastuszak 4y agoHehe, this is both wonderfully useless and impressive. I was experimenting with using Twitter as a CDN, here’s pong (3.5kb) in a single Tweet: https://twitter.com/rafalpast/status/1316836397903474688?s=21&t=cdc4cbXb_8uROEJTLiWDJw https://twitter.com/rafalpast/status/1316836397903474688?s=2...
- James-Livesey 4y agoThis is something I used for the "tweet your BASIC code" functionality in atto (https://jamesl.me/atto https://jamesl.me/atto)... Trying to fit an advanced BASIC program in a single Tweet isn't too easy, but at least encoding it in Base 2048 beforehand is! Example: https://twitter.com/jthecoder/status/1412848719737851905 https://twitter.com/jthecoder/status/1412848719737851905
- codetrotter 4y agoRelated but opposite, a tool I made a couple of years ago. https://github.com/ctsrc/Base256 https://github.com/ctsrc/Base256 > Encode and decode data in base 256 > […] > You might expect data encoded in base 256 to be more space efficient than data encoded in base 16, but with this particular set of symbols, that is not the case! Likewise, you have to type more, not less, than you would if you use my base 256 instead of base 16. So why? > The purpose […] is to make manual input of binary data onto a computer less error-prone compared to typing in the base 16 or base 64 encoding of said data. Whereas manually typing out base 64 is painful, and base 16 makes it easy to lose track of where you are while typing, [this program] attempts to remedy both of these problems by using 256 different words from the EFF autocomplete-friendly wordlist. Disclaimer: I am not using this base 256 program myself, even though I authored it. It just serves as a fun little experiment.
- cylinder714 4y ago...This is brilliant, actually.
- gpderetta 4y agoThought I recognized the author! That is qntm of "There is no antimemetic division" fame.
- themerone 4y agoI don't think Base-N names should be given to encodings that haven't been IETF standardized. This could lead to incompatible encodings with the same name.
- divbzero 4y agoWhat about encoding data for image tweets? QR codes are limited to a few kB of storage [1] because they are designed for visual scans, but using higher resolution could get you more capacity. [1]: https://en.wikipedia.org/wiki/QR_code#Storage https://en.wikipedia.org/wiki/QR_code#Storage
- graderjs 4y agoEncode the text as an image, Tweet it, then use OCR to pull the text out. No more bit fiddling
- hinkley 4y agoFor those playing at home, you need at least base 4096 to equal the data density of base64, because utf8 uses two bytes for anything over 7 bits. It is only because of a somewhat arbitrary Twitter rule that this works. On Twitter.