From ko1 at atdot.net Wed Mar 2 10:53:05 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Wed Mar 2 10:50:37 2005 Subject: [Yarv-devel] some fun bugs In-Reply-To: <4220394E.1050209@atdot.net> References: <20050226080329.87296.qmail@web50103.mail.yahoo.com> <4220394E.1050209@atdot.net> Message-ID: <4225E161.8050209@atdot.net> Hi, >> 3: calling a method with wrong number of args: >> >> def foo >> >> end >> foo(1) >> >> gives: >> ./benchmark/bm_4col.rb:6: [BUG] thread_backtrace: >> unkown instruction (-10741130) >> >> notice even that "unknown" is misspelled :) >> > mmm... i'll fix it. This is caused by bugs of creating backtrace process. > >> 4: return from block >> def foo >> 3.timed do return >> end >> end >> >> foo >> ./benchmark/bm_4col.rb:15: [BUG] thread_backtrace: >> unkown instruction (-8024) Fixed their :) in `method_missing': undefined method `timed' for 3:Fixnum (NoMethodError) from ../test.rb:8:in `foo' from ../test.rb:17 Thanks, SASADA Koichi From surrender_it at yahoo.it Wed Mar 2 11:28:39 2005 From: surrender_it at yahoo.it (gabriele renzi) Date: Wed Mar 2 11:24:35 2005 Subject: [Yarv-devel] some fun bugs In-Reply-To: <4225E161.8050209@atdot.net> Message-ID: <20050302162839.48703.qmail@web50106.mail.yahoo.com> > > Fixed their :) mh.. I think s/their/those/ > in `method_missing': undefined method `timed' for > 3:Fixnum (NoMethodError) > from ../test.rb:8:in `foo' > from ../test.rb:17 > > Thanks, > SASADA Koichi thanks to you! Just one more thing: I notice that if you do a "make clean", call_cfunc.inc and vm_evalbody.inc will be deleted since they are .inc files, which is not a nice thing. Maybe putting $cleanfiles += Dir.glob('*.inc') -%w(vm_evalbody.inc call_cfunc.inc) would be a good thing ===== icq #69488917 ___________________________________ Nuovo Yahoo! Messenger: E' molto pi? divertente: Audibles, Avatar, Webcam, Giochi, Rubrica Scaricalo ora! http://it.messenger.yahoo.it From ko1 at atdot.net Wed Mar 2 18:38:45 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Wed Mar 2 18:36:01 2005 Subject: [Yarv-devel] some fun bugs In-Reply-To: <20050302162839.48703.qmail@web50106.mail.yahoo.com> References: <20050302162839.48703.qmail@web50106.mail.yahoo.com> Message-ID: <42264E85.7080106@atdot.net> Hi, > mh.. I think s/their/those/ orz > Just one more thing: I notice that if you do a "make > clean", call_cfunc.inc and vm_evalbody.inc will be > deleted since they are .inc files, which is not a nice > thing. Maybe putting > $cleanfiles += Dir.glob('*.inc') -%w(vm_evalbody.inc > call_cfunc.inc) > would be a good thing nice. I fixed it. I can't discover it because I build in another directory. From ko1 at atdot.net Fri Mar 4 02:08:05 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Fri Mar 4 02:06:37 2005 Subject: [Yarv-devel] [ANN] YARV - Yet Another RubyVM 0.2.0 Message-ID: <20050304160805.1438682%ko1@atdot.net> Hi, I'm happy to announce that I released YARV: Yet Another RubyVM 0.2.0. Project Home page: http://www.atdot.net/yarv/ YARV 0.2.0 : http://www.atdot.net/yarv/yarv-0.2.0.tar.gz 0.2.0 souces : http://www.atdot.net/viewcvs.cgi/yarv/tags/0.2.0/ Changes (between 0.1.1): * some bug fixes * refoctoring * New Features * Assembler is supported (see rb/yasm.rb) * YARV architecture documentation (I'm sorry. It's in Japanese) Future work: * refoctoring (fix file structure and name convention) * replacing ruby/eval.c (You'll not need to apply a patch to ruby interpreter!) * --> Rite :) This project is supported by IPA (Information-technology Promotion Agency, Japan) "Exploratory Software Project (youth)". -- // SASADA Koichi at atdot dot net // From joaopedrosa at gmail.com Fri Mar 4 02:14:58 2005 From: joaopedrosa at gmail.com (Joao Pedrosa) Date: Fri Mar 4 02:10:49 2005 Subject: [Yarv-devel] [ANN] YARV - Yet Another RubyVM 0.2.0 In-Reply-To: <20050304160805.1438682%ko1@atdot.net> References: <20050304160805.1438682%ko1@atdot.net> Message-ID: Hi, On Fri, 04 Mar 2005 16:08:05 +0900, SASADA Koichi wrote: > Hi, > > I'm happy to announce that I released YARV: Yet Another RubyVM 0.2.0. > > Project Home page: http://www.atdot.net/yarv/ > YARV 0.2.0 : http://www.atdot.net/yarv/yarv-0.2.0.tar.gz > 0.2.0 souces : http://www.atdot.net/viewcvs.cgi/yarv/tags/0.2.0/ > > Changes (between 0.1.1): > * some bug fixes > * refoctoring > > * New Features > * Assembler is supported (see rb/yasm.rb) > * YARV architecture documentation (I'm sorry. It's in Japanese) > > Future work: > * refoctoring (fix file structure and name convention) > * replacing ruby/eval.c (You'll not need to apply a patch to ruby interpreter!) > * --> Rite :) > > This project is supported by IPA (Information-technology > Promotion Agency, Japan) "Exploratory Software Project (youth)". Great! Keep it up. It's a great project. Thanks for supporting Ruby. :-) Cheers, Joao From surrender_it at yahoo.it Fri Mar 4 04:34:15 2005 From: surrender_it at yahoo.it (gabriele renzi) Date: Fri Mar 4 04:30:09 2005 Subject: [Yarv-devel] [ANN] YARV - Yet Another RubyVM 0.2.0 In-Reply-To: 6667 Message-ID: <20050304093415.51100.qmail@web50105.mail.yahoo.com> --- SASADA Koichi wrote: > Hi, > > I'm happy to announce that I released YARV: Yet > Another RubyVM 0.2.0. great news, thanks for this. 104 tests, 287 assertions, 0 failures, 0 errors PS I notice you changed extconf.rb's $cleanfiles line, but the current approach does not work, since %w(*.inc) does not do globbing, it is just passed as is. icq #69488917 ___________________________________ Nuovo Yahoo! Messenger: E' molto pi? divertente: Audibles, Avatar, Webcam, Giochi, Rubrica Scaricalo ora! http://it.messenger.yahoo.it From ko1 at atdot.net Fri Mar 4 05:15:29 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Fri Mar 4 05:14:00 2005 Subject: [Yarv-devel] [ANN] YARV - Yet Another RubyVM 0.2.0 In-Reply-To: (Your message of "Fri, 4 Mar 2005 10:34:15 +0100 (CET) ") <20050304093415.51100.qmail@web50105.mail.yahoo.com> References: <20050304093415.51100.qmail@web50105.mail.yahoo.com> Message-ID: <20050304191529.1ef1758%ko1@atdot.net> gabriele renzi wrote : [ Re: [Yarv-devel] [ANN] YARV - Yet Another RubyVM 0.2.0 ] at Fri, 4 Mar 2005 10:34:15 +0100 (CET) Hi, > PS > I notice you changed extconf.rb's $cleanfiles line, > but the current approach does not work, since > %w(*.inc) does not do globbing, it is just passed as is. I'll change suffix to somethign ... -- // SASADA Koichi at atdot dot net // From jeffm at ghostgun.com Tue Mar 8 22:52:47 2005 From: jeffm at ghostgun.com (jm) Date: Tue Mar 8 22:48:06 2005 Subject: [Yarv-devel] translation of node_scope Message-ID: YARVCore 0.2.0 rev: 154 (2005-03-04) [direct threaded code] [optimize basic operation] [optimize regexp match] [stack caching] [inline method cache] . . . == disasm: ============================ local scope table (size: 1, argc: 1) 0000 getdynamic_SC_xx_ax1, 1 ( 149) 0003 putobject_OP_INT2FIX_O_1_C__SC_ax_ab 0004 opt_plus_SC_ab_ax 0005 setdynamic_SC_ax_xx1, 1 0008 putself_SC_xx_ax ( 152) 0009 getdynamic_OP_1_0_SC_ax_ab 0010 send_OP__WC___WC__Qfalse_0__WC__SC_ab_ax:record_usage, 1, 0014 end_SC_ax_ax 2 ------------------------------------------------------------------------ ----- /home/jeffm/yarv//lib/ruby/site_ruby/1.9/dbi/row.rb:157: [BUG] sorry, don't support this method type: NODE_SCOPE ruby 1.9.0 (2005-02-01) [i686-linux] simple question what is NODE_SCOPE? J. From drbrain at segment7.net Wed Mar 9 00:26:14 2005 From: drbrain at segment7.net (Eric Hodel) Date: Wed Mar 9 00:22:10 2005 Subject: [Yarv-devel] translation of node_scope In-Reply-To: References: Message-ID: <27a1a7019e053d74c80e51ac20d6b17d@segment7.net> On 08 Mar 2005, at 19:52, jm wrote: > ----------------------------------------------------------------------- > ------ > /home/jeffm/yarv//lib/ruby/site_ruby/1.9/dbi/row.rb:157: [BUG] sorry, > don't support this method type: NODE_SCOPE > ruby 1.9.0 (2005-02-01) [i686-linux] > > simple question what is NODE_SCOPE? In 1.8, NODE_SCOPE creates a new scope. Using ParseTree's parse_tree_show: class Example def example 1 + 1 end end Has the AST: [[:class, :Example, :Object, [:defn, :example, [:scope, [:block, [:args], [:call, [:lit, 1], :+, [:array, [:lit, 1]]]]]]]] But I don't recall if a NODE_SCOPE can be created outside of a def. (At least, I haven't seen any show up.) But 1.8 is likely to be totally unlike YARV in this respect. -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/yarv-devel/attachments/20050308/2797fb53/PGP.bin From jeffm at ghostgun.com Wed Mar 9 01:02:15 2005 From: jeffm at ghostgun.com (jm) Date: Wed Mar 9 00:57:35 2005 Subject: [Yarv-devel] translation of node_scope In-Reply-To: <27a1a7019e053d74c80e51ac20d6b17d@segment7.net> References: <27a1a7019e053d74c80e51ac20d6b17d@segment7.net> Message-ID: I've since worked around this problem, but still it's good to have an explanation. The work around was simple - put all the stuff using dbi out side of the __PROG__ in the modified test.rb example script. It now stops much later == disasm: ============================ local scope table (size: 1, argc: 1) 0000 getdynamic_SC_xx_ax1, 1 ( 114) 0003 putobject_OP_INT2FIX_O_1_C__SC_ax_ab 0004 opt_plus_SC_ab_ax 0005 setdynamic_SC_ax_xx1, 1 0008 putself_SC_xx_ax ( 117) 0009 getdynamic_OP_1_0_SC_ax_ab 0010 send_OP__WC___WC__Qfalse_0__WC__SC_ab_ax:record_usage, 1, 0014 end_SC_ax_ax 2 ------------------------------------------------------------------------ ----- vflow test-flowmeter.rb:126: [BUG] unknown type 0x22 (0x12 given) ruby 1.9.0 (2005-02-01) [i686-linux] Aborted vflow is a c module interface to flow-tools that I wrote. Does this mean that yarv doesn't handle compiled modules? Hopefully that makes sense as I'm running out the door as I write this. Jeff. On 09/03/2005, at 4:26 PM, Eric Hodel wrote: > On 08 Mar 2005, at 19:52, jm wrote: > But I don't recall if a NODE_SCOPE can be created outside of a def. > (At least, I haven't seen any show up.) But 1.8 is likely to be > totally unlike YARV in this respect. > > -- > Eric Hodel - drbrain@segment7.net - http://segment7.net > FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 From ko1 at atdot.net Sun Mar 13 10:12:25 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Sun Mar 13 10:07:59 2005 Subject: [Yarv-devel] translation of node_scope In-Reply-To: References: <27a1a7019e053d74c80e51ac20d6b17d@segment7.net> Message-ID: <42345859.2040107@atdot.net> Hi, jm wrote: > I've since worked around this problem, but still it's good to have an > explanation. The work around was simple - put all the stuff using dbi > out side of the __PROG__ in the modified test.rb example script. > It now stops much later > > == disasm: ============================ > local scope table (size: 1, argc: 1) > > 0000 getdynamic_SC_xx_ax1, 1 ( > 114) > 0003 putobject_OP_INT2FIX_O_1_C__SC_ax_ab > 0004 opt_plus_SC_ab_ax > 0005 setdynamic_SC_ax_xx1, 1 > 0008 putself_SC_xx_ax ( > 117) > 0009 getdynamic_OP_1_0_SC_ax_ab > 0010 send_OP__WC___WC__Qfalse_0__WC__SC_ab_ax:record_usage, 1, > 0014 end_SC_ax_ax 2 > ------------------------------------------------------------------------ > ----- > vflow > test-flowmeter.rb:126: [BUG] unknown type 0x22 (0x12 given) > ruby 1.9.0 (2005-02-01) [i686-linux] > > Aborted > > > vflow is a c module interface to flow-tools that I wrote. Does this > mean that yarv doesn't handle compiled modules? YARV supports compiled C method. > > Hopefully that makes sense as I'm running out the door as I write this. Can I get your script which cause [BUG] on YARV? From jeffm at ghostgun.com Sun Mar 13 17:23:58 2005 From: jeffm at ghostgun.com (jm) Date: Sun Mar 13 17:19:07 2005 Subject: [Yarv-devel] translation of node_scope In-Reply-To: <42345859.2040107@atdot.net> References: <27a1a7019e053d74c80e51ac20d6b17d@segment7.net> <42345859.2040107@atdot.net> Message-ID: On 14/03/2005, at 2:12 AM, SASADA Koichi wrote: >> Hopefully that makes sense as I'm running out the door as I write >> this. > > Can I get your script which cause [BUG] on YARV? I'll write a smaller version that may be more managable (ie I'll remove all the database stuff). J. From jeffm at ghostgun.com Tue Mar 15 22:12:25 2005 From: jeffm at ghostgun.com (jm) Date: Tue Mar 15 22:07:24 2005 Subject: [Yarv-devel] translation of node_scope In-Reply-To: References: <27a1a7019e053d74c80e51ac20d6b17d@segment7.net> <42345859.2040107@atdot.net> Message-ID: Sorry about the delay. Here's a cut down version of the script which exhibits the same bug. == disasm: =================================== local scope table (size: 1, argc: 1) 0000 getlocal_OP_2_SC_xx_ax ( 23) 0001 putobject_OP_INT2FIX_O_1_C__SC_ax_ab 0002 opt_plus_SC_ab_ax 0003 dup_SC_ax_ab 0004 setlocal_OP_2_SC_ab_ax 0005 end_SC_ax_ax 2 ------------------------------------------------------------------------ ----- /home/jeffm/yarv//lib/ruby/site_ruby/1.9/i686-linux/Vflow.so: [BUG] unknown type 0x22 (0x12 given) ruby 1.9.0 (2005-02-01) [i686-linux] Aborted You'll need to install vflow which can be found at http://ghostgun.com/software/vflow/ and have a valid flow file. Although, it doesn't seem to be getting that far. -------------- next part -------------- A non-text attachment was scrubbed... Name: testvflow.rb Type: application/octet-stream Size: 944 bytes Desc: not available Url : http://rubyforge.org/pipermail/yarv-devel/attachments/20050316/caf0b890/testvflow.obj -------------- next part -------------- Jeff. On 14/03/2005, at 9:23 AM, jm wrote: > > On 14/03/2005, at 2:12 AM, SASADA Koichi wrote: > >>> Hopefully that makes sense as I'm running out the door as I write >>> this. >> >> Can I get your script which cause [BUG] on YARV? > > > I'll write a smaller version that may be more managable (ie I'll > remove all the database stuff). > > J. > From cwillia1 at rochester.rr.com Thu Mar 24 23:17:20 2005 From: cwillia1 at rochester.rr.com (Chris Williams) Date: Thu Mar 24 23:12:26 2005 Subject: [Yarv-devel] YARV Roadmap? Message-ID: <000501c530f1$8a1a2cf0$6400a8c0@ChrisLaptop> Hello! I was just curious if there was a "roadmap" for YARV. I remember seeing In Sasada's RubyConf 2004 presentation a rough roadmap of development and releases. Does anyone know what the expectations are for the coming versions and release dates? Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/yarv-devel/attachments/20050324/f9aa72b9/attachment-0001.htm From ko1 at atdot.net Mon Mar 28 15:05:36 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Mon Mar 28 15:00:37 2005 Subject: [Yarv-devel] YARV Roadmap? In-Reply-To: <000501c530f1$8a1a2cf0$6400a8c0@ChrisLaptop> References: <000501c530f1$8a1a2cf0$6400a8c0@ChrisLaptop> Message-ID: <42486390.5020609@atdot.net> Hi, > I was just curious if there was a ?roadmap? for YARV. I remember seeing > In Sasada?s RubyConf 2004 presentation a rough roadmap of development > and releases. Does anyone know what the expectations are for the coming > versions and release dates? This is very sketchy plan: 2005: Summer merge eval.c and yarv Winter (native?) Thread support -- // SASADA Koichi at atdot dot net //