|
From: Paul M. <p.f...@gm...> - 2009-07-31 08:14:41
|
2009/7/30 Darrin Thompson <dar...@gm...>: > On Thu, Jul 30, 2009 at 10:48 AM, Paul Moore<p.f...@gm...> wrote: >> [1] Simulate dealing and scoring a cribbage hand, many millions of >> times. Gather stats on the distributions of the results. Bonus points >> for making the hand generation and scoring procedures easy for the >> user to fiddle with (that bit seriously hurts languages with high >> function call overheads!) >> > > Don't underestimate factor without the very very latest compiler > improvements. I've been pleasantly surprised with the speed of naive > code. I don't. But I'm comparing against hand-written C/C++ (which scores pretty low on readability, of course :-)) and I don't want to handicap Factor unnecessarily. I'll probably run the Factor code on both old and new versions, as a comparison. Paul. |