Live data from Hacker News

Can you build a recognizable World Map in under 500 bytes?

experimentlog.com

31–40 of 58 posts

Re: Can you build a recognizable World Map in under 500 bytes?

#31

I know this doesn't meet the spirit of the challenge, but... _,--', _._.--._____ .--.--';_'-.', ";_ _.,-' .'--'. _.' {`'-;_ .-.>.' '-:_ ) / `' '=. ) > {_/, /~) snd |/ `^ .'

One could probably map this in JavaScript in 3D on a rotating sphere and it'd be a "recognizable world map" of sorts.

Re: Can you build a recognizable World Map in under 500 bytes?

#32

Why is there a lake in Africa near Congo/Gabon istead of one near Uganda? Also, can this be done with png? Most consecutive lines are very similar, so I'd expect the algebraic pass to be very useful.

> Why is there a lake in Africa near Congo/Gabon istead of one near Uganda?

Africa and Europe are connected through Spain.

There's no Suez channel.

There are plenty of approximation: it's the whole point of the thing... You only get 1013 bytes (or, well, 500 bytes in the question asked).

Re: Can you build a recognizable World Map in under 500 bytes?

#36

Earlier quoted context omitted.

Well, here's what Fable came up with in 499 bytes of R in about half an hour: https://pastebin.com/sBsiGD9t , result: https://imgur.com/a/W3eDdIC . Probably with sitting down and tweaking you could do even better, but I think this is a decent first start.

Did you or Fable decide to split North and South America? Can the it also split Africa/Arabia/Eurasia? Who/how decided which islands to keep and which to erase? If you want to save a few characters, you can replace `length(v)` with the actual number.

Fable did that, I pretty much just told it to find the best Fourier sum which can draw a map of the world in less than 500 bytes of R. It downloaded geo data and made the curves to fit that on its own.

Re: Can you build a recognizable World Map in under 500 bytes?

#37

I know this doesn't meet the spirit of the challenge, but... _,--', _._.--._____ .--.--';_'-.', ";_ _.,-' .'--'. _.' {`'-;_ .-.>.' '-:_ ) / `' '=. ) > {_/, /~) snd |/ `^ .'

U+1F5FA does it in 4 bytes!

https://www.compart.com/en/unicode/U+1F5FA

Re: Can you build a recognizable World Map in under 500 bytes?

#38

Presumably you could precompute some parametric function (probably a Fourier sum) which draws a reasonably close map of the world, and get that into 500 bytes with a math-focused programming environment (R, Julia, etc.)? I might try throwing Fable at this and seeing what I can get.

Well, here's what Fable came up with in 499 bytes of R in about half an hour: https://pastebin.com/sBsiGD9t , result: https://imgur.com/a/W3eDdIC . Probably with sitting down and tweaking you could do even better, but I think this is a decent first start.

And it made a classic optimization: removing New Zealand :).

Re: Can you build a recognizable World Map in under 500 bytes?

#39
post #38

Earlier quoted context omitted.

Well, here's what Fable came up with in 499 bytes of R in about half an hour: https://pastebin.com/sBsiGD9t , result: https://imgur.com/a/W3eDdIC . Probably with sitting down and tweaking you could do even better, but I think this is a decent first start.

And it made a classic optimization: removing New Zealand :).

In its defense, it actually asked me whether I wanted to spend my 500 bytes on more resolution for the main continents or more landmasses, and I opted for the former. You can blame me for that, not Claude :)

Re: Can you build a recognizable World Map in under 500 bytes?

#40

Why is there a lake in Africa near Congo/Gabon istead of one near Uganda? Also, can this be done with png? Most consecutive lines are very similar, so I'd expect the algebraic pass to be very useful.

> Why is there a lake in Africa near Congo/Gabon istead of one near Uganda? Africa and Europe are connected through Spain. There's no Suez channel. There are plenty of approximation: it's the whole point of the thing... You only get 1013 bytes (or, well, 500 bytes in the question asked).

If you were to render only one lake in Africa I would expect Lake Victoria
Post reply on HN