Remix.run Logo
amiga386 a day ago

It's very cool, but it's also a shame that measuring in characters leads to the metagame of using 97 multi-byte Unicode characters that decode to 194 ASCII characters when reinterpreted. Almost everything is in the format:

    eval(unescape(escape`<<97 wide characters>>`.replace(/u../g,'')))
Can't they just have the same agreement that Ford Prefect had with Mr Prosser? "So, assuming I'm going to use this lossless compression technique to fit 194 characters into a 140 character tweet... how about you just show the 194 characters and say that I fitted into 140 characters?"

I suppose you could make the same argument about size-based competitions at demo parties; the limit is strictly 4096 bytes but everyone + their dog is using Crinkler to compress a 12-20KB executable down to that size. In fact, part of the effort is in aligning data and tweaking constants with Crinkler's algorithm in mind, to make the raw data more amenable to compression! But at least then, it's not a constant compression (turning any 194 ASCII characters into 97 Unicode characters which with embedded decoder makes exactly 140 characters)

nightpool a day ago | parent | next [-]

if you switch to the beta frontend it has a "compressed" toggle that will do exactly what you're looking for: https://beta.dwitter.net/top

amiga386 a day ago | parent | next [-]

That's awesome! That's exactly what's needed.

dang a day ago | parent | prev | next [-]

We've changed to that URL above from https://www.dwitter.net/top. Thanks!

tomtomtom777 11 hours ago | parent | prev [-]

Nice; a way to also show the actual wrapping code would be nice.

I am assuming c is set to a canvas element and x is set to the context, but I can't find actual information on this.

fainpul a day ago | parent | prev | next [-]

Or simply set the limit in bytes (e.g. 140 bytes of UTF8 encoded text).

jonahx a day ago | parent [-]

This is the standard (for good reason) in code golf.

musicandpiss a day ago | parent [-]

thanks for introducing me to code golf.-)

anonzzzies 20 hours ago | parent | next [-]

Nice niche golfing languages as well for your continued entertainment!

cindyllm 19 hours ago | parent [-]

[dead]

jodrellblank a day ago | parent | prev [-]

See also: https://code.golf/ for a relatively recent gamified site with rankings

lencastre 16 hours ago | parent [-]

this is so good

musicandpiss a day ago | parent | prev | next [-]

I have been using Hacker News for 20 years now and this comment is already topping the all time charts of replies.-)

lukebechtel a day ago | parent | prev | next [-]

(sidebar) love to see a subtle, applicable HHG ref :)

layer8 a day ago | parent | prev [-]

To be fair, 140 bytes (1120 bits) corresponds to 160 ASCII characters, or even 170 characters if you exclude control characters.