News for hackers. Stuff that matters.
Re:PHP 8 by pbowyer on Thursday November 26, 2020 @12:51PM (#25222114)
WordPress core team members and users are welcome to get involved in PHP development and providing feedback on proposals.

They are notably absent, and so people who write modern PHP - or wish PHP was a different language - are the ones influencing language development.

Re:PHP 8 by chipotle_coyote on Thursday November 26, 2020 @02:25PM (#25222862)
> And so people who ... wish PHP was a different language are the ones influencing language development.

That's definitely been my impression. I used to be a professional PHP developer, still use it occasionally for personal projects, and appreciate the language, warts and all, even if I can't truly say I love* it -- but I'm only half-joking when I quip that PHP has evolved from its roots as a cargo cult version of Perl into a cargo cult version of Java.

Re:PHP 8 by adimitrov on Thursday November 26, 2020 @03:25PM (#25223273)
> - but I'm only half-joking when I quip that PHP has evolved from its roots as a cargo cult version of Perl into a cargo cult version of Java.

It's a joke in so far as it is funny - but it's absolutely correct. When you only look at the language... When looking at the VM, Java has an absolutely world class VM, with great engineering and decades worth of research poured into it.

PHP has... no such thing.

Re:PHP 8 by chipotle_coyote on Friday November 27, 2020 @02:06AM (#25226190)
I was definitely talking about the syntax. I'm not a huge fan of Java (as I suppose the joke already demonstrated), but I also notice how many places start out with PHP or Ruby or Python and end up moving to, if not Java, a language running on the JVM. So I still appreciate it. :)

To give PHP its due, it can be very fast -- although the more you use it "the modern, right way," the slower it seems to get. I can't help but wonder how much of that is an impedance mismatch between "your program starts over from scratch with every HTTP request" and "structure your program so that by the time every class is instantiated and interface is implemented, ten thousand lines of code have been processed with each request." No matter how great its optimization and caching may be, a Laravel or Symfony app just has a whole lot of overhead relative to any framework in another language that doesn't have PHP's zero-state approach.

Re:PHP 8 by mmerlin on Friday November 27, 2020 @05:55AM (#25227546)
"by the time every class is instantiated and interface is implemented, ten thousand lines of code have been processed with each request."

Haha so true... the first time I stepped through a running Laravel app line-by-line in debug mode in order to understand it better, I was worried my F11 key was going to wear out ;)

Re:PHP 8 by slifin on Thursday November 26, 2020 @08:09PM (#25224752)
PHP has an initial implementation on GraalVM

That is completely ignored by the community

Re:PHP 8 by cutler on Thursday November 26, 2020 @04:05PM (#25223519)
A world class VM tied to a dinosaur language in which you still have to escape regex metacharacters.
Re:PHP 8 by chipotle_coyote on Friday November 27, 2020 @02:18AM (#25226245)
The JVM is not tied to Java, which I think was a large part of adimitrov's observation. Kotlin, Scala and Clojure immediately come to mind. JRuby is also a fairly popular platform for Ruby. There's actually a huge list of other languages that run on the JVM, though.
Re:PHP 8 by The_rationalist on Thursday November 26, 2020 @05:20PM (#25223945)
What are you talking about? Java has raw strings (autoescaping) https://openjdk.java.net/jeps/378 Moreover Kotlin allows to have a state of the art language in a state of the art vm
Re:PHP 8 by im3w1l on Thursday November 26, 2020 @05:17PM (#25223920)
Having no stake in this, I think that's a mistaken way of going about things. Wordpress is PHP's killer app. If people aren't getting involved, php team should consider outreach.
Re:PHP 8 by pbowyer on Friday November 27, 2020 @02:54AM (#25226417)
Part of the problem is PHP has no team. It's determined to be a meritocratic loose organisation of individuals, and so there's no entity to do outreach.

It's not my favoured governance model, but it is what it is.