News for hackers. Stuff that matters.
Re:How come PHP seems so much faster than Rust? by javagram on Saturday September 28, 2019 @10:36PM (#21104649)
ASP and ColdFusion both required license fees at the time I believe (asp the Windows server license and CF of course the CF license)

CGI just would run any type of script. Originally that was typically Perl but PHP surpassed Perl for a variety of reasons. PHP could be run either through CGI or through mod_php in Apache. There was also a mod_perl I believe and a few others but php is what web hosts typically installed in the early 2000s.

Re:How come PHP seems so much faster than Rust? by im3w1l on Sunday September 29, 2019 @08:57AM (#21106766)
Why did php beat perl?
Re:How come PHP seems so much faster than Rust? by klodolph on Sunday September 29, 2019 @12:36PM (#21108004)
Someone with better knowledge might step in here.

From https://perl.apache.org/about/history.html

> "PHP was also around already, and was an embarrassing witness to Perl's greatest weakness for server-side programming: that embedding Perl was a pain. Although the hooks were there for embedding Perl, they were both undocumented and buggy.

My other take on it is that PHP is like TypeScript, in that the path to adopting PHP from HTML is simple enough—just rename your HTML files with a .php suffix and you can add dynamic elements—or not. Just like how you can rename your JavaScript code with a .ts suffix and add types—or not.

Personally, I remember writing a few Perl CGI scripts. But I ended up using PHP for any quick-and-dirty dynamic stuff.

Re:How come PHP seems so much faster than Rust? by Kye on Sunday September 29, 2019 @11:55AM (#21107732)
The web. Making a typical language output HTML required a lot of hoop-jumping or inventing a web framework in a time before Django and Rails. PHP was its own web framework.
Re:How come PHP seems so much faster than Rust? by horizone on Sunday September 29, 2019 @09:28AM (#21106910)
Personally, I switched from Perl to PHP around 2002 (I could be wrong with the year) as I wanted to move from flat file dbs to MySQL. I wouldn't say that it beat Perl, it was just made web development more accessible. I still wrote in Perl after that, but for server side scripting (processing, cleanup etc).
Re:How come PHP seems so much faster than Rust? by wvenable on Sunday September 29, 2019 @02:15PM (#21108654)
Perl was just as inscrutable then as it is now.
Re:How come PHP seems so much faster than Rust? by tjpnz on Sunday September 29, 2019 @11:19AM (#21107522)
Easy to write and easy to deploy. But that was a double edged sword.