[Shootout-list] scoring discrepancy

Stephen Weeks sweeks@sweeks.com
Tue, 6 Jul 2004 15:28:25 -0700


> What algorithm are you using to compute the score?

My code used the "SCORE" lines in .craps.table and the weights in
craps_funcs.php to compute the weighted sum of scores.  That's it.  I
wasn't duplicating the functionality of make_craps, just the
functionality of do_craps in craps_funcs.php.

Anyways, I see that if I run "make craps", which rebuilds
.craps.table, I get a different result than what is in the CVS for
.craps.table.  I'm not sure which is the right one.  For the score
table that I sent previously, I was computing based on the CVS.  Below
is the table that I get from the data built by make craps.  This now
agrees more closely with the web page (which just changed moments
ago).  It looks like the discrepancy was a synchronization issue.

gcc		53.0058	0
mlton		41.5339	0
g++		40.2686	0
clean		39.6129	4
ocaml		38.4278	0
se		29.6713	4
bigloo		23.7107	1
cmucl		21.4218	0
smlnj		18.8238	0
java		17.8295	1
ghc		16.9929	2
nice		16.4435	0
gforth		16.1462	2
perl		14.3078	0
gnat		14.3058	8
slang		14.2048	3
lua		13.9249	1
python		13.0512	0
pike		12.6466	0
gawk		11.2072	6
ruby		10.7056	0
sablevm		10.0804	1
tcl		9.8220	3
mawk		9.7612	6
stalin		9.5225	14
icon		8.9909	7
rep		7.7694	4
psyco		7.7514	2
oz		7.6032	6
guile		7.3441	0
bash		6.9611	14
erlang		6.3029	4
gwydion		6.0331	10
xemacs		5.7934	9
php		5.6613	10
mzscheme	4.4225	7
elastic		1.4871	16
sbcl		0.6514	24
gprolog		0.4127	21
ciao		0.3013	22
oberon2		0.2926	24
csharp		0.0000	4