Hacker News new | ask | show | jobs
by omoikane 823 days ago
On this slide: https://presentations.clickhouse.com/meetup85/app/#32

It says the the intent was to make it similar to https://xkcd.com/195/ , i.e. with a space filling curve that preserves grouping, but actual implementation doesn't seem to do that. For example, the upper left squares are:

    0 1
    2 3
As opposed to

    0 1
    3 2
Also, 127.0.0.1 is near the right center edge of the map, while 128.0.0.1 is next row down near the left center edge.
1 comments

For the visual patterns on the map that does not make a major difference.

* Obviously for all of the same color it makes no difference

* For all 4 of different colors the pattern still does not change, it's just randomly colored

* In case of 2 colors it's highly likely that the first half will have one color and the second one another. Nothing changes.

* In the less likely case the 3 have one color and the remaining one is different the resulting pattern is a triangle. So the direction of the diagonal will flip. But I don't think the overall impression will change.

In higher level squares replace "color" by "pattern", still no significant changes in appearance. Of course the two lower squares always swap their location.

Maybe the image would look just as random if a space filling curve were used, but I was hoping it would resemble the XKCD image somewhat.

I have tried to rearrange the pixels to see if there is any resemblance, here:

https://gist.github.com/uguu-org/5dadec83394d9ba5ea88e0f6e25...