Go Back   AnandTech Forums > Software > Software for Windows

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2013
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 05-07-2003, 03:27 PM   #1
davidkay
Senior Member
 
Join Date: Nov 2000
Posts: 265
Default Advantages and Disadvantages of ASP over CGI/Perl?

Would somebody be kind enough to give me some Advantages and Disadvantages of using ASP compared to Perl or CGI on my web site?

Thanks
davidkay is offline   Reply With Quote
Old 05-07-2003, 03:32 PM   #2
notfred
Lifer
 
Join Date: Feb 2001
Posts: 38,244
Default RE: Advantages and Disadvantages of ASP over CGI/Perl?

Disadvantage of ASP: You have to run it on an MS server.
Advantage of ASP: All that microsoft crap you can do, like integratino with access databases and stuff, is relatively easy.
notfred is offline   Reply With Quote
Old 05-07-2003, 03:42 PM   #3
davidkay
Senior Member
 
Join Date: Nov 2000
Posts: 265
Default Advantages and Disadvantages of ASP over CGI/Perl?

Any more? I'll be honest: I got an exam i'm revising for but I cant seem to find any good reasons. Why would I use CGI over ASP?

Thanks, any more would be a great help!
davidkay is offline   Reply With Quote
Old 05-07-2003, 05:35 PM   #4
kt
Diamond Member
 
kt's Avatar
 
Join Date: Apr 2000
Posts: 4,673
Default Advantages and Disadvantages of ASP over CGI/Perl?

Quote:
Originally posted by: Tyler
Disadvantage of ASP: You have to run it on an MS server.
Advantage of ASP: All that microsoft crap you can do, like integratino with access databases and stuff, is relatively easy.
Uhmm.. ever heard of ChiliSoft ASP? Or now Sun ONE ASP? Both for Unix based OS'es.
__________________
Beer: Helping ugly people get laid since 3000 B.C.
kt is offline   Reply With Quote
Old 05-07-2003, 05:48 PM   #5
Nothinman
Elite Member
 
Nothinman's Avatar
 
Join Date: Sep 2001
Posts: 30,672
Default RE: Advantages and Disadvantages of ASP over CGI/Perl?

The only reason I can think of is that with ASP on IIS you have access to a lot of COM objects, so you don't have to reinvent the wheel all the time. But with the mentioned ASP implementations on unix you're limited because noone of those COM objects so all you get is the ability to use VBScript.

I would personally recommend perl (using mod_perl on Apache) because you have tons of free modules to use and it's mostly portable, you're not tied to IIS on Windows. I would avoid CGI because it's slow, you need to fork a new process for each CGI request and it's hard to do session tracking for things like "shopping carts".
__________________
http://www.debian.org
Nothinman is offline   Reply With Quote
Old 05-07-2003, 06:39 PM   #6
Descartes
Lifer
 
Join Date: Oct 1999
Posts: 13,970
Default Advantages and Disadvantages of ASP over CGI/Perl?

Nothinman pointed out the most important factor: CGI applications create a new process for EACH HTTP request; ASP does not.

Some other advantages of ASP:

- You can use any language that has an ActiveX scripting engine (e.g. JScript, VBScript, Perl, etc.)
- You have access to a late-bound COM programming model, therefore you have almost infinite access to third-party components to do much of what you would otherwise have to do by hand.

There are many more disadvantages ASP.NET is an entirely different story, however...
Descartes is offline   Reply With Quote
Old 05-07-2003, 06:49 PM   #7
Barnaby W. Fi
Elite Member
 
Join Date: Aug 2001
Posts: 12,343
Default RE: Advantages and Disadvantages of ASP over CGI/Perl?

I think you are confused about the issue. CGI is "Common Gateway Interface", you can use any langauge you want with it, or for that matter any executeable program that can print http headers and html. I don't claim to know much about ASP, but it seems to serve a somewhat similar purpose; to provide a common platform for doing web development in whatever language you decide to use.

As far as why you would want to use CGI over ASP, I suppose it depends on the context. I wouldn't call CGI an elegant solution by any means, but then again, I do use CGI and not ASP.. so there are reasons. From a "proper" standpoint, CGI is pretty barbaric, but for my basic uses (writing python scripts for fun), it doesn't really matter all that much, and it requires no effort to set up.
Barnaby W. Fi is offline   Reply With Quote
Old 05-07-2003, 07:01 PM   #8
Nothinman
Elite Member
 
Nothinman's Avatar
 
Join Date: Sep 2001
Posts: 30,672
Default RE: Advantages and Disadvantages of ASP over CGI/Perl?

Quote:
I think you are confused about the issue. CGI is "Common Gateway Interface", you can use any langauge you want with it, or for that matter any executeable program that can print http headers and html.
Noone is confusing that issue, it's that very feature that is the problem. The web server has to fork the interpreter to run the CGI every time a request to that CGI is submitted, it's the whole reason mod_perl was created, to stop the slow down from forking /usr/bin/perl with every request.

Quote:
I don't claim to know much about ASP, but it seems to serve a somewhat similar purpose; to provide a common platform for doing web development in whatever language you decide to use.
Accept that it's interpreted inside the daemon so it's only interpreted once (well it probably checks the file mtime and reinterprets so you don't need to keep restarting the daemon to test code) and run many times.
__________________
http://www.debian.org
Nothinman is offline   Reply With Quote
Old 05-08-2003, 02:04 AM   #9
davidkay
Senior Member
 
Join Date: Nov 2000
Posts: 265
Default Advantages and Disadvantages of ASP over CGI/Perl?

Some fantastic answers I'm pretty sure this question will come up in my final paper. Thanks for your help You prob got me at least 5 marks
davidkay is offline   Reply With Quote
Old 05-08-2003, 04:43 AM   #10
Zugzwang152
Lifer
 
Zugzwang152's Avatar
 
Join Date: Oct 2001
Posts: 12,134
Default Advantages and Disadvantages of ASP over CGI/Perl?

Intersting...Perl seems to be the favorite around these parts...but why would one use Perl over an equally useful script like PHP for instance?
__________________
R.I.P. Borg Guy Avatar... October 2001 - November 2009


Official member of the ATOT Night Crew
Heat
Zugzwang152 is offline   Reply With Quote
Old 05-08-2003, 07:49 AM   #11
Nothinman
Elite Member
 
Nothinman's Avatar
 
Join Date: Sep 2001
Posts: 30,672
Default RE: Advantages and Disadvantages of ASP over CGI/Perl?

Quote:
Intersting...Perl seems to be the favorite around these parts...but why would one use Perl over an equally useful script like PHP for instance?
I don't use php, but perl's string and regexp capabilies are astounding and most web page processing involves strings and for anything else there's usually a perl module from cpan, there's modules for everything from IMAP access to creating PDFs and mod_perl makes perl execution just as fast as php in apache.
__________________
http://www.debian.org
Nothinman is offline   Reply With Quote
Old 05-08-2003, 08:15 AM   #12
Superwormy
Golden Member
 
Join Date: Feb 2001
Posts: 1,637
Default Advantages and Disadvantages of ASP over CGI/Perl?

Don't forget also that Perl is more of a tried and true solution than ASP. ASP is still relatively new while Perl has been around for like 15 years. A lot of Unix farmilar people also already know Perl because it has been used for system admin previously.

I also don't believe that Chillsoft ASP or SunOne ASP are complete solutions, they're still lacking I believe as compared to the Windows ASPversion... but I'm not sure on this...
Superwormy is offline   Reply With Quote
Old 05-08-2003, 11:28 AM   #13
EmperorRob
Senior Member
 
Join Date: Mar 2001
Posts: 968
Default Advantages and Disadvantages of ASP over CGI/Perl?

Quote:
Originally posted by: Zugzwang152
Intersting...Perl seems to be the favorite around these parts...but why would one use Perl over an equally useful script like PHP for instance?
Can't speak for php b/c I'm not all that familiar w/it. But perl has 1000s of modules including ones for CGI and HTML parsing. It's biggest power though is file/text read-writing, which is easy and fast. And basically it's got similar functions and solutions of everything you can find in C. Its syntax makes sense and is easy to learn.

EmperorRob is offline   Reply With Quote
Old 05-08-2003, 12:20 PM   #14
Nothinman
Elite Member
 
Nothinman's Avatar
 
Join Date: Sep 2001
Posts: 30,672
Default RE: Advantages and Disadvantages of ASP over CGI/Perl?

Quote:
Its syntax makes sense and is easy to learn.
As much as people b!tch about perl, it's syntax is farily simple and is easy to learn. And whenver perl 6 is released there's a lot of little fixups that fix some of the stranger aspects like how you access an array as @array but you access an element of that array $array[0].
__________________
http://www.debian.org
Nothinman is offline   Reply With Quote
Old 05-08-2003, 01:10 PM   #15
Shazam
Golden Member
 
Join Date: Dec 1999
Posts: 1,136
Default Advantages and Disadvantages of ASP over CGI/Perl?

Quote:
Don't forget also that Perl is more of a tried and true solution than ASP. ASP is still relatively new while Perl has been around for like 15 years.
ASP new? It's been out since 1996!!
Shazam is offline   Reply With Quote
Old 05-08-2003, 01:59 PM   #16
Descartes
Lifer
 
Join Date: Oct 1999
Posts: 13,970
Default Advantages and Disadvantages of ASP over CGI/Perl?

Quote:
Originally posted by: Superwormy
Don't forget also that Perl is more of a tried and true solution than ASP. ASP is still relatively new while Perl has been around for like 15 years. A lot of Unix farmilar people also already know Perl because it has been used for system admin previously.

I also don't believe that Chillsoft ASP or SunOne ASP are complete solutions, they're still lacking I believe as compared to the Windows ASPversion... but I'm not sure on this...
Perl has been around in the context of web-applications about as long as ASP (I'm not going to look up the exact years). ASP isn't tried-and-true? That's absurd.

Descartes is offline   Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:03 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.