Better HN
topnewbestaskshowjobs
Log inSign up

beberlei

1,017 karma · joined Jan 14, 2012 (14y ago) · 296 submissions

Submissions

comment 4d ago · link · parent

This is with just 15 concurrent users, we (one author of the benchmark) did not want to measure peak performance, just the relative performance between PHP versions.

comment 4d ago · link · parent

Symfony with 35ms and Wordpress with 50ms in the 99th percentile is not significant though if we are talking about serving a web page with content to consume.

We have a Symfony REST API responding in 20ms for 30-40k requests per minute.

Yes there are use-cases outside this scale where Go (or others) is better suited from the start, but its not universal deal breaker.

comment 5d ago · link · parent

Yes you need to combine it with Fiber's API but it works, but cumbersome, especially integrating with existing libraries and things that are for the shared nothing world.

Most code in PHP would easily run in a thread, but working in Fibers requiring a complete rewrite.

comment 5d ago · link · parent

Unsure how that is a useful comment where there is literally an nginx RCE out released yesterday that allows the same thing.

comment 5d ago · link · parent

You say this and there are nginx, Java and Ruby RCE vulnerabilities in the news this week, so I am unsure you are winning points with the 1990s trope that PHP is more insecure than other projects or languages.

comment 5d ago · link · parent

There are two separate teams handling both, the Release Managers and website team do PHP 8.6 and the Security team works on the vulnerability. :)

comment 5d ago · link · parent

Most excited about the ZTS overhead reduction. If you are unfamiliar PHP can run either with or without thread safety (think using pthreads in PHP requests).

If the overhead can be further reduced (and people have ideas) then it could be that we only need ZTS mode anymore in the future and that can open up one avenue for PHP to get native async support similar to the existing parallel extension: https://github.com/krakjoe/parallel

More "hands-on" is the stream error handling improvements. This greatly improves the old file stream APIs to now allow throwing exceptions instead of returning false on errors:

  $context = stream_context_create([
    'stream' => [
        'error_mode' => StreamErrorMode::Exception,
    ],
  ]);

  try {
    $config = file_get_contents('/etc/app/config.json', context: $context);
  } catch (StreamException $e) {
    // handle error
  }

comment 2w ago · link · parent

Power, natural gas, gasoline, water, mobile contracts, railways, internet access are probably better analogies. They have tendencies to (local) monopolies but also a lot of precedent and knowledge on how to regulate and break them, how to introduce competition.

comment 2w ago · link · parent

Hosted or even cloud?

comment 1mo ago · link · parent

Php core security team decided who gets to know. The patch was huge it took that long.

See PHP foundation blog post on their timeline

comment 1mo ago · link · parent

It was leaked

comment 2mo ago · link · parent

Maybe you bring the hardware from any hoster, and they manage the service.

comment 6mo ago · link · parent

only the mainstream media knows about this? Quite odd to qualify media this way here, when most of all media uses this mechanism. We also forgot politicians who are experts in this field.

comment 10mo ago · link · parent

I believe if you go down the rabbit hole of "mood playlists" and spotify created playlists, then you'll get a lot of tracks that they don't need to pay royalties for and that could probably include AI generated music.

If you are explictitly looking for music by specific artists, then you get their music obviously.

comment 10mo ago · link · parent

While I believe you, its an argument that artists bring forward since the beginning of art, so even many hundred years before the internet on average humankind did not value this work.

comment 1y ago · link · parent

Its odd at first, but springs from economic principles, mainly sunk cost fallacy.

If you invest 2 days of work and did not find the root cause of a bug, then you have the human desire to keep investing more work, because you already invested so much work. At that point however its best to re-evaluate and do something different instead, because it might have a bigger impact.

Likelihood that after 2 days of not finding the problem, you wont find it after another 2 days is higher than starting over with another bug that on average you find the problem earlier.

comment 1y ago · link · parent

customers also got value out of pets.com selling them products for below cost.

comment 1y ago · link · parent

yes, lets charge the EU customers 10% more for the price of viewing an ad.

comment 1y ago · link · parent

Came here to say the same thing, confused how a website like this can be made, the people behind it must have not understood how the EU works.

If Germany is listed as "Undecided" then this is in the Council. The 96 MPs are from a wide spectrum of parties and most of them will already be either for, or against this.

comment 1y ago · link · parent

My hope is that the parallel extension will get more widespread adoption when its integrated into FrankenPHP: https://github.com/krakjoe/parallel

comment 1y ago · link · parent

We have something similar in Central Europe, covering Germany, Austria, Switzerland, Benelux and Italy for many years now. The tolino https://mytolino.com/ works similar that bookstores get a cut of the sales.

comment 2y ago · link · parent

Just to set the record straight, Nikita is not the creator of the PHP JIT code, that is Dmitry and he is employed by Zend owned by Perforce working mostly on this.

comment 2y ago · link · parent

Yes you can see the list on the opencollective page here https://opencollective.com/foundation

comment 2y ago · link · parent

Its just one financial host that is closing down. Most open source is on a different host called "Open SOURCE Collective". The platform still stays and there is no need to migrate to something else for open source projects.

comment 2y ago · link · parent

Its just one financial host that is closing down. Most open source is on a different host called "Open SOURCE Collective". The platform still stays and there is no need to migrate to something else for open source projects.

comment 3y ago · link · parent

Individuals cannot sue for GDPR violations. They van only raise their concerns to data protection agencies and these can sue, bur they can also decide to ignore.

comment 3y ago · link · parent

This is due to how PHP and Sentry for PHP works. It sends out the data after every request to Sentry backend via HTTP. Depending on your network path to their servers, I have seen this take 10-100ms. This is different on how other APMs work for PHP, for example Tideways that I work on, or DataDog/NewRelic/Blackfire. They have a local agent running that accepts the data over socket/tcpip before sending it to the backend for processing.

The workaround in case of Sentry is to deploy the Sentry Relay in your network and send all data there.

comment 3y ago · link · parent

You can design a citycenter to primarily benefit bike traffic and then it will be consistently faster than car travel

comment 3y ago · link · parent

Thats not what parent is saying. They are saying todays value of the known portfolio is not what is on the books due to interest and risk discounting the future value at which the bonds mature.

Either you sell everything now at the discounted value, leading to loss in deposits. Or you wait 10 years and pay everyone back their deposit then. Given current inflation a dollar now is only worth 50 cent in 10 years.

12345
10