Live data from Hacker News

PHP 8.1.0

php.net

1–10 of 286 posts

Re: PHP 8.1.0

#3
I haven't written PHP since the 5.0 release but its amazing to see how it has grown over the years. Seems to have picked up a few nice things and is still enjoying usage even today.

Re: PHP 8.1.0

#4

I haven't written PHP in years but I get the feeling from this release that they are taking inspiration from TypeScript and JavaScript.

That's a funny thing to say, considering those took inspiration from other languages.

Re: PHP 8.1.0

#5

I haven't written PHP in years but I get the feeling from this release that they are taking inspiration from TypeScript and JavaScript.

Definitely some JS influence plus a little Swift and Java. PHP seems to be evolving faster than it has in years

Re: PHP 8.1.0

#7
Fibers "allow blocking and non-blocking implementations to share the same API"

That's an interesting contrast to Python where the need to use "value = await fn()" v.s. "value = fn()" depending on whether or not that function is awaitable causes all kinds of API design complexity, all the way up to the existence of tools like https://github.com/python-trio/unasync which can code-generate the non-async version of a library from the async version.

Re: PHP 8.1.0

#8

I haven't written PHP in years but I get the feeling from this release that they are taking inspiration from TypeScript and JavaScript.

Definitely some JS influence plus a little Swift and Java. PHP seems to be evolving faster than it has in years

It's actually becoming a problem keeping pace with PHP major updates

Re: PHP 8.1.0

#9

I haven't written PHP in years but I get the feeling from this release that they are taking inspiration from TypeScript and JavaScript.

Probably FB’s Hack and similar efforts were influences first, since they predate the rise of TS.

On the other hand, though, PHP’s always tended to be a borrowing language that accumulates features from elsewhere, so there probably is some TS influence.

Re: PHP 8.1.0

#10

I haven't written PHP in years but I get the feeling from this release that they are taking inspiration from TypeScript and JavaScript.

That's a funny thing to say, considering those took inspiration from other languages.

they all lifted stuff from ml/scheme in the 80s
Post reply on HN