 |
|
 |
What are the advantages of this library with regards to Perl ?
Perl does all of this in a very powerful way....
Jonathan de Halleux, Belgium.
|
|
|
|
 |
|
 |
AFAIK, Perl is interpreted and therefore slow. In C/C++ you compile your CGI program (it is not a good idea to call it a "script" anymore), and it will execute much faster.
Although, the truth is that CGI, compiled or not, is suitable only for small traffic Web servers. It creates a new process for each client request, which is too much overhead.
I vote pro drink
|
|
|
|
 |
|
 |
Although, the truth is that CGI, compiled or not, is suitable only for small traffic Web servers
I'm sure you alreay know this, but CGI limitations can be overcome with the use of FastCGI, which doesn't suffer from the "new process per request" syndrome while retaining much of the CGI flavor (converting from CGI to FastCGI is usually trivial.)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
 |
|
 |
Yes, I've heard about FastCGI, but I think of it more as of a separate technology, than as an extesion to CGI.
I vote pro drink
|
|
|
|
 |
|
 |
Actually FastCGI manages the processes quite will, especially when database connection is involved.
|
|
|
|
 |
|
 |
That's funny. slashdot.org runs CGI and it's a VERY high traffic web site.
Todd Smith
CPUA 0x007 ... shaken not stirred
|
|
|
|
 |
|
 |
Todd Smith wrote:
That's funny. slashdot.org runs CGI and it's a VERY high traffic web site
Really? They must have some "monster" hardware. However, CGI still wastes too much resources IMHO.
I vote pro drink
|
|
|
|
 |
|
 |
Two words, mod_perl (er, um.. one word?). mod_perl is an apache module that enables perl to run in the same process as the web server itself. You still create your scripts the same way, but you tell apache about them. After the first time the script is run, it is compiled, cached, and fast as heck. That is how slashdot is able to handle the demand (a good amount of hardward helps too, but that's true for any web application).
As far as whether C++ is faster... well I'm not into starting holy wars. All I know is that perl is quick and easy to use and it scales very well. I think that (in comparison) the only thing you get from C++ is scalability. Quick and easy should never be used in the same sentence with C++, IMHO. While I love C++, when I want to develop web-based applications, perl is always my first choice. It's the right tool for many web-related jobs.
If you still believe that the only way to use perl is in a CGI, take a look at: http://take23.org/whatis_mod_perl.xml
Best Regards.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
 |
|
 |
First of all, Perl is distributed in source format. While code can be broken down into a binary format, it CAN be reverse-engineered.
Second, Perl is a very awkward language to use, especially in large team environments, in my experience. Object-orientation can be rather difficult unless you know the language well and the little tricks.
Further, Perl also suffers from the process being invocated each time the CGI program is run.
In essence, Perl is another way of solving the same problem, but it really depends on the creator and his/her needs.
|
|
|
|
 |
|
 |
I was curious at first why a project developed with C++ would be named anything beginning with "VB." Then, I saw the name on the article and realized that's where it comes from. I know that all of us software engineering types just enjoy immortalizing our own images in our code, but in this case I would suggest not using VB for VC code as it can be quite misleading.
Also, thanks for the great set of code for web development! I might keep this in mind for my next web site.
Jason
DVD's at up to 25% off retail prices
|
|
|
|
 |
|
 |
I was wondering that myself...
At first I thought...cross platform in VB...
How do I print my voice mail?
|
|
|
|
 |
|
 |
altough the article looks like sh*** please use the code-projects style.. and no information on this page, the link (pretty hard to find) is great.. and then i understood why you didn't want to make the whole work twice..
but i think your article would be more accepted (i guess some guys don't like it).. if you would show a simple usage example of your code..
but.. the thingie is really great
bernhard
Sometimes I think the surest sign for intelligent life elsewhere in
the universe is that none of them ever tried to contact us.
|
|
|
|
 |