Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: 12 days of Perl?

by eyepopslikeamosquito (Archbishop)
on May 01, 2021 at 10:36 UTC ( [id://11131925]=note: print w/replies, xml ) Need Help??


in reply to 12 days of Perl?

Super search turned up two related PM nodes:

In terms of code golf prior art, there has been at least:

  • code.golf (12 days of Christmas) - I see the top three golfers are all Perl Monks! (primo, thospel, o0lit3). Given how low the scores are, I speculate that primo (the best code golfer of all time IMHO - and not just in Perl) has unearthed some brilliant compression hacks that have so far eluded the legendary thospel (the best Perl golfer for ten years before primo arrived on the scene) and o0lit3
  • shinh golf site (Twelve Days of Christmas)

Though I'd never come across this golf before, I'm not surprised that it is a popular code golf game. Unfortunately, as with Drunk on golf: 99 Bottles of Beer, this one will almost certainly degenerate into a Compression slugfest, which in turn will depend on the game rules regarding compression.

See also: my list of PM code golf links

Replies are listed 'Best First'.
Re^2: 12 days of Perl?
by johnaj (Sexton) on May 01, 2021 at 11:27 UTC

    Neat, thanks for the links. I made a Google search before posting and found only the first Perl Monks node. I was also surprised this challenge wasn't more popular. I was actually inspired by a post on the /r/prolog subreddit, where such challenges are regularly posted.

    P.S. That code.golf page sure is hard to navigate – can you actually see people's solutions on there?

      That code.golf page sure is hard to navigate – can you actually see people's solutions on there?
      No! If you could, there would be no competition. :) Unfortunately, the original code golf competition web site in Perl, Python, Ruby and PHP is now gone from the web forever and they never published any solutions ... though you can see some of them in my PM code golf nodes (especially the six part series "The golf course looks great ...").

      You can see the (handful) of published solutions for the 12 days of christmas game at the shinh golf link ... no surprise to see the leading one there starting with:

      use Compress::Zlib;print uncompress 'x\xda\xe5 ...
      Note that this solution would not have been accepted at the original code golf competition web site because modules were not allowed in those competitions - though you could use compression via the pack function as described in excruciating detail at Compression in Golf: Part I.

      The tricky problem of how long to keep the competitor's solutions a secret is touched upon in The golf course looks great, my swing feels good, I like my chances (Part IV) in the "No Time Limit" and "Golfer Burn Out" sections ... and also (update) in Re^2: The golf course looks great, my swing feels good, I like my chances (Part I).

      In our early golf games, run on the fwp and golf perl mailing lists, the solutions were kept secret for one week - see Dueling Flamingos: The Story of the Fonality Christmas Golf Challenge for an example of a classic one week Perl code golf competition (with cash prizes!) from the good old days.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-19 00:22 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found