Timeline for Draw the national flag of France
Current License: CC BY-SA 3.0
22 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 18, 2015 at 20:40 | comment | added | Digital Trauma |
@ev3commander For the record I just tried it - iconv -t UTF-16 fr.sh | wc -c gives 98 bytes. I'm not familiar with funciton, but with a brief look over its esolangs page I would guess it would encode better in CP437 which gives most of those characters in a single byte
|
|
Dec 18, 2015 at 20:30 | comment | added | user46167 | Oh. I thought that since Funciton programs (using lots and lots of Unicode) are encoded with UTF-16 to get lower byte counts, this would too. | |
Dec 18, 2015 at 20:29 | comment | added | Digital Trauma | @ev3commander No, I don't think so - each character in the whole script would end up taking up 2 bytes, which would certainly significantly increase the score. UTF-8 is best for this because it encodes almost all of what we need in just one byte per char, with just the funny dots taking up more. | |
Dec 18, 2015 at 20:25 | comment | added | user46167 | Would UTF-16 help? | |
Dec 18, 2015 at 20:23 | history | edited | Digital Trauma | CC BY-SA 3.0 |
added 36 characters in body
|
Nov 28, 2015 at 22:00 | comment | added | Digital Trauma | @geokavel Its not unfair. UTF-8 encodes the 128 ASCII characters as one byte each, but others (non-ASCII) are encoded in anything from 2 to 6 bytes. | |
Nov 28, 2015 at 21:56 | comment | added | geokavel | Hm, I've seen unicode characters counted as 1 byte before. It seems unfair to make them count as so many bytes. | |
Nov 28, 2015 at 21:52 | comment | added | Digital Trauma |
@geokavel I usually just start wc , paste in the script and hit ^D. But you can also use this online counter. lettercount.com is counting characters and not bytes. The 🔵 and 🔴 are 4 bytes each and the ⚪️ is 6 bytes.
|
|
Nov 22, 2015 at 22:30 | comment | added | Daniel | @DigitalTrauma I was looking at the 84 byte one. The second one is better than mine, yes.. | |
Nov 21, 2015 at 22:24 | comment | added | geokavel | How do you do byte counting? When I paste your answers at lettercount.com, I get much smaller byte counts (even though it counts emojis as 2 characters, which I think is correct.) | |
Nov 20, 2015 at 21:15 | comment | added | Digital Trauma | @steve I wasn't really expecting this answer to become so popular, especially given that there are questions regarding its validity. Can you give a yay or nay as to whether you think it is valid? Thanks! | |
Nov 19, 2015 at 20:42 | comment | added | Digital Trauma | @Daniel 67 bytes > 56 bytes. Or am I measuring it wrong? | |
Nov 19, 2015 at 19:21 | comment | added | Daniel | A slightly more compact version: printf -vs %26s;yes ${s// /🔵}${s// /⚪️}${s// /🔴}|head -26 | |
Nov 19, 2015 at 13:20 | comment | added | Zaibis | For me it doesn't even look like the france flag. It looks more kinda grey. | |
Nov 19, 2015 at 10:58 | comment | added | undergroundmonorail | It's just Unicode. | |
Nov 18, 2015 at 22:43 | history | edited | Digital Trauma | CC BY-SA 3.0 |
added 2 characters in body
|
Nov 18, 2015 at 22:41 | comment | added | Digital Trauma | @Doorknob You're right of course - neither solutions do - so this answer may be overstepping the line. I've asked the OP for clarification | |
Nov 18, 2015 at 22:10 | comment | added | Doorknob | The first solution doesn't use the right RGB values nor does it use the standard ANSI colors, does it? | |
Nov 18, 2015 at 19:32 | history | edited | Digital Trauma | CC BY-SA 3.0 |
added 474 characters in body
|
Nov 18, 2015 at 19:09 | comment | added | rr- | A terminal that supports emojis. Wow. | |
Nov 18, 2015 at 16:01 | history | edited | Digital Trauma | CC BY-SA 3.0 |
added 4 characters in body
|
Nov 18, 2015 at 6:23 | history | answered | Digital Trauma | CC BY-SA 3.0 |