News for hackers. Stuff that matters.
Re:JNumPy: Writing high-performance C extensions for Python ... by TekMol on Wednesday August 10, 2022 @02:40AM (#32408467)
A 3x faster Python would make it about 2x slower than PHP.

That is way easier to digest than the current ~5x performance penalty for using it.

I would probably not consider PHP anymore if Python was 50% of its speed.

I would never consider anything else than Python or PHP for web projects. Developer time is more precious than CPU time.

Re:JNumPy: Writing high-performance C extensions for Python ... by peaky_blinder on Wednesday August 10, 2022 @04:04AM (#32409048)
You can have small developer time with other technologies too (JavaScript, Go, Elixir etc) and get some additional benefits compared to PHP. Honestly I don't see the reason to use PHP today unless you have to;

1. Maintain existing PHP codebase

2. Your team only knows PHP

Re:JNumPy: Writing high-performance C extensions for Python ... by TekMol on Wednesday August 10, 2022 @05:02AM (#32409417)
Except for speed, PHP has another awesome thing going for it: Statelessness.

You throw some PHP files on a server and have a working web application. As soon as you change a PHP file, the change is in effect on next reload of the page. You might be able to do the same in Python, but everybody in Python world is doing the long running thread approach, so you would be on uncharted territory.

Re:JNumPy: Writing high-performance C extensions for Python ... by rowanG077 on Wednesday August 10, 2022 @06:31AM (#32409886)
If you want to optimize for developer time you should look at statically typed languages with rich type systems that have little overhead.