News for hackers. Stuff that matters.
Re:Faster Python with Guido van Rossum by igouy on Thursday October 07, 2021 @01:11PM (#28789264)
> Did you look at the source of the programs…

Did you? :-)

That Node pidigits program also uses GMP.

Besides those 2, did you notice other JS programs not 50x faster than the corresponding Python programs ?

Re:Faster Python with Guido van Rossum by ithrow on Thursday October 07, 2021 @02:46PM (#28790527)
There are 2 programs there that are 50x faster in JS, other 40x, other 35x, other 16x, a couple 7x, not sure what are you arguing about.
Re:Faster Python with Guido van Rossum by igouy on Thursday October 07, 2021 @03:02PM (#28790727)
The importance of looking at more than one measurement.
Re:Faster Python with Guido van Rossum by Mikeb85 on Thursday October 07, 2021 @02:45PM (#28790516)
I never made the assertion JS is 50x faster...

But everyone knows it is significantly faster than Python. Probably at least a few times for pure JS vs. pure Python programs. Not that it matters, Python is basically glue to run mostly C and C++ programs.

Re:Faster Python with Guido van Rossum by igouy on Thursday October 07, 2021 @03:01PM (#28790706)
Given that you say "basically glue" why the previous surprise about "basically using C types and GMP" ?
Re:Faster Python with Guido van Rossum by Mikeb85 on Thursday October 07, 2021 @03:20PM (#28790925)
Because it's obviously not the idiomatic way to use Python. No one is going to bother writing a program that way in Python, they'd just write it in C or C++ then link it.
Re:Faster Python with Guido van Rossum by igouy on Thursday October 07, 2021 @06:06PM (#28792699)
Sorry, I gave up thinking I knew what people would or wouldn't bother doing a long time ago.