A019546: Primes whose digits are primes; primes having only {2, 3, 5, 7} as digits
3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/A019546.html
3D graph Gen, threejs animation ➡️ https://decompwlj.com/3DgraphGen/A019546.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/A019546.html
#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

The Dangers of Dynamic Method Calls in PHP. #PHP
https://ashallendesign.co.uk/blog/php-dynamic-method-call-dangers
The Dangers of Dynamic Method Calls in PHP. #PHP
Posted into THE FEDIVERSE VS. CORPORATE SOCIAL MEDIA @the-fediverse-vs-corporate-social-media-mobileatom
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
Functional programming isn't just for Haskell developers. It's for #PHP developers, too. "Thinking Functionally in PHP" is available from LeanPub.
https://leanpub.com/thinking-functionally-in-php
Introducing the Friend attribute (example 1) #PHP
Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom
Proposal: an Interactive Mode for phpcbf. #PHP
Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom
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.
Laravel facades vs class aliases
https://svenluijten.com/posts/laravel-facades-vs-class-aliases
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.) 」
https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
📢 SensioLabs recrute pour agrandir son équipe
Rejoignez une équipe d’experts passionnés de #Symfony & #PHP en tant que lead développeur, architecte, expert et formateur (H/F)
Postulez ici 👉 https://tinyurl.com/vdjdfbum

✨ 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: https://filamentphp.com/content/danharrin-filament-v4-1
❤️ Please consider sponsoring the framework on GitHub, every contribution helps us dedicate time to building new features, fixing bugs, and supporting users: https://github.com/sponsors/danharrin