http://www.perlmonks.org?node_id=761252


in reply to The golf course looks great, my swing feels good, I like my chances (Part II)

You know, it doesn't really surprise me that perl isn't always optimal for golf. I've seen it in action in that fibonacci golf tingy at Re: Fibo Golf challenge on 3 monkeys and (OT) Fibonacci numbers in Ruby - final shot - 24 chars etc. Also, when I write one-liners, which I do a lot, and I don't golf on purpose, the ruby ones always turn out to be shorter than the perl ones, only the ruby ones get hard to manage earlier when they grow. Ruby just has a larger, better standard library for basic things, but cpan wins when you need more complicated stuff like xml parsing.

As for ruby,

  • Comment on Re: The golf course looks great, my swing feels good, I like my chances (Part II)

Replies are listed 'Best First'.
Re^2: The golf course looks great, my swing feels good, I like my chances (Part II)
by eyepopslikeamosquito (Archbishop) on May 02, 2009 at 00:59 UTC

    Though I'll give a more detailed analysis in my next article, I just did a quick count of the last ten codegolf games. Ruby and Perl always finished first and second in code length: Perl won 6 times, Ruby 4 times. As for the longest solutions, it was: PHP 7 times, Python 3 times. That agrees with my impression when playing these games: Perl and Ruby are (often quite excitingly) vieing for the Silver Cup, while Python and PHP are battling for the wooden spoon. What surprised me enormously is popularity, measured by number of entries: Python 5, Ruby 4, Perl 1. It seems that golf is more popular in Python than Perl nowadays. That shocked me, because four years ago the top google hit for "Python golf" was a lovely pair of Python skin ladies golf shoes. :)