> Last year (May 2007) I posted a blog about comparing different package > repositories (http://baijum81.livejournal.com/20775.html). > > The total number of packages in different repositories was like this: > > 1. Perl (11643) http://cpan.org/ > 2. Python (2392) http://cheeseshop.python.org/pypi > 3. Ruby (1587) http://raa.ruby-lang.org/ > 4. PHP (442) http://pear.php.net/packages.php > > > When I read this thread I thought just revisit the repositories. > Here is the new status: > > 1. Perl (12783) http://cpan.org/ > 2. Python (3249) http://cheeseshop.python.org/pypi > 3. Ruby (1642) http://raa.ruby-lang.org/ > 4. PHP (465) http://pear.php.net/packages.php > > Here is the increment details: > Disclaimer: I am not a statistical guy :) > > #!/usr/bin/env python > > # May 21st 2007 > perl1 = 11643 > python1 = 2392 > ruby1 = 1587 > php1 = 442 > > # Jan 4th 2008 > perl2 = 12783 > python2 = 3249 > ruby2 = 1642 > php2 = 465 > > perld = perl2 - perl1 > pythond = python2 - python1 > rubyd = ruby2 - ruby1 > phpd = php2 - php1 > > total = perld + pythond + rubyd + phpd > > print "Perl", (perld/float(total))*100 > print "Python", (pythond/float(total))*100 > print "Ruby", (rubyd/float(total))*100 > print "PHP", (phpd/float(total))*100 > > # Output:- > # > # Perl 54.9397590361 > # Python 41.3012048193 > # Ruby 2.65060240964 > # PHP 1.10843373494 > > Again, I am not going to any conclusions ;)
My friend Jayesh suggested it is better to show individual growth rate than taking comparative performance, so here it is: print "Perl", (perld/float(perl1))*100 print "Python", (pythond/float(python1))*100 print "Ruby", (rubyd/float(ruby1))*100 print "PHP", (phpd/float(php1))*100 # Output:- # #Perl 9.79129090441 #Python 35.8277591973 #Ruby 3.46565847511 #PHP 5.2036199095 Regards, Baiju M _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers