| Article: |
Smalltalk for Everyone Else | |
| Subject: | The Pragmatic Programmer | |
| Date: | 2006-11-28 21:53:45 | |
| From: | jeberle | |
Good article. I used Smalltalk/V back in the day against OS/2 PM. Went screaming back to Microsoft C in order to get anything useful done. Tried Squeak recently to investigate Croquet. I agree w/ other comments that an "environment" in the face of bash/zsh + Vim/Emacs is a serious liability. Just today I had this simple question answered. Can Smalltalk do this? Not really. Sad, because it is an amazing language.
|
||
Showing messages 1 through 2 of 2.
-
The Pragmatic Programmer
2007-01-25 20:05:53 jacaetevha [View]
-
The Pragmatic Programmer
2006-12-30 10:56:22 matteisenberg [View]
Try:
Time millisecondsToRun: [2 raisedTo: 64]



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.