From: <da...@de...> - 2004-01-12 22:55:13
|
gabriele renzi <sur...@ya...> writes: > [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 You are missing the argument though: ruby1.7 ./ackermann.ruby 7 With '8' even 1.7 fails. > 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. We don't really know Ruby enough to fix things. Maybe there is a way... > > 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 ;) Posted there too, for the heck of it:-) > 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? :) Ah... Hrm. It could probably stand to be reduced to anything that matches one of the available testnames. I think I got bit once by it running a ~ file. > - 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 :) Yes! Definitely. I think initially, the two args would be -tests and -langs so that you could give it a list of tests to run for all languages, or a list of languages to run all tests for, or only the intersection of the specified -tests and -langs. > - 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 :/ Seems odd to me too. Does it run ok without 'gr = gen_random' ? > (But, I understand effort is put on the framework rather than on the > scripts, atm ;) Well, we want to start adding tests too, but if we add a bunch and then change the framework, it could be a lot of work to fix things up. > Oh, and thanks for the quick answer. You're welcome. -- David N. Welton Consulting: http://www.dedasys.com/ Personal: http://www.dedasys.com/davidw/ Free Software: http://www.dedasys.com/freesoftware/ Apache Tcl: http://tcl.apache.org/ |