• 0 Posts
  • 11 Comments
Joined 20 days ago
cake
Cake day: December 10th, 2024

help-circle

  • I can’t tell if this is a joke or real code

    Yes.

    Will that repo seriously run until it finds where that is in pi?

    Sure. It’ll take a very long while though. We can estimate roughly how long - encoded as ASCII and translated to hex your sentence looks like 54686520636174206973206261636b. That’s 30 hexadecimal digits. So very roughly, one of each 16^30 30-digit sequences will match this one. So on average, you’d need to look about 16^30 * 30 ≈ 4e37 digits into π to find a sequence matching this one. For comparison, something on the order of 1e15 digits of pi were ever calculated.

    so you can look it up quickly?

    Not very quickly, it’s still n log n time. More importantly, information theory is ruthless: there exist no compression algorithms that have on average a >1 compression coefficient for arbitrary data. So if you tried to use π as compression, the offsets you get would on average be larger than the data you are compressing. For example, your data here can be written written as 30 hexadecimal digits, but the offset into pi would be on the order of 4e37, which takes ~90 hexadecimal digits to write down.







  • lukewarm_ozone@lemmy.todaytoMicroblog Memes@lemmy.worldRaw dawing
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    5 days ago

    That’s literally correct for ADHD, yeah - the diagnostic criteria for it is all stuff like “patient says they have difficulty organizing tasks”, which, naturally, depends a lot on what kind of tasks they’re doing.

    That’s why ADHD is very common in concentration-requiring professions like software engineering (naively you’d expect the opposite) - there’s people with “undiagnosed ADHD” (low concentration) everywhere, but if you’re in a profession like that you are much more likely to have it impact your job, and go to a doctor, and get a diagnosis and a prescription of Adderall or some other kind of amphetamine.