Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 5th, 2000, 03:44 AM
chinnavi
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

I just wanna know whether it is correct:

Traditional CGI Programs ...Like PERL,PHP
will take lotta memory to run on the server side But Servlets (JSP) will exist only one copy of that process ..
In more unix words ...
Every user will fork one process in turn if 1000 user connected to our site will generate 1000 processes ...But Java Servlets will fork only one process and manage 1000 users... It is True ?

Then why should we use CGI - PERL and PHP ..


vijay

Reply With Quote
  #2  
Old July 5th, 2000, 06:26 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
yea Vijay,

Cgi has a serious perfomance problem...
It will open a separate process for each client request.That is expensive in terms of processor and memory resources.but now fastCGI and Apache's mod_perl are helping address performence issue in cgi.


I am writing code in five server side technologies(Jsp,Asp,Cgi/perl,Php and Coldfusion).I feel every these technologies are having some kind advantages over each other.

--
servelets(jsp) performence is significantly better than other technologies.servlets execute within the address space of a webserver.and also it is platform-independant.
----


>>
>>Then why should we use CGI - PERL and PHP ..
>>

Php is the wonderful technology in server side scripting arena.It is having everything which you want to develop an extraordinary website.Also it has a wonderful future in server side.

-------------
-------------

Let us hear what others saying about same topic!!!



------------------
SR -
webshiju.com

"The fear of the LORD is the beginning of knowledge..."

Reply With Quote
  #3  
Old July 6th, 2000, 10:37 PM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Well, almost everyone who are using Perl for server-side scripting, install mod_perl, which sovles the problem of forking multipl processes for each script being executed. As for PHP, it is mostly compiled as an Apache module, which in turn means it is speeded up...


Reply With Quote
  #4  
Old July 7th, 2000, 01:13 AM
chinnavi
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Then How can we (perl , i'm a perl lover)..
do better things with PERL and CGI ...
Why should we use perl or PHP then ...


vijay

Reply With Quote
  #5  
Old July 7th, 2000, 10:17 AM
ledjon
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I'm a perl junky myself, but even I'm willing to admit php is better and faster for database access (such as mysql). I use all php for that stuff. It's like the unix version of asp (which was completly designed for database use), so it's obvious that it's best for database stuff.

But as for just about every other thing that I would ever need to do, I use perl. It's my favorite to program in and is the most multi-system compatiable way of doing stuff. (Most server's have cgi, but not all have php or asp).

Reply With Quote
  #6  
Old July 9th, 2000, 02:51 AM
chinnavi
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

if perl is havin performance problem how people having .pl or .cgi will move then
to servlets and other technlogies...
what about ASP ...this also having very serious performance problem ....
If i want to use servlets then they need money for the purchase ?
linux is open source , perl , apache , mysql everything is open source .. why should i use asp , the waste thing , the servlets ...

why and where i have to use these things?

vijay

Reply With Quote
  #7  
Old July 10th, 2000, 12:20 AM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Well, porting programs is always hard. As for ASP, I personally dislike it. Its syntax has something that I simply don't like, like the fact that you cannot use meta-characters (like n or such) but have to convert ASCII values useing the Chr() function.

Well, I guess everything has its own niche somewhere. As for servlets, I think they are cool, but they require that you know Java (I think) which is not all that easy to master. I would stick with Perl and PHP for the time being. These two have almost everything that you could need...

Reply With Quote
  #8  
Old July 10th, 2000, 02:24 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
dwarf,

you know, ASP is the easiest techonoly in server side programming.if you are using Asp with Vbscript,that would be the the eaiest way to develop good websites.Microsoft is providing alot of functionalities for developing websites with asp.I feel real power of ASP is that it's capacity to integrate with ACTIVEX,COM/DCOM technologies..Any one can do ASP programming with some VB or VC++ experience..


<<
like the fact that you cannot use meta-characters (like n or such)
>>

For that you have alot of functions in vb.. you can use that.eg: VbCrlf,VbNewLine..

sorry i'm forgetting this is a perl forum..
---------

Even though it is a powerful technology,i feel it is lacking something ..
i don't know what is that!!!

***** ****** *****



------------------
SR -
webshiju.com

"The fear of the LORD is the beginning of knowledge..."

[This message has been edited by Shiju Rajan (edited July 10, 2000).]

Reply With Quote
  #9  
Old July 10th, 2000, 05:14 AM
chinnavi
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

i think i better should study ASP than perl..
Now i know only perl and php and dont know anything in windows side ..
I thought better i should learn these things than perl and php and go for others like ASP and VB scrtipt


vijay

Reply With Quote
  #10  
Old July 10th, 2000, 05:47 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
vijay,
You misunderstood our discussion i guess..


Any one can do ASP programming with some VB


As i said earlier Asp programs any one can do(silly programming)...

Everyone can't write perl programs..
Also Asp is limited only in NT.Your perl program can run in all the platforms...
Also php is now getting good popularity..
So stick around these two technologies...

I have developed more than 20 sites in Asp.You know,you will get bored after 2 projects.Nothing is their for giving you a challenge..

but in perl or in php you get challenging job.and you will be more enthusiastic to work..And it has a wonderful future in server side development...

...







------------------
SR -
webshiju.com

"The fear of the LORD is the beginning of knowledge..."

Reply With Quote
  #11  
Old July 10th, 2000, 09:40 PM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
ASP is great for NT servers, and that is about it. I cannot argue with the fact that it is the easiest around, 'cause it certainly is. I just said that I found its syntax a little confusing. Maybe because I was used to languages which use ; as an end-of-statement character... Of course, for newbies in the world of programming and database manipulation it is the best choice. The only problem will always remain: portability. If you should move your app from an NT server to a UNIX server, you are almost always looking at a total rewrite...

Anyway, use what you need to get the job done, right?? There is no sinlge perfect tool...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Everybody says "CGI takes lotta memory"?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway