[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev-en:38

From: Ilmari Heikkinen <kig misfiring.net>
Date: Sat, 18 Feb 2006 05:33:09 +0200
Subject: [yarv-dev-en:38] YARV 0.3.3 bug report

ML: yarv-dev-en quickml.atdot.net
New Member: kig@m...

Hello,

Tried out librend on YARV, and what tests I managed to get running were
very promising (30-50% avg FPS speedup!)


Found some bugs too (the YARVCore::VM::Proc vs Proc -issue was reported
already so not repeating it here):



1. found when compiling rubysdl, mkmf.rb contains code like:

for d,*f in [[1,2,3]]
...

kig@bauhaus:~$ ruby1.8 -e 'for d,*f in [[1,2,3]]; p d,f; end'
1
[2, 3]

kig@bauhaus:~$ ruby1.9 -e 'for d,*f in [[1,2,3]]; p d,f; end'
[1, 2, 3]
nil



2. had some incompletely arg'd blocks in my code and ran into:

kig@bauhaus:~$ ruby1.8 -e '[[1,2,3]].map{|a,b| p [a,b]}'
[1, 2]

kig@bauhaus:~$ ruby1.9 -e '[[1,2,3]].map{|a,b| p [a,b]}'
[2, 3]



3. define_method has bug with splat args

kig@bauhaus:~$ ruby1.8 -e 'class Object; define_method(:foo){|*args| 
p args}; end; 0.foo(1,2,3)'
[1, 2, 3]

kig@bauhaus:~$ ruby1.9 -e 'class Object; define_method(:foo){|*args| 
p args}; end; 0.foo(1,2,3)'
-e:1:in `<main>': wrong number of arguments (3 for 0) (ArgumentError)



4. method_missing and blocks

kig@bauhaus:~$ ruby1.8 -e 'def method_missing(m,&b) b end; p f{}'
#<Proc:0x00000000@-e:1>

kig@bauhaus:~$ ruby1.9 -e 'def method_missing(m,&b) b end; p f{}'
nil



x. YARV GC runs take longer than Ruby1.8 GC runs (not really a bug) 
  (ruby1.8 GC run: 45fps -> 17fps, YARV GC run: 60fps -> 10fps)



-Ilmari


-- 
ML: yarv-dev-en quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml

How to unsubscribe from the ML:
- Just send an empty message to <yarv-dev-en quickml.atdot.net>.
- Or, if you cannot send an empty message for some reason,
  please send a message just saying 'unsubscribe' to <yarv-dev-en quickml.atdot.net>.
  (e.g., hotmail's advertisement, signature, etc.)

Members of <yarv-dev-en quickml.atdot.net>:
ko1@a...
nohmad@g...
surrender_it@y...
tom@i...
wilsonb@g...
mfp@a...
curt.hibbs@g...
tsuraan@t...
kero@c...
why@w...
joaopedrosa@g...
grahamamacdonald@g...
adam.shelly@g...
gclryd-yarv-dev-en@m...
brixen@g...
jeffrey.dik@m...
rubyzbibd@u...
heidegger101@g...
klaus_momberger@y...
kashia@v...
chneukirchen@g...
aamine@l...
emiel@r...
kig@m...

[前][次][番号順一覧][スレッド一覧][生データ]

->      38 2006-02-18 12:33 [kig misfiring.net   ] YARV 0.3.3 bug report                   
        42 2006-02-20 16:28 ┗[ko1 atdot.net       ]                                       
        46 2006-02-21 02:22  ┣[ko1 atdot.net       ]                                     
        51 2006-02-22 15:26  ┗[kig misfiring.net   ]                                     
        53 2006-02-22 18:28   ┗[ko1 atdot.net       ]                                   
        54 2006-02-23 00:58    ┗[kig misfiring.net   ]                                 
        57 2006-02-23 01:41     ┗[ko1 atdot.net       ]                               
        58 2006-02-23 01:50      ┗[kig misfiring.net   ]                             
        60 2006-02-23 02:26       ┗[ko1 atdot.net       ]                           
        61 2006-02-23 02:48        ┗[chneukirchen gmail.c]                         
        62 2006-02-23 03:09         ┗[kig misfiring.net   ]                       
        63 2006-02-23 04:26          ┣[kig misfiring.net   ]                     
        64 2006-02-23 12:32          ┗[kig misfiring.net   ]                     
        68 2006-02-24 07:19           ┗[ko1 atdot.net       ]                   
        83 2006-02-27 22:24            ┗[ko1 atdot.net       ]