5 ms·
I did a JS1K back in the day [1] such a fun concept! I wonder these days if anyone is using multi-character emoji (don't know what do you call those exactly) t
by mohsen1 2y ago
I did a JS1K back in the day [1] such a fun concept!
I wonder these days if anyone is using multi-character emoji (don't know what do you call those exactly) to compress more data in 1024 "bytes"?
Since HackerNews does not allow emojis, here is a demo of what I mean:
https://output.jsbin.com/nebemihuhe https://output.jsbin.com/nebemihuhe
[1] https://js1k.com/2013-spring/demo/1426 https://js1k.com/2013-spring/demo/1426
- gorkish 2y ago“Bytes” is not an arbitrary definition in the contest. Any use of an emoji takes 4 bytes. Some of these new combined ones can be 25+ bytes when accounting for zero width joiners, variant selectors, and modifiers. Technically you can pack nearly as much data as you like into a single legal Unicode glyph (think infinite zalgo text) if you just want to have the thought experiment. Unicode is a nightmare, but I’m glad everyone agrees to share the same nightmare.
- mohsen1 2y agoThat explains it!
- lifthrasiir 2y agoFor the record, JS1024 [1] is a de-facto spiritual successor to JS1K nowadays. [1] https://js1024.fun/ https://js1024.fun/
- wonger_ 2y agoAnd sorta similar: https://js13kgames.com/ https://js13kgames.com/
- leptons 2y agoGo have a look at https://beta.dwitter.net https://beta.dwitter.net - many of the examples there use this technique to fit more than 140 bytes into the "dweet" (many are also less than 140 characters, so don't need to use this compression technique). There is a convenient "compressed" switch to "decompress" the code. The rule on dwitter.net is no more than 140 characters (not 140 bytes).
- rounce 2y agoThere are ways of using actual compression to pack demos: https://archive.is/8KzKA https://archive.is/8KzKA
- kristopolous 2y agohttps://js1k.com/2013-spring/demo/1534 https://js1k.com/2013-spring/demo/1534 that was mine