Hacker Newsnew | past | comments | ask | show | jobs | submit | moebrowne's commentslogin

I'd love to however this requires touching the key for every git push to GitHub, GitLab and Bitbucket because neither support `no-touch-required` keys.

> What does it cost you to write that explicitly? Like, 10 extra characters?

The given example is 26 additional characters, and that's without any type declarations. Also calling closures isn't free, there is a small performance penalty.

    fn ($version) => version_compare($version, '8.6', '>=')
vs

    version_compare(?, '8.6', '>=')

> Pretty much the same for DocComments for params. Uh... why?

The reason is that docblocks are used to attach meta data to code, like generics.

> SortDirection is literally just a built-in enum, not a huge deal. Libraries will still use their own implementations for a long time just to preserve back-compatibility.

Symfony at least conditionally defines a SortDirection enum in the global namespace: https://github.com/symfony/polyfill-php86/blob/1.x/Resources...


> once you have to load Wordpress, Drupal, or even worse, Laravel, then it's no longer cheap and quick

The frameworks aren't slow: https://tideways.com/profiler/blog/php-benchmarks-8.6-vs-8.5...


From your own source, a basic demo with Laravel peaks at 95 requests/s/core. It's worse with Wordpress at less than 20 r/s/core. That's slow.

The last round of TechEmpower web benchmarks computed the framework overhead. Depending on the task, the performance of Laravel was 5% to 20% of the native PHP code, i.e. 5 to 20 times slower. Source : https://www.techempower.com/benchmarks/#section=data-r23&tes...


These benchmarks are garbage, the last round was nearly 2 years ago, there's no explaination of where the "performance scores" come from and the GitHub repo is archived.

The TideWays benchmark doesn't show the peak, it shows the rps for 15 sustained users.


> The TideWays benchmark doesn't show the peak, it shows the rps for 15 sustained users.

Yes. And it's also not entirely representative of a production set-up. As an example Vegata is running on the same machine as PHP and the same is true for the MySQL server used by WordPress and Laravel. The tests are also running against a - except for worker count - stock installation to possibly highlight improvements by better INI defaults in newer PHP versions. This is all good enough to compare the different PHP versions against each other, since they are all equally affected by this. But it is thus by no means representative of what you can get out of a properly tuned production setup.

Disclosure: I set up the benchmark and performed the measurements. PS: It's Tideways, lowercase 'w'.


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.

The benchmarks show PHP itself isn't slow, but running WP or Laravel adds that initial load cost you mentioned. If your goal is cheap and quick without patching plugins, Hatamoto CMS uses just one Go binary plus Postgres so there is no framework overhead to start with.

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.



”These releases are part of PHP’s regular four-week release cycle and will address security”

> The PHP security team announces upcoming security releases scheduled for Thursday, 19 November 2026, between 14:00 and 14:30 UTC.


> _and_ without good reason.

_and_ you can still carry one if it is shorter than 3 inches doesn't lock into place.


> Except for goats, solar works with most animals

Why not goats?


I imagine they jump on top of the panels

Then just innstall the panels on a pole taller than goats can jump. :)

Goats have different dietary requirements than sheep. They can eat just grass but they really need to eat bushes and low-hanging tree leaves etc.

They eat the wiring

The sheep replace the expensive manual labour required to mow around the solar panels. This makes the proposition more attractive, and therefore more likely to be adopted.

AI tells me:

>The carbon impact of lawn mowing is significant; one hour of gas-powered lawn mower use produces 11 times the emissions of driving the average new car for an hour, resulting in approximately 563 pounds of CO2 annually for an average lawn.

If we are serious about "ecological gains", shouldn't we compare this with the overall negative impact of sheep grazing (e.g. https://ourworldindata.org/is-organic-farming-better-for-the... )? Why only consider biodiversity (which certainly is important)?


> AI tells me:

Please don't do this. Quote a reputable source, not some software known for ~~hallucinating~~ bullshiting.


> 99% uptime for email means 3.5 days/ year no email

Depends on how it appears, if it was one or several large chunks that is much more disruptive than minutes per day. 3.5 days/year is equivalent to less than 15 minutes/day.

It sucks no matter how you slice it, but the severity/impact depends on more than the aggregate downtime.


> All YubiKeys have an operational temperature range between 0°C to 40°C (32°F to 104°F).

> All YubiKeys have a storage temperature range between -20°C to 85°C (-4°F to 185°F)

https://docs.yubico.com/hardware/yubikey/datasheet/_static/Y...


Given how incredibly important they can be, having an operating range that can be exceeded by ambient temperatures in some (very populated!) regions of the world is a design flaw.

iPhones are only designed to work from 0-35C, which is more narrow than the yubikeys, and way more important and way more widely used, so I think it will probably be okay.

iPhones actually shut down to protect themselves. They do not get thermally destroyed permanently and irrecoverably when operated at above 35°C.

my iPhone is nowhere near as important as my yubikeys. Without my phone, I can still access my computers and servers and do my banking etc. Without my yubikeys this is going to be a real problem.

Are iphones reported to melt into a goop that detroys surrounding electronics in a ~100 degree room like the yubikey apparently is though?

> > All YubiKeys have a storage temperature range between -20°C to 85°C (-4°F to 185°F)

It doesn’t sound like the yubikey is designed to melt into a goop in ~100 degree room either?



> All YubiKeys have an operational temperature range between 0°C to 40°C (32°F to 104°F).

Maybe they should work on that, otherwise Yubikeys won't be operating during the summer soon...


Also, winter.

So, I can't use it outside about a quarter of the year? Terrible

I don't believe you are using a YubiKey outside when the temperature is beyond those ranges.

I used to have a 2FA key for a job and I would take my laptop out onto my deck so I could grill food while working, so I absolutely did.

EDIT: I see from your profile you are from the UK. Where I live it is absolutely normal to pop out to grill up some steaks in the winter, or throw some ribs on when it's hot outside so they're nice and tender by the evening for everyone to enjoy on a summer night.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: