News for hackers. Stuff that matters.
Re:20M digits of pi in 1 minute using Julia by jiggawatts on Saturday March 04, 2023 @03:26AM (#35019236)
I just ran the same thing in Mathematica and I got 20 million digits in just over 7 seconds.

You can have "very high level functional programming" and 8x the speed of Julia in a mathematics-oriented language!

Re:20M digits of pi in 1 minute using Julia by Joel_Mckay on Saturday March 04, 2023 @04:20AM (#35019482)
Mathematica does several optimizations before execution, and as such can exploit a priori knowledge of many problems.

The danger of course is when Wolfram takes those assumptions into a room of mathematicians. It is controversial for all the wrong reasons. =)

Re:20M digits of pi in 1 minute using Julia by Max_Limelihood on Saturday March 04, 2023 @02:16PM (#35023590)
Julia already is a very high-level mathematics-oriented programming language, though.

The reason Mathematica is so much faster here is it’s using a different algorithm. When you compare using the same algorithm, Julia is 10-100x faster than Mathematica. https://julialang.org/benchmarks/