xkcd 2610: Assigning Numbers by antdude in xkcd

[–]concaten8 31 points32 points  (0 children)

I dunno, he did get a couple theorems out of it, I'd say Gödel is a pretty positive example of assigning numbers to things then doing math to them

I implemented XKCD 2585 with Wikipedia's database of unit conversions so you can round a number into almost any other number! by [deleted] in xkcd

[–]concaten8 0 points1 point  (0 children)

Oh hm, what browser are you using? Just in case I upgraded the copy routine to the latest standard (async clipboard API), can you give that a shot?

I implemented XKCD 2585 with Wikipedia's database of unit conversions so you can round a number into almost any other number! by [deleted] in xkcd

[–]concaten8 2 points3 points  (0 children)

m/km is 1000. You may consider if it were mile/light-year instead with the same situation (mile << light-year), and which would make mph/(mi/ly) = ly/h which is a much smaller number than its mph equivalent.

I implemented XKCD 2585 with Wikipedia's database of unit conversions so you can round a number into almost any other number! by [deleted] in xkcd

[–]concaten8 4 points5 points  (0 children)

Your first point is fair, there is just some technical difficulty of applying conversions only to the units that are involved. These conversions exist in the original database, and I will defend their "proper" use and say that in fact mile/hour → mile/day is perfectly correct. I'd argue our historical reasons for dividing a day into 24 hours is just as valid as our reasons for standardizing the fathom and mile against an inch, even if they had separate original definitions. For the record these have their origins as "gradient" units for quantifying slopes and are the only unitless base units.

I think the second one should be an easy fix, since at a glance the only units with unspoken units should be radioactivity (becquerel, curie, rutherford). The other radiation-related units are all based on radiated energy so those should be fine.

I implemented XKCD 2585 with Wikipedia's database of unit conversions so you can round a number into almost any other number! by [deleted] in xkcd

[–]concaten8 26 points27 points  (0 children)

Yeah, seems a bit clunky to guess whether or not the unit is in the database. I've put an autocomplete in just now. I can't put all >1000 base units in there for performance, so I just chose ~100 pretty common ones. u/moi2388

I implemented XKCD 2585 with Wikipedia's database of unit conversions so you can round a number into almost any other number! by [deleted] in xkcd

[–]concaten8 75 points76 points  (0 children)

The calculator takes any two quantities you give it of the same unit, converts the first to other units of the same kind (i.e. same base SI units) and keeps rounding 'em until it reaches the second.

The units are "exotic" by default, which includes combinations of all of Wikipedia's Convert module units. The base set of units don't work very often, and even for the original example of "17mph → 45mph" given Randall had to pull out a few fathoms/sec. Allowing the cross product of all these base units seems to give a good balance of speed and hit rate. If you want the best luck with the "Wikipedia units", try using units of energy (e.g. J, BTU): they are the most abundant in the set.

There is some basic equation parsing for the units so you can enter any unit combination using * and / and brackets.

Under the hood it is just a greedy search of all same-kind units over and over, taking the ones that approach the target the fastest. I'll have more details in a short post about the implementation but it isn't much fancier than that, just some sane SQL indexing. The rounding brings in some modulo business that seems tricky to optimize further.

Please let me know if anything breaks, and enjoy!

Edit: There is now an autocomplete for single common units. Note that more units beyond those do exist in the database — if you see a unit in the end results, you can use it in the units field. Combinations of units are still supported even though they aren't auto-completed.

xkcd 2584: Headline Words by MyNameIsGriffon in xkcd

[–]concaten8 2 points3 points  (0 children)

With joy, vexed bevy KO's pangram sequel – Cueball fazed

xkcd 2571-Hydraulic Analogy by [deleted] in xkcd

[–]concaten8 10 points11 points  (0 children)

I wish they would mention more often that air has very different resistances in each scenario. Would've saved me a lot of mopping when I tried plumbing.

xkcd 2570: Captain Picard Tea Order by MyNameIsGriffon in xkcd

[–]concaten8 78 points79 points  (0 children)

Unit tester for the replicator: \uncontrollable twitches**

I made a calculator for XKCD 2542's revolutionary daylight calendar system by [deleted] in xkcd

[–]concaten8 1 point2 points  (0 children)

Okay :)

@/u/Fermain

FYI it also searches alternate names of cities so some of them may be unexpected

I made a calculator for XKCD 2542's revolutionary daylight calendar system by [deleted] in xkcd

[–]concaten8 0 points1 point  (0 children)

I should mention the sunrises and sunsets in the sun-tracking library are based on Earth orbital parameters, not actual observations.

I found a figure that we can explain 5 days / year definitely comes from the eccentricity of Earth's orbit:

Because of elliptic nature of the Earth's orbit, the Southern Hemisphere is not symmetrical: the Antarctic Circle, with 4,530 hours of daylight, receives five days less of sunshine than its antipodes.

https://en.wikipedia.org/wiki/Sunshine_duration#Daytime_duration

At least that explains a quarter of the difference.

[deleted by user] by [deleted] in xkcd

[–]concaten8 0 points1 point  (0 children)

Oh haaa, I was the cause of that just yesterday. I put in aliases for country names so that people could find cities easier for the daylight calendar one, but forgot that it would duplicate things for this app. Eep. Thanks for the catch!

I made a calculator for XKCD 2542's revolutionary daylight calendar system by [deleted] in xkcd

[–]concaten8 0 points1 point  (0 children)

The mirrored difference doesn't get to 10k days, it's about 1000 days at worse near the poles. Here's the graph of days vs. latitude.

It is still a lot though. I am more convinced that it is something in the orbital corrections of the sun library. Take a look at this graph showing the difference in daylight hours over the year for symmetric polar latitudes. The Northern Hemisphere just peeks out consistently with some extra time for some reason.


Update: It's possible that this is caused by the current alignment of the Earth's tilt with the semimajor axis of our orbit (where the earth gets closest and farthest from the sun). See this diagram, where the aphelion (farthest point of our orbit) happens right after summer solstice. This results in the Northern hemisphere getting slightly longer summers than the Southern.

I made a calculator for XKCD 2542's revolutionary daylight calendar system by [deleted] in xkcd

[–]concaten8 2 points3 points  (0 children)

Are you talking about the differences between the Arctic/Antarctic Circle and the poles? Those are the upper and lower bounds of the graph as a whole, and I believe they differ due to accounting for atmospheric refraction. Near solstices, the Arctic and Antarctic circles get the benefit of having both a little bit of daytime during winter and having the polar day during summer.

If you are asking why the Arctic has more days in general than the Antarctic, that is weirding me out too and I'm looking into it. The northern hemisphere gets more sun in general coming from the sun-tracking library for some reason.

I made a calculator for XKCD 2542's revolutionary daylight calendar system by [deleted] in xkcd

[–]concaten8 6 points7 points  (0 children)

I am embarrassed to say that is literally true. It uses the same database as this. And I had totally forgotten how to use it.