Women in Technology

Hear us Roar



Article:
  Smalltalk for Everyone Else
Subject:   The Pragmatic Programmer
Date:   2007-01-25 20:05:53
From:   jacaetevha
Response to: The Pragmatic Programmer

That's funny. Running Squeak on my MacBook Pro (1.83 GHz Intel Core Duo, 1GB 667 MHz DDR2 SDRAM) Time millisecondsToRun: [2 raisedTo: 64] produces the right answer and takes less than a millisecond. To be fair, that's not printing the statement like you did. So after adding a print statement in there, it takes 18 or 19 milliseconds. Your Ruby code takes 45 milliseconds.