php

Back Open Paginator
30.09.2025 05:44
decompwlj (@decompwlj@mathstodon.xyz)

A019546: Primes whose digits are primes; primes having only {2, 3, 5, 7} as digits

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A019546.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0195
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


30.09.2025 03:41
SymfonyStation (@SymfonyStation@drupal.community)

The Dangers of Dynamic Method Calls in PHP. #PHP
ashallendesign.co.uk/blog/php-




Show Original Post


30.09.2025 03:40
mobileatom (@mobileatom@flipboard.com)

The Dangers of Dynamic Method Calls in PHP. #PHP

ashallendesign.co.uk/blog/php-

Posted into THE FEDIVERSE VS. CORPORATE SOCIAL MEDIA @the-fediverse-vs-corporate-social-media-mobileatom




Show Original Post


30.09.2025 03:11
cabbey (@cabbey@phpc.social)

ok fellow elePHPant herders, how would you go about finding classes in a huge tree of sources that have *compile* failures? `php -l` passes, phpstan does not report a problem, phpcs doesn't flag the issue.

Backstory: I wrote a rector ruleset that does a huge amount of refactoring work, including a few things that add a trait to a class. One of those classes happened to have an incompatible parameter by the same name as one in the trait. Boom fatal compile error. Now I want to find others. #php




Show Original Post


29.09.2025 23:44
Crell (@Crell@phpc.social)

Functional programming isn't just for Haskell developers. It's for #PHP developers, too. "Thinking Functionally in PHP" is available from LeanPub.

leanpub.com/thinking-functiona




Show Original Post


29.09.2025 23:39
mobileatom (@mobileatom@flipboard.com)

Introducing the Friend attribute (example 1) #PHP

daveliddament.co.uk/articles/i

Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom




Show Original Post


29.09.2025 22:37
mobileatom (@mobileatom@flipboard.com)

Proposal: an Interactive Mode for phpcbf. #PHP

alex.kirk.at/2025/09/29/propos

Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom




Show Original Post


29.09.2025 19:39
k47 (@k47@margaras.k47.cz)

if you want to write PHP from scratch, the first you have decide how you are going to manage memory

PHP zend engine uses refcounting with auxiliary traging GC (this one https://web.archive.org/web/20130525112405/http://researcher.watson.ibm.com/researcher/files/us-bacon/Bacon01Concurrent.pdf)

refcounting is a reasonable choice but it has surprisingly high cost. every time we write to a variable, field or array, we need to twiddle refcounts. each update is quite cheap, but we have to do it everywhere and it adds up.

if we are not bound by the past, we are limited only by our ambitions. we can have generational copying GC with proper bump allocation. why not, right? instead refcount updates we would need store barriers to track pointers from old generation to young generation. and we would need some memory overhead to amortize GC runs. still, it might be beneficial (as shown here in case of ruby https://blog.peterzhu.ca/assets/ismm_2025.pdf)

but this is PHP and there's always something that make alternatives annoying. in this case its arrays.

because arrays are a value types, when they get assigned to a variable or passed as an argument to a function, they need to be, at the semantic level, copied. PHP zend engine tries to eliminate as much work as possible, and when this copy has to occur, it just increments refcount. when we later wants to modify local copy, PHP checks refcount. if RC = 1, there's only one owner and we can modify it in place, no matter how it gets to us, if RC > 1 we need to make a copy and then modify it.

so, in order to make this key optimization work, we would need to do refcounting anyways, at least for arrays, even in new and shiny tracing GC. which is not optimal.

the fact that arrays and strings are values is really annoying. refcounting as employed by PHP runtime right now is not the only refcounting scheme. others try to delay updates and coalesce multiple changes. as result of that, RC might not be always precise and may undercount. and this is problem when we need to correctly distinguish case of RC = 1 and RC > 1.

so refcounting it is.

#PHP




Show Original Post


29.09.2025 18:18
dabiddo (@dabiddo@mstdn.io)

Nice ... #php #laravel

Laravel facades vs class aliases

svenluijten.com/posts/laravel-




Show Original Post


29.09.2025 17:01
jbz (@jbz@indieweb.social)

PHP: a fractal of bad design / eevee (2012)

「 Virtually every feature in PHP is broken somehow. The language, the framework, the ecosystem, are all just bad. And I can’t even point out any single damning thing, because the damage is so systemic. Every time I try to compile a list of PHP gripes, I get stuck in this depth-first search discovering more and more appalling trivia. (Hence, fractal.) 」

eev.ee/blog/2012/04/09/php-a-f

#php #programming




Show Original Post


29.09.2025 16:38
SensioLabsOfficial (@SensioLabsOfficial@mastodon.social)

📢 SensioLabs recrute pour agrandir son équipe

Rejoignez une équipe d’experts passionnés de & en tant que lead développeur, architecte, expert et formateur (H/F)

Postulez ici 👉 tinyurl.com/vdjdfbum





Show Original Post


29.09.2025 15:30
filament (@filament@phpc.social)

✨ Filament v4.1 is here!

This release marks two months of great progress since v4 was marked as stable, including many bug fixes, new features, and community plugin support for v4.

Read about new features and community progress here: filamentphp.com/content/danhar

❤️ Please consider sponsoring the framework on GitHub, every contribution helps us dedicate time to building new features, fixing bugs, and supporting users: github.com/sponsors/danharrin

#filamentphp #laravel #php




Show Original Post


1 ...405 406 407 408 409 410 411 412 413 414 415 ...525
UP