News for hackers. Stuff that matters.
Re:Show HN: FrankenPHP, an app server for PHP written in Go by timw4mail on Friday October 14, 2022 @12:48PM (#33205965)
So after looking at the slidedeck on the authors blog, I'm rather confused. How does FrankenPHP keep the code in memory if each request is in a separate memory space?
Re:Show HN: FrankenPHP, an app server for PHP written in Go by marcofatica on Friday October 14, 2022 @12:56PM (#33206052)
They're probably using PHP's built in opcache or something they rolled themselves

  OPcache improves PHP performance by storing precompiled script bytecode in shared memory
https://www.php.net/manual/en/intro.opcache.php
Re:Show HN: FrankenPHP, an app server for PHP written in Go by chx on Friday October 14, 2022 @01:08PM (#33206213)
Re:Show HN: FrankenPHP, an app server for PHP written in Go by kingkool68 on Friday October 14, 2022 @01:06PM (#33206188)
See Preloading which landed in PHP 7.4 https://stitcher.io/blog/preloading-in-php-74