3 ms·
Well, here's what Fable came up with in 499 bytes of R in about half an hour: https://pastebin.com/sBsiGD9t https://pastebin.com/sBsiGD9t, result: https://imgur
by Analemma_ 4mo ago
Well, here's what Fable came up with in 499 bytes of R in about half an hour: https://pastebin.com/sBsiGD9t https://pastebin.com/sBsiGD9t, result: https://imgur.com/a/W3eDdIC 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.
- cwmoore 3mo agoI can see leas than half of it. Imgur?
- cwmoore 3mo agoThanks? for the obtrusive ads and the downvote? HN can do better.
- gus_massa 3mo agoDid 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.
- Analemma_ 3mo agoFable 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.
- gus_massa 3mo agoCan you post the unencode version? It would be nice to see the vector with the data, for example to count how many coefficients each continent got. Have you tried with Bezier curves? Your images show a lot of pointy parts, like Southeast Asia and that usually needs a lot of high frequencies in the Fourier representation, so I think something piecewise may be better. (Perhaps a polygon is better.)
- boulos 3mo agoAnd it made a classic optimization: removing New Zealand :).
- Analemma_ 3mo agoIn 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 :)