News for hackers. Stuff that matters.
Re:Why Python keeps growing, explained by roflyear on Friday March 03, 2023 @08:35AM (#35009382)
Not for everything. There are plenty of Python operations that are not 10x slower than c.
Re:Why Python keeps growing, explained by dagw on Friday March 03, 2023 @08:40AM (#35009455)
That is true, but there are relatively few real world applications that consist of only those operations. In the example I mentioned below, there where actually some parts of my python rewrite that ended up faster than the original C++ code, but once everything was strung together into a complete application those parts where swamped by the slow parts.
Re:Why Python keeps growing, explained by ghostwriter on Friday March 03, 2023 @09:25AM (#35009993)
Most of the time these are arithmetic tight loops that require optimisations, and it's easy to extract those into separate compiled cython modules without losing overal cohesion within the same Python ecosystem.