| ▲ | Compressing a Flag to 11 Bits(read.vantezzen.io) | |||||||||||||||||||||||||
| 36 points by bennett_dev 2 days ago | 16 comments | ||||||||||||||||||||||||||
| ▲ | kjgkjhfkjf an hour ago | parent | next [-] | |||||||||||||||||||||||||
In case anyone else was curious about using a lookup table: there are there are fewer than 256 recognized countries or territories [1], so 8 bits should be enough for a key. This would be superior to the 11-bit encoding presented here because it handles complexities such as coats of arms. It would also handle bizarre situations such as two countries having almost identical flags [2]. [1] https://en.wikipedia.org/wiki/List_of_countries_and_territor... [2] https://www.worldatlas.com/articles/country-flags-that-resem... | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | gerdesj 25 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||
A jack is a flag flown from a jackstaff, wot is found at the back of a ship or boat. The UK flag is called the Union Flag (it's a flag and it is a union of various flags and possibly nations too!) but let's face it, given how many people think its called the Union Jack, it doesn't really matter. If your flag pole at home is somewhat canted then I think you can call it a jackstaff, with a similar justification to the Royal Navy managing to designate their shore bases as ships. For example just up the road is HMS Heron (His Majesty's Ship: Heron). The Union Flag/Jack is only the flag of the UK by convention and not law. It's a bit wooley, just like our Constitution but it still all works. My point is that whilst I do enjoy this encoding scheme and it is jolly clever, reality is way more complicated. The UK's flag is pretty complicated but not alone. I'm pretty sure several flags have tassels, which I suppose strays into the coat of arms territory. How hard do you want to squint! | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | mabster 40 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||
Loved the title. I was like "that's 10 bits too many for a flag!" Haha | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | AdieuToLogic 16 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||
This reminds me of the old joke[0]:
0 - https://www.gnu.org/fun/jokes/10-kinds-of-people.html.en | ||||||||||||||||||||||||||
| ▲ | pimlottc an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||
Surprised this didn’t mention heraldry, which has what’s basically a DSL for coats-of-arms: | ||||||||||||||||||||||||||
| ▲ | harpiaharpyja 25 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||
With all the attention on the link between compression and intelligence lately it is neat to have this example of how creating a encoding scheme naturally allows you to create new (likely) never before seen flags. | ||||||||||||||||||||||||||
| ▲ | blacklion 23 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||
Fun fact: Constitution of Nepal has chapter about format of The Flag and it reads as geometry textbook problem (starred one, for advanced students). | ||||||||||||||||||||||||||
| ▲ | Smalltalker-80 an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||
Nobody? Okay then: "Fun with flags!". There, I said it. | ||||||||||||||||||||||||||
| ▲ | ano-ther an hour ago | parent | prev | next [-] | |||||||||||||||||||||||||
Cool idea. Interesting that Indonesia, Poland and Monaco with very similar two-stripe designs have different compression rates (11, 14 and 17 respectively). Probably the aspect ratio that also gets encoded. | ||||||||||||||||||||||||||
| ▲ | jtxt an hour ago | parent | prev [-] | |||||||||||||||||||||||||
Cool project and results! https://vantezzen.github.io/miniflags/ | ||||||||||||||||||||||||||