That would be a step into the right direction.
6 more 30% improvements and it is on par with PHP.
Microsoft is misallocating its resources. The scientific ecosystem should be ported to .NET, with first class support for F#.
Good news: there are more than two programming languages!
But seriously, what situation are you in where your only choices are Python and PHP?
That could actually work out nicely with the right libraries, just haven't yet heard of anyone doing that.
I think Python is inherently difficult to optimize because it allows some dynamic trickery that PHP does not. Additionally being large and complex does not help. You can't really pull an LuaJit equivalent. There sure are still many quick wins to be made for Python performance but not sure if it will ever compete with PHP/Lua/Julia and others on the performance front.
Not OP but I wish PHP was usable for scientific computing.
If I had better C/Rust/PHP internals insane macro skills I would integrate a dataframe library (Pola.rs?) into PHP to give us the basics for manipulating data.
Plenty more to add after that for matrix multiplication and the rest but I haven't thought that far ahead!
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.
1. Maintain existing PHP codebase
2. Your team only knows PHP
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.
For the love of god. Make it as fast as PHP.
My biggest pain point in computer science is that for every project I have to decide to either cope with PHP's butt-ugly namespace system or with Python's masochistic slowness.
Please, Python developers. Take a closer look at how PHP achieves its speed, hold all other development and copy whatever they do!
The result would be heaven.