Live data from Hacker News

Deep Dive into PHP 8's JIT

thephp.website

31–40 of 66 posts

Re: Deep Dive into PHP 8's JIT

#32
post #2

Tiny nitpick: the article describes JavaScript as an interpreted language without JIT when most major JS engines do have JIT optimisation. It’s difficult to make this call about any language with more than one implementation. But anyway, kudos to the PHP folks for yet another improvement. It’s been a long time since I used it but I’m continually impressed by how far it’s come. And it’s a useful test to how flexible a…

PHP's story really is something to remember as to show no matter how low you start, in a fertile soil, you can grow long and far.

Re: Deep Dive into PHP 8's JIT

#33
post #25

May be everyone on HN has Adblock/ PiHole on. But this Blog, a single page has 5 Google Ads in it. I dont mind one or two, top and bottom. But 5, right in the middle of every section.

I am out of advertising for a long time so I might not be aware but back in 2009s-10s, Adsense had a limit for 3 ads per page.

Is that not a thing anymore? Genuinely curious

Edit: Yes, some initial searches reveal that it's not a thing anymore.

Re: Deep Dive into PHP 8's JIT

#34
post #24
post #12

Earlier quoted context omitted.

Hack/HHVM no longer has a goal to be PHP compatible, but it looks pretty much the same. It does have a JIT: https://hhvm.com/blog/2027/faster-and-cheaper-the-evolution-...

Do we know anyone outside of Facebook uses Hack/HHVM in production?

Wikipedia runs on HHVM IIRC. https://hhvm.com/blog/7205/wikipedia-on-hhvm

Re: Deep Dive into PHP 8's JIT

#35

"PHP as fast as C" - People who are in php language development may die laughing reading this statement. Truth can be harsh, but people sometime overvalue to such an extent is hard to understand.

Well, most of php is just calling C functions. So if they add a JIT to that, it could be a believable claim. Why not?

Re: Deep Dive into PHP 8's JIT

#36
Unless we are speaking about Java before Java 1.2, it is definitely not interpreted, there are plenty of JIT and AOT implementations without any kind of interpretation step.

Since 25 years, time to learn that implementations and languages are not the same.

Re: Deep Dive into PHP 8's JIT

#37
post #25

May be everyone on HN has Adblock/ PiHole on. But this Blog, a single page has 5 Google Ads in it. I dont mind one or two, top and bottom. But 5, right in the middle of every section.

Blogs like these are the main reason to use ad blocks. And from their perspective: everyone using adblocks is the reason they need 5 ads on the site

Re: Deep Dive into PHP 8's JIT

#38
There is a small error in the text. When describing the opcache.jit setting it shows examples where the third flag is set to 5, eg 1255, but the table of possible values for the third flag, 'T - JIT trigger', goes from 0 to 4.

Re: Deep Dive into PHP 8's JIT

#39

"PHP as fast as C" - People who are in php language development may die laughing reading this statement. Truth can be harsh, but people sometime overvalue to such an extent is hard to understand.

The irony of "as fast as C" comparison, is that anyone doing 8 and 16 bit coding on home micros remembers how lousy C compilers used to be (like most other high level languages), to the point that any junior Assembly developer could easily write much better code.

Any language can eventually reach that point with enough money, time, and in C's case doing 200+ optimizations with unexpected results.

Post reply on HN