News for hackers. Stuff that matters.
Re:Performance comparison: counting words in Python, C/C++, ... by sk0g on Sunday July 24, 2022 @12:57PM (#32215304)
It's a single implementation, I wouldn't put too much on it. I can definitely write a C++ implementation that's slower and less optimised than most of those results, particularly if I was using Boost.

iPhone and Mac apps run pretty well in my experience, and Swift is definitely faster (in general) than Python at least. There were some serious considerations to port over ML libraries to Swift due to its ease of use, similar to Python, while providing much better execution speed.

Re:Performance comparison: counting words in Python, C/C++, ... by fractalb on Sunday July 24, 2022 @02:38PM (#32216325)
> There were some serious considerations to port over ML libraries to Swift due to its ease of use, similar to Python, while providing much better execution speed. Google abandoned that Swift work (if that's what you're referring to)
Re:Performance comparison: counting words in Python, C/C++, ... by PossiblyKyle on Sunday July 24, 2022 @06:03PM (#32218233)
Google and abandoning things, name a more iconic duo
Re:Performance comparison: counting words in Python, C/C++, ... by sk0g on Sunday July 24, 2022 @09:58PM (#32219789)
Sure, but the fact that it was a project at all does imply Swift had a not-insignificant speedup vs Python, meanwhile in these benchmarks Python is about2x the speed of Swift.