3 ms·
I guess it depends on what your bar is. I'm comparing it against Java/C# primarily. If you compare it to Python then yeah, it looks like a pretty fast moving la
by jpgvm 5y ago
I guess it depends on what your bar is. I'm comparing it against Java/C# primarily. If you compare it to Python then yeah, it looks like a pretty fast moving language, I just don't think that is a relevant comparison when your choices are much broader than just Python or PHP.
PHP 8 introduced a lot of great stuff but to me it's just about playing catch up to things like Kotlin, i.e null safe operator, etc. They made the runtime a lot faster with the JIT and the Opcache but it still pales in comparison to the JVM or CLR.
Type system is still not a real type system, it's more analogous to Typescript. I get why, it's because you can't turn around and make PHP backwards incompatible, but that is also why it can't ever be in the same class.
Meanwhile in JVM land you have things in progress like Loom which present a fundamental change in how highly concurrent applications can be built. Since Java 9 huge things landed like Jigsaw + ZGC and Shenandoah which are cutting edge GCs, not cutting edge for Java but in language-tech overall, i.e it's Java that sets the pace for what a modern VM looks like and that has been the case for some time now. v8 was perhaps more impressive for a short while until InvokeDynamic came along and escape analysis got better but these days JVM is pretty squarely in the lead with CLR closely following.
PHP won't ever be on the cutting edge and tbh, that is probably fine. Like I said, C isn't cutting edge and it's just as applicable as ever.
The difference between that and what people in this thread are arguing is they are saying things like "PHP is modern and generally good!" which just isn't true. It's improving and that is great, but modern and generally good it is not.
Doesn't stop it from being useful in the places it excels but as a general purpose language there are just better options.
- throwaway2016a 5y agoI appreciate the detailed response to my question. But... > as a general purpose language there are just better options I don't think PHP ever pretends or tries to be a general purpose language or cutting edge. But I think to say it hasn't evolved is a bit misleading. PHP has always been a domain specific language. It is designed to do one thing well: stateless request oriented applications with strong ability to scale horizontally. And for that, it does pretty well.