php

Back Open Paginator
03.10.2025 10:01
dpc_ibuildings (@dpc_ibuildings@mastodon.social)

🎤 Max Fomichev spoke at The Dutch PHP Conference!

The talk 'Achieving High-Performance HTTP in PHP Without Threads: Simulating Parallel Requests' is now live!💪 🚀

🎥 Watch it here: phpconference.nl/session/achie





Show Original Post


03.10.2025 10:01
webdevcon (@webdevcon@mastodon.social)

🎤 Max Fomichev spoke at Webdevcon!

The talk 'Achieving High-Performance HTTP in PHP Without Threads: Simulating Parallel Requests' is now live!💪 🚀

🎥 Watch it here: webdevcon.nl/session/achieving





Show Original Post


03.10.2025 08:43
social (@social@eher.com.br)

Hoje vou comparar PHP stack rodando no Apache, Nginx com PHP-FPM e FrankenPHP.

Quem sabe misturar eles tbm.

#blambers #php




Show Original Post


03.10.2025 06:11
decompwlj (@decompwlj@mathstodon.xyz)

A022839: Beatty sequence for sqrt(5)

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A022839.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0228
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


03.10.2025 06:08
decompwlj (@decompwlj@mathstodon.xyz)

Decomposition into weight × level + jump of prime numbers in 3D, threejs - webGL (log(weight), log(level), log(jump))
➡️ decompwlj.com/3Dgraph/Prime_nu

#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


03.10.2025 06:06
decompwlj (@decompwlj@mathstodon.xyz)

A022566: Numbers that are not the sum of 4 nonnegative cubes

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A022566.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0225
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


03.10.2025 04:55
mobileatom (@mobileatom@flipboard.com)

Seven Real-World Examples of Using the Pipe Operator in PHP 8.5. #PHP

amitmerchant.com/seven-realwor

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




Show Original Post


03.10.2025 03:23
mobileatom (@mobileatom@flipboard.com)

PHP Dependency Management Using Composer. #PHP #composer

zend.com/blog/php-dependency-m

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




Show Original Post


03.10.2025 03:05
krapp (@krapp@krapp.masto.host)

Speaking of things that remind me of #PHP, I'm messing with my Mastodon importer and here is how I'm converting Youtube links to embeds (by rewriting them into shortcodes.) And it's literally just string replacement and prayer to the machine elves.

But... it works. When the importer isn't garbage I'll put it up on Codeberg.





Show Original Post


03.10.2025 02:10
huffingtonpost (@huffingtonpost@rss-mstdn.studiofreesia.com)

アンパンマンは最初、「あんパンを配るおじさん」だった。「カッコワルイ!」と子どもに罵倒されるシーンも【アンパンマンの日】
huffingtonpost.jp/entry/story_

#huffingtonpost #アートとカルチャー #知られざる世界 #アンパンマン #あんぱんまん #やなせたかし #php #shirarezarusekai #anpanman #yanasetakashi




Show Original Post


03.10.2025 00:56
k47 (@k47@margaras.k47.cz)

if you just happen to write a very basic jit compiler (for PHP, lets say) that generates simple binary that's calling into opcode handlers (to get rid of interpreter overhead), you are limited by throughput of call/ret instructions, which is not that good. venerable haswell (2013) can do one call register instruction every two cycles, icelake (2019) only one every three cycles.

that's important in our situation, when our jitted code look like this

movq	%rbp, %rdi
movq	%rbx, %rsi
call	*%r13
movq	%rax, %rbp
movq	%rdx, %rbx
movl	$420, %edx
movq	%rbp, %rdi
movq	%rbx, %rsi
call	*%r12
cmpq	$1, %rax
je	.L8

when it's nothing more than calls surrounded by sequences of zero latency moves, how fast you can hammer out calls, matters a lot.

it's actually quite funny. look at this:

function testfunc() { $i = 0; while ($i < 999999999) $i++; }
testfunc();

jitted code for that dummy loop, that stress-tests opcode handler calling, takes 7.5% more cycles on my relatively new tiger lake laptop than on prehistoric haswell desktop. but at the same time PHP 8.4.11 interpreter got 22% faster (in term of cycles) on newer hardware.

the perverse outcome of this is that a very basic jit that calls into handlers cannot ever beat tailcalling interpreter. on certain hardware anyway. you may still execute smaller number of instructions, but in larger number of cycles.

#PHP




Show Original Post


02.10.2025 22:27
dseguy (@dseguy@phpc.social)

It is not possible to cast any #PHP enum cases to (string) or (int) even when... they are backed!

That looks like a natural feature, though.

#phptip #phptrick

php-tips.readthedocs.io/en/lat





Show Original Post


1 ...397 398 399 400 401 402 403 404 405 406 407 ...525
UP