News for hackers. Stuff that matters.
Re:How come PHP seems so much faster than Rust? by winrid on Saturday September 28, 2019 @11:31PM (#21104866)
How so? As someone that's set them all up - with Apache the setup for mod_perl, php, and cgi are like the same right - they are all essentially cgi.
Re:How come PHP seems so much faster than Rust? by cutler on Sunday September 29, 2019 @01:46AM (#21105345)
No, they are not the same as CGI. You can run PHP as a CGI, as many cheap hosts do, but for performance PHP is run as either Apache mod_php or php-fpm with Nginx. Mod_perl is not CGI and requires much more discipline to prevent shared memory leaks. Mod_perl allows content negotiation which CGI does not.
Re:How come PHP seems so much faster than Rust? by shantly on Sunday September 29, 2019 @12:41AM (#21105116)
I remember it as a worse Perl, but with a bunch more web-batteries included. It's the latter that got me interested, way back in the day. Deployment story wasn't that different, aside from that cheap hosts were more likely to let you run PHP than Perl.