From: <sur...@ya...> - 2004-01-11 22:25:55
|
--- "David N. Welton" <da...@de...> ha scritto: > gabriele renzi <sur...@ya...> writes: > > > Hi gurus, > > Ciao! oh, yes, I forgot to say "sorry about my english " ;) [about ruby 1.7] > As an experiment, try running the Ruby ackermann > implementation with > '7' as an argument: > > scutigena/tests/ruby/common/src] $ ruby1.7 > ./ackermann.ruby 7 > > Does that work with 1.8 and or 1.6? It runs on my debian box: loser@irc:~$ ruby ack.rb Ack(3,1): 13 loser@irc:~$ ruby -v ruby 1.8.1 (2003-12-25) [i586-linux] loser@irc:~$ ulimit unlimited but, I notice that on my win box it fails with SystemStackError. If that is the problem on *nix that maybe that can be fixed with ulimit. > > Well, I think I'm going to bother you more in the > near future, but > > that's enough for now, > > Feel free to ask away:-) We didn't want to publicize > the project quite > so early on, but I saw that article on slashdot and > decided that now > was as good a time as any! I see.. and I found the link on osnews.com ;) btw, some more questions: - noticed that any file in the src/ directory gets run, no matter the name/extension. Is this considered as a bug or as a feature? :) - do you think that could be possible to select just a language or a subset to be run ? (a regexp as argument would be cool :) - in random.python there's something strange to me: gr = gen_random for i in xrange(1,N): gr(100.0) I wonder why there is that assignment. It seem to me that this is a name binding that could be useful when using python's random() as: gr=random.random to avoid name search at any run, given that gen_random is already available in current module, that makes little sense to me :/ (But, I understand effort is put on the framework rather than on the scripts, atm ;) Oh, and thanks for the quick answer. ===== icq #69488917 ______________________________________________________________________ Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/ |