News for hackers. Stuff that matters.
Re:Python behind the scenes #8: how Python integers work by mistrial9 on Tuesday February 09, 2021 @09:41PM (#26085209)
interesting to notice the text in the "comparisons to other implementations"

"How fast is CPython's implementation of bignums compared to other implementations? ... One important thing to know about these results is that the fastest programs use bignums provided by the GMP library and not the bignums provided by the language. If we exclude the programs that use GMP bindings, we get the following results... "

Re:Python behind the scenes #8: how Python integers work by igouy on Tuesday February 09, 2021 @10:56PM (#26085586)
Amazing!

If we don't want the programs that used the GMP library, then we can simply not show those results!

Except "Some languages rely on GMP to implement built-in bignums. They are marked with an asterisk (*)." — why are they shown?

(And why isn't there a C program + GMP measurement?)

Re:Python behind the scenes #8: how Python integers work by r4victor on Wednesday February 10, 2021 @12:16AM (#26085940)
I assumed the readers would follow the link to see the original results. GMP is undoubtedly the state-of-the-art of arbitrary-precision arithmetic. The point of this table was to compare bignum implementations provided by different languages, so programs that use GMP bindings are excluded. Probably it would make sense to include the best result that uses GMP, but I think GHC is quite representative of GMP's performance.

I'm not the first one who draw such a comparison. This article goes into some more detail: http://www.wilfred.me.uk/blog/2014/10/20/the-fastest-bigint-...

Re:Python behind the scenes #8: how Python integers work by igouy on Wednesday February 10, 2021 @12:32PM (#26092171)
Amazing that Wilfred Hughes and yourself took such a straightforward approach instead-of complaining that a lot of the programs used GMP. (Take that as praise.)