View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Case Final Project Summer 2007

Code Rodeos

Yeeee hawww! Saddle up fer some code totin' action. Uploaded Image: grrodeopose.jpg

Code Rodeo I: KAYRAD members

We timed and sized the WordMatcher class from Milestone 1.

The code:

wm _ WordMatcher new.
wm addRule: 'Fail $foo ?bar ratchet ! #lookup'.
wm addRule: '&fort taste !good[:a | (a size) = 3] food'.
wm match:  'good taste foo food'.

myBlock _ [:matcher | 
  matcher addRule: 'Fail $foo ?bar ratchet ! #lookup'.
  matcher addRule: '&fort taste !good[:a | (a size) = 3] food'.
  1 to: 500 do: 	
    [:index | matcher match:  'good taste foo food'. ]].

Time millisecondsToRun: [myBlock value: WordMatcher new].


The times:
Stephen- 8634 8685 8701 8635 8707
Uploaded Image: sfithumb2.jpg: I don't think this had as much to do with parsing as the way I handled blocks. I demand a retest w/o blocks!


Chris- 6993 7018 6998 7025 7015
Graham- 1858 1862 1874 1857 1939

The filesizes:
Stephen- under 9k
Chris- above 13k
Graham- above 11k


Code Rodeo 2

Want to hold another rodeo or challenge a player?
Leave info in the box below!

Challenges here

Well, partner adios.

Links to this Page