From: ts Date: 2008-04-02T19:11:25+09:00 Subject: Re: Why Ruby do not optimize code at all? Marcin Miel��y��ski wrote: > That's a bit surprising for me: we don't have the same version vgs% make test sample/test.rb:assignment ............................................................................................................................................................................................................................................................................................................................................. sample/test.rb:condition .. sample/test.rb:if/unless ... sample/test.rb:case ..... sample/test.rb:while/until ........ sample/test.rb:exception ....... sample/test.rb:array ....................................... sample/test.rb:hash ........................... sample/test.rb:iterator ............................................................................................................... sample/test.rb:float ................................................................................ sample/test.rb:bignum ............................... sample/test.rb:string & char .............................................................. sample/test.rb:assignment .......... sample/test.rb:call ...... sample/test.rb:proc ......... sample/test.rb:signal .. sample/test.rb:eval ............................. sample/test.rb:system ......... sample/test.rb:const ..... sample/test.rb:clone ..... sample/test.rb:marshal .... sample/test.rb:pack .... sample/test.rb:math .. sample/test.rb:struct ...... sample/test.rb:variable ........... sample/test.rb:trace ... sample/test.rb:defined? ............ sample/test.rb:alias ...... sample/test.rb:path ....................... sample/test.rb:gc .... test succeeded test_load.rb . test_method.rb ................................................................................................................................................................................................................. test_objectspace.rb ... test_syntax.rb ........................................................................................................................................ test_marshal.rb . test_eval.rb ......................... test_knownbug.rb .........:0:in `class_eval': undefined local variable or method `foo' for main:Object (NameError) from :0:in `class_eval' .:0:in `class_eval': undefined local variable or method `foo' for main:Object (NameError) from :0:in `class_eval' ..... test_flip.rb . test_block.rb ..................................................... test_literal.rb .................................................................................................................................................. test_exception.rb ................................ test_fork.rb . test_massign.rb .................................. test_proc.rb ................... test_class.rb ......................................... test_io.rb ...... test_flow.rb ........................................... test_thread.rb ....................... test_jump.rb ........................ test_attr.rb .. test_struct.rb . PASS 816 tests vgs% I first try to make work ruby then I try to optimise it, not the opposite. Guy Decoux