Forum Moderators: phranque
But that is beside the point. I thought CGI/Perl were standard expectations with most web hosts. Is this technology going out the door?
Anybody else with these problems?
One hopes that is never the case.
Another reason to not offer it is the operating system. If the host is offering ASP, he's probably on W2000 or NT. If so, many prewritten perl scripts don't run very well on Windows and the host got tired of explaining why.
I run Win 2000 and Perl and have some scripts that won't work, but others that do. It's really a host preference.
If you are looking for new hosts, I would be happy to talk to you.
CGI, IMHO, is just an expensive way of doing dynamic pages in the HTTP/1.0 days, where each HTTP request requires the operating system to fork a new process to handle that particular request. Forking is expensive - try to create 100's of processes in your own computer, be that Windows or Un*x based, and everything will start swapping like crazy. Moreover, we are talking about the Perl process here, and everyone knows that Perl is not the fastest scripting engine on this planet...
If you are standing from the hosting company's point of view, with the same hardware specification, instead of serving 200 concurrent users with in-process solutions like ASP and PHP, you can only serve 50 users with out-process CGI solution. Which one would you prefer?
I have to say that any host not offering perl is severely limiting their customer base especially since you can find cheap hosts who do offer it.
However, I think writing mod_perl application is different from writing a CGI application, even though it can be trivial to port an existing CGI app over. mod_perl also has its own problems, like memory leak in your perl app, etc. I am not about the current stage of Perl since I've not been coding in Perl for quite a while. I am a Python person :)
At the end, you are right about saying that hosting companies not providing Perl severely limit their customers. CGI's are easy to develop, deploy and run, and there are alot of existing CGI code out there, ready to be re-used. However, I think in the future, do expect to pay more for CGI service, compare with in-process solutions.