cardinal golf

Tkil tkil-sdpm at scrye.com
Mon Feb 9 17:23:32 CST 2004


~sdpm~
>>>>> "Charles" == C Abney <cabney at ucsd.edu> writes:

Charles> hmm, could one construct a set of golf rules favoring
Charles> performance over brevity?  Would it still be golf?

Well, the "golf" aspect of this challenge was somewhat artificial; the
actual challenge was to write the smallest chunk of code that could
correctly generate ordinal suffixes for the natural numbers.

One could modify the rules so that execution time efficiency were
figured in, perhaps even including memory footprint efficiency.  The
weighting of these different factors is up to you, however.

Not sure I care enough to indulge in this, though.  :)

You can see what happens when one tries to benchmark various different
styles of solutions, even to "toy" problems like this:

   http://slinky.scrye.com/~tkil/perl/bit-count

Regarding how to measure a combination of attributes (efficiency,
cleverness, smallness, etc), consider this metric developed primarily
for visual hacks:

   http://www.catb.org/~esr/jargon/html/D/display-hack.html

t.
~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list