Slashdot Mirror


Google Smashes the World Record For Calculating Digits of Pi (wired.co.uk)

Pi just got bigger. Google's Compute Engine has calculated the most digits of pi ever, setting a new world record. From a report: Emma Haruka Iwao, who works in high performance computing and programming language communities at Google, used infrastructure powered by Google Cloud to calculate 31.4 trillion digits of pi. The previous world record was set by Peter Trueb in 2016, who calculated the digits of pi to 22.4 trillion digits. This is the first time that a publicly available cloud software has been used for a pi calculation of this magnitude.

Iwao became fascinated by pi when she learned about it in math class at school. At university, one of her professors, Daisuke Takahashi, was the record holder for the most-calculated digits of pi using a supercomputer. Now, y-cruncher is the software of choice for pi enthusiasts. Created in 2009, y-cruncher is designed to compute mathematical constants like pi to trillions of digits. "You need a pretty big computer to break the world record," says Iwao. "But you can't just do this with a computer from a hardware store, so people have previously built custom machines." In September of 2018, Iwao started to consider how the process of calculating even more digits of pi would work technically. Something which came up quickly was the amount of data that would be necessary to carry out the calculations, and store them -- 170 terabytes of data, which wouldn't be easily hosted by a piece of hardware. Rather than building a whole new machine Iwao used Google Cloud.

Iwao used 25 virtual machines to carry out those calculations. "But instead of clicking that virtual machine button 25 times, I automated it," she explains. "You can do it in a couple of minutes, but if you needed that many computers, it could take days just to get the next ones set up." Iwao ran y-cruncher on those 25 virtual machines, continuously, for 121 days.

10 of 132 comments (clear)

  1. Re:Where... by hcs_$reboot · · Score: 4, Funny

    You can get even more precision: 10 (in pi base)

    --
    Slashdot, fix the reply notifications... You won't get away with it...
  2. Re:Where... by Jason+Levine · · Score: 5, Funny

    Back in college, I jokingly sent my friend 1 million digits of PI. This was on a VAX terminal college e-mail system and he didn't know how to delete the message without scrolling through the entire thing. So he sat there hitting page down over and over until he reached the bottom. For some reason, he didn't seem to appreciate the practical joke.

    --
    My sci-fi novel, Ghost Thief, is now available from Amazon.com.
  3. Hardware Store by sycodon · · Score: 4, Funny

    "But you can't just do this with a computer from a hardware store...

    I always get my computers from Home Depot.

    --
    When Fascism comes to America, it will call itself Anti-Fascism, and tell you to give up your guns.
  4. Re:Tolerance for error by kalpol · · Score: 3, Informative

    I've read somewhere you only need 40 digits to calculate the diameter of a circle the size of the observable universe to a precision within the diameter of a hydrogen atom.

    --
    12:50 - press return.
  5. OK, that's just sad. Really. by grep+-v+'.*'+* · · Score: 4, Funny

    "But instead of clicking that virtual machine button 25 times, I automated it,"

    She needs 170 terabytes of space across 25 computers for 121 days to produce 31.4 (Ha!) trillion digits. And she's worried about clicking a button a few times?? Hell, even I'm not that anal unless it was a trivial solution. (for a in `seq 1 25` ; do ./push ; done)

    First world problems, I guess.

    So in all seriousness, how do you check that? Run it again and see if it produces the same number? If there's a timing bug, it'll differ. If there's (say) a BAD timing bug, it won't; but might differ on a different machine. Or numeric coprocessor problems: One Two Three. Or cosmic rays actually flipping a bit somewhere. (ECC CPUs?) I realize this is all fun and games, but how do you know that it's actually correct? See if you can use it to successfully square the circle, in which case it's not?

    --
    If the universe is someone's simulation -- does that mean the stars are just stuck pixels?
  6. Re:Tolerance for error by ImprovOmega · · Score: 4, Informative

    Regarding your edit, you do mean precision. And the measure I prefer is computing the volume in cubes with Planck-length edges of a sphere with the diameter of the observable universe. But even that only takes you out to 200 or so digits.

    Here's some data on the size of the observable universe in Planck-lengths. 200 digits of pi should be sufficient to precisely compute the number of Planck-length cubed units in our observable universe. From a strictly physical perspective, more than this level of precision in meaningless.

  7. I wonder how much it cost by turp182 · · Score: 4, Interesting

    In terms of electricity.

    Or how much would it have cost someone who doesn't work at Google.

    25 servers, 121 days, 170 terabytes of data.

    And then the real question, was it really WORTH it?

    --
    BlameBillCosby.com
  8. Re:Where... by AmiMoJo · · Score: 3, Interesting

    Actually, if you would describe the whole universe in binary format -or decimal if you wish-, it's already in the number pi. Somewhere.

    Can't be, because some universal constants are irrational, and therefore cannot be in another number.

    --
    const int one = 65536; (Silvermoon, Texture.cs)
    SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  9. Re:Where... by Trailer+Trash · · Score: 3, Funny

    Whats the file size in terms of Firefox Send?

    It it's too big, just compress it.

    And if that doesn't work, compress it again!

  10. Re: Where... by Bengie · · Score: 3, Funny

    Would you say that it's irrational to do so?