GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   perl or php (https://gfy.com/showthread.php?t=1091908)

Vapid - BANNED FOR LIFE 12-06-2012 12:26 PM

perl or php
 
What's faster, lol

fris 12-06-2012 01:35 PM

Code:

perl -le 'print pack(c5,(8**2+3**2),42-10,sqrt(3600),oct(63),(unpack(c, "&")-6)),pack(c9,(87,111,114,100,80,114,101,115,115))'

pornguy 12-06-2012 01:39 PM

Pretty sure PHP is and thats the reason most use it over perl. Perl is pretty powerful but never made it far for web.

blazin 12-06-2012 01:47 PM

Quote:

Originally Posted by pornguy (Post 19355530)
Pretty sure PHP is and thats the reason most use it over perl. Perl is pretty powerful but never made it far for web.

Perl is still going strong..no PHP became popular because any idiot could use it to put together web scripts and the ability to mix html and code.... PHP was originally based on Perl.

There's lots of ways to use most Perl as plain old cgi or with mod_perl to get the performance you need.

edgeprod 12-06-2012 05:18 PM

Not to hate, but we're really talking about the speed of languages like PHP and Perl? If speed is a real concern, I don't think either would be a practical choice.

edgeprod 12-06-2012 05:22 PM

Or, to put it another way: I don't think I've ever heard someone say "Change that Perl project to PHP, we need SPEED here." .. or vice versa.

BigRod 12-06-2012 05:34 PM

Ruby JRuby

AndrewX 12-06-2012 05:43 PM

PHP. Although it's limited and uses too much memory and it is slow compared to many other languages, slow to write and still immature. Also has been designed badly and broken from the inside out. For example multi-inheritance is unknown.

BUT! 5.4 is almost twice as fast as 5.3, it's JUST getting features it should have had. Many hosts still run 5.3 though.

Porndex 12-06-2012 07:07 PM

Quote:

Originally Posted by AndrewX (Post 19355990)
5.4 is almost twice as fast as 5.3

How did you come to that conclusion? Last I checked it's a few % faster due to some optimizations, but it's not overly noticeable in most environments.

AndrewX 12-06-2012 07:18 PM

Quote:

Originally Posted by Porndex (Post 19356107)
How did you come to that conclusion? Last I checked it's a few % faster due to some optimizations, but it's not overly noticeable in most environments.

Well, zend framework runs a LOT faster. You can find countless benchmarks online, Wordpress runs about 10% faster and less memory footprint.


All times are GMT -7. The time now is 07:48 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123