View Single Post
Old 07-02-2002, 10:53 PM  
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
Quote:
Originally posted by darksoul
+
I'm not going to have this debate,
it was already done lots of times, RTFM
The example you gave doesn't stand
just because that wwwthread you're talking about was faster in php.
maybe the coder of the perl version wasn't as good as the php one.
and it does matter what you use it for
if you use php just to echo some test
it will be as fast as the perl version.
ever wondered why tgsw or adcycle or any good traffic script
wasn't coded in php ?
php is simple to code.
how do you test the speed of a language ?
use php and perl to process a 3GB file , which one do you think
will be faster ?
use the both to generate 10k of random numbers with 100 digits each..., again which one works faster ?
first part is exactly my point. depending on who codes what, either/or can be faster.

second off, maybe tgsw, adcycle and other things were coded in perl because that's what language the coder liked? they happened to know all the modules they'd need to make something happen? it was coded before PHP got popular.. and there's no reason to convert?

"php is simple to code" has nothing to do with why programs wouldn't be written using PHP. in fact, that's the opposite statement. you'll see more and more programs nowadays being coded in PHP since it's so easy. i'm not saying they'll be fast, scalable, easy to maintain, or clean.. but nonetheless they were created in PHP.

PHP may be "easy to code" but like any language it takes some skill to refine your coding techniques to make your programs/scripts scalable, modular, reusable, clean and efficient. just like perl. even C with all it's strict datatypes and such can lead to inefficient methods depending on the person doing the coding. it's a subjective test. there is no right answer.
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote