News for hackers. Stuff that matters.
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM by elktea on Friday September 25, 2020 @06:48AM (#24588502)
as far as I understand, PHP web applications don't benefit from a JIT that much. Each request is like running the entire application from scratch, which is why the opcache can help so much.
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM by Ambix on Friday September 25, 2020 @07:38AM (#24588736)
Modern PHP frameworks initialize "entire application" only once at startup and process each request really fast.

See the benchmarking charts there: https://github.com/gotzmann/comet

Re:Graalphp: An Efficient PHP Implementation Built on GraalVM by NationalPark on Friday September 25, 2020 @10:34AM (#24590204)
It's interesting to see this comment here. In the usual quarterly arguing about PHP posts, the CGI-style "statelessness" is often brought up as a positive feature that differentiates PHP from more "modern" web app stacks.
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM by tinus_hn on Friday September 25, 2020 @02:54PM (#24592958)
It is possible to get the best of both worlds if you support both, easy development and performant deployment.
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM by ldeangelis on Friday September 25, 2020 @10:49AM (#24590377)
The performance seems pretty impressive! I'd like to see comet being added to techempower's benchmark, to see how it competes against other frameworks.
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM by tyingq on Friday September 25, 2020 @09:32AM (#24589493)
Sort of. It's not a new process invocation, but it is a new interpreter. Most high volume set ups cache user space startup state in Redis or Apcu. And, as you said, the built in opcache caches the commonly used code.
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM by jolux on Friday September 25, 2020 @06:50AM (#24588509)
I wonder why Facebook built HipHop and HHVM and PHP 8 is getting a JIT then.
Re:Graalphp: An Efficient PHP Implementation Built on GraalVM by tyingq on Friday September 25, 2020 @09:40AM (#24589573)
The PHP team is pretty transparent about the JIT not really helping much with the sort of things people use PHP for. It just opens up using PHP for more CPU intensive stuff that you would have called out to a C library for.