From jeffm at ghostgun.com Wed Aug 3 03:03:54 2005 From: jeffm at ghostgun.com (jm) Date: Wed Aug 3 02:55:48 2005 Subject: [Yarv-devel] yarv-0.2.1 errors with dbi Message-ID: I get two different errors depending on which directory I'm in not in yarv source directory $ ~/bin/ruby -rite ~/flowmeter-rb/flowmeter.rb /home/jeffm/bin/ruby: No such file to load -- ite (LoadError) in yarv source directory $ ~/bin/ruby -rite ~/flowmeter-rb/flowmeter.rb /home/jeffm/lib/ruby/site_ruby/1.9/dbi/row.rb:157: [BUG] Segmentation fault ruby 1.9.0 (2005-03-04) [i686-linux] Aborted If I add a -I get the [BUG] error likewise if I add -I ~/lib/ruby/site_ruby/1.9/i686-linux/. yarvcore is located in /home/jeffm/lib/ruby/site_ruby/1.9/i686-linux/yarvcore.so and $: is $ ~/bin/ruby -e 'puts $:' /home/jeffm/lib/ruby/site_ruby/1.9 /home/jeffm/lib/ruby/site_ruby/1.9/i686-linux /home/jeffm/lib/ruby/site_ruby /home/jeffm/lib/ruby/1.9 /home/jeffm/lib/ruby/1.9/i686-linux . I used the eval patch included in yarv-0.2.1 and I installed yarv. Is this path problem fixed in the subversion version or did I miss something? The [BUG] error refers the the last line of row.rb which only contains end # module DBI without the -rite option this script functions as expected. Any thoughts on either of these problems? Jeff. From ko1 at atdot.net Thu Aug 4 03:28:13 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Thu Aug 4 03:22:21 2005 Subject: [Yarv-devel] OOPSLA Poster was accepted Message-ID: <42F1C38D.2030700@atdot.net> Hi all, Thanks to you, my OOPSLA poster was accepted :) From ko1 at atdot.net Mon Aug 8 06:30:27 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Mon Aug 8 06:25:35 2005 Subject: [Yarv-devel] [ANN] YARV 0.2.2 Message-ID: <42F73443.2020404@atdot.net> Hi, I released YARV 0.2.2 (8-8 release). Changes: http://www.atdot.net/svn/yarv/trunk/Changes At next release (9/9), I'll merge YARV with Ruby interpreter (not with official CVS head, but with local copy of latest ruby). Regards, -- // SASADA Koichi at atdot dot net // From ko1 at atdot.net Mon Aug 8 09:09:49 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Mon Aug 8 09:04:56 2005 Subject: [Yarv-devel] yarv-0.2.1 errors with dbi In-Reply-To: References: Message-ID: <42F7599D.7040102@atdot.net> Hi, jm wrote: > I get two different errors depending on which directory I'm in > > not in yarv source directory > $ ~/bin/ruby -rite ~/flowmeter-rb/flowmeter.rb > /home/jeffm/bin/ruby: No such file to load -- ite (LoadError) > > in yarv source directory > > $ ~/bin/ruby -rite ~/flowmeter-rb/flowmeter.rb > /home/jeffm/lib/ruby/site_ruby/1.9/dbi/row.rb:157: [BUG] Segmentation fault > ruby 1.9.0 (2005-03-04) [i686-linux] > > Aborted > > If I add a -I get the [BUG] error likewise if I add -I > ~/lib/ruby/site_ruby/1.9/i686-linux/. yarvcore is located in > /home/jeffm/lib/ruby/site_ruby/1.9/i686-linux/yarvcore.so and $: is > > $ ~/bin/ruby -e 'puts $:' > /home/jeffm/lib/ruby/site_ruby/1.9 > /home/jeffm/lib/ruby/site_ruby/1.9/i686-linux > /home/jeffm/lib/ruby/site_ruby > /home/jeffm/lib/ruby/1.9 > /home/jeffm/lib/ruby/1.9/i686-linux > . > > I used the eval patch included in yarv-0.2.1 and I installed yarv. Is > this path problem fixed in the subversion version or did I miss something? > > The [BUG] error refers the the last line of row.rb which only contains > > end # module DBI > > without the -rite option this script functions as expected. > > Any thoughts on either of these problems? > > Jeff. > Without the -rite option, normal ruby (without yarv) will run. The "-rite" options means "require 'ite.rb'" And [BUG] should be YARV's bug... Regards, -- // SASADA Koichi at atdot dot net // From jeffm at ghostgun.com Mon Aug 8 20:34:22 2005 From: jeffm at ghostgun.com (jm) Date: Mon Aug 8 20:25:58 2005 Subject: [Yarv-devel] yarv-0.2.1 errors with dbi In-Reply-To: <42F7599D.7040102@atdot.net> References: <42F7599D.7040102@atdot.net> Message-ID: <33c6cb613fd9f3f72eabbea4de150fe1@ghostgun.com> On 08/08/2005, at 11:09 PM, SASADA Koichi wrote: > > Without the -rite option, normal ruby (without yarv) will run. > The "-rite" options means "require 'ite.rb'" > > And [BUG] should be YARV's bug... > Ah, copying ite.rb to ~/lib/ruby/site-ruby/1.9 fixes the required problem. Obvious when you think about, but I wasn't sure if you'd expanded the command line options of ruby. Should have known better. Why make life difficult by creating unnecessary work for yourself. This just leaves one question: Is it possible to trigger a backtrace on such a bug? I gather 'not yet' from the discuss in another thread (only glanced through it). On the good news front, yarv loads my c based module which uses the flow-tools library and runs correctly. Jeff. From ko1 at atdot.net Mon Aug 15 05:44:01 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Mon Aug 15 05:38:58 2005 Subject: [Yarv-devel] [ANN] YARV 0.3.0 Message-ID: <430063E1.80308@atdot.net> Hi, I'm very glad to announce the release of YARV 0.3.0. This version includes Ruby source code (2005-08-13) and merged with YARV. So you can experience Rite :) For example, you can't find "rb_eval()" in "eval.c". Homepage: http://www.atdot.net/yarv/ tar ball: http://www.atdot.net/yarv/yarv-0.3.0.tar.gz Limitations: * only "miniruby" was built * no "ext/" libraries * no "lib/" libraries * no thread support * no many many schemes * many legacy codes are remained -- // SASADA Koichi at atdot dot net // From ko1 at atdot.net Mon Aug 15 05:46:10 2005 From: ko1 at atdot.net (SASADA Koichi) Date: Mon Aug 15 05:41:05 2005 Subject: [Yarv-devel] [ANN] YARV 0.2.3 Message-ID: <43006462.7050804@atdot.net> Hi, YARV 0.2.3 was released some days ago. It was minor version up to support current ruby head. ... But maybe no one need it. -- // SASADA Koichi at atdot dot net // From george.marrows at ntlworld.com Thu Aug 18 16:46:03 2005 From: george.marrows at ntlworld.com (George Marrows) Date: Thu Aug 18 16:41:25 2005 Subject: [Yarv-devel] [ANN] YARV 0.3.0 In-Reply-To: <430063E1.80308@atdot.net> References: <430063E1.80308@atdot.net> Message-ID: <3F9358B8-C169-4A38-9C36-9B2A747426D3@ntlworld.com> > This version includes Ruby source code (2005-08-13) and merged with > YARV. So you can experience Rite :) For example, you can't find > "rb_eval()" in "eval.c". Very nice! It's good to see a merged version of the source. I had to apply the patch below to get it to compile on Mac OS 10.4, gcc 3.3: diff -ru yarv-0.3.0/error.c yarv/error.c --- yarv-0.3.0/error.c 2005-08-15 10:08:13.000000000 +0100 +++ yarv/error.c 2005-08-18 21:01:57.000000000 +0100 @@ -33,7 +33,7 @@ int ruby_nerrs; /* TODO */ -int ruby_in_eval; +RUBY_EXTERN int ruby_in_eval; static ID rb_get_callee_id(){ return rb_intern(""); } make test then runs successfully See http://arton.no-ip.info/diary/20050816.html for the original error - you'll understand the page better than I do! -- George -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/yarv-devel/attachments/20050818/eeab7626/attachment.htm From george.marrows at ntlworld.com Thu Aug 18 17:32:48 2005 From: george.marrows at ntlworld.com (George Marrows) Date: Thu Aug 18 17:28:18 2005 Subject: [Yarv-devel] [ANN] YARV 0.3.0 In-Reply-To: <3F9358B8-C169-4A38-9C36-9B2A747426D3@ntlworld.com> References: <430063E1.80308@atdot.net> <3F9358B8-C169-4A38-9C36-9B2A747426D3@ntlworld.com> Message-ID: <077A11DB-7AFD-4E7D-B2B0-41515C08935F@ntlworld.com> Ha! Seems already to be fixed in rev 248. Should have checked first - sorry for the noise. On 18 Aug 2005, at 21:46, George Marrows wrote: >> This version includes Ruby source code (2005-08-13) and merged with >> YARV. So you can experience Rite :) For example, you can't find >> "rb_eval()" in "eval.c". > > Very nice! It's good to see a merged version of the source. > > I had to apply the patch below to get it to compile on Mac OS 10.4, > gcc 3.3: > > diff -ru yarv-0.3.0/error.c yarv/error.c > --- yarv-0.3.0/error.c 2005-08-15 10:08:13.000000000 +0100 > +++ yarv/error.c 2005-08-18 21:01:57.000000000 +0100 > @@ -33,7 +33,7 @@ > int ruby_nerrs; > /* TODO */ > -int ruby_in_eval; > +RUBY_EXTERN int ruby_in_eval; > static ID rb_get_callee_id(){ > return rb_intern(""); > } > > make test then runs successfully > > > See http://arton.no-ip.info/diary/20050816.html for the original > error - you'll understand the page better than I do! > > -- George -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/yarv-devel/attachments/20050818/1630d3bc/attachment.htm From george.marrows at ntlworld.com Fri Aug 26 18:48:11 2005 From: george.marrows at ntlworld.com (George Marrows) Date: Fri Aug 26 18:43:38 2005 Subject: [Yarv-devel] New massign tests Message-ID: The results of some more ByteCodeRuby test mining - 6 new tests for massign, a couple of them pretty obscure. 3 pass, 3 fail - the failures have separate test methods. -- George george$ svn diffIndex: yarvtest/test_massign.rb =================================================================== --- yarvtest/test_massign.rb (revision 249) +++ yarvtest/test_massign.rb (working copy) @@ -85,6 +85,14 @@ x, y, *z = a, b [x, y] } + ae %q{ # only one item on rhs + *x = :x + x + } + ae %q{ # nil on rhs + *x = nil + x + } end def test_splat_r @@ -119,6 +127,10 @@ x, y = a, b, *c [x, y] } + ae %q{ + x=*nil + x + } end def test_splat_b1 @@ -339,6 +351,30 @@ [a, b1, b2, c, d, e] } end + + + def test_massign_value + # Value of this massign statement should be [1, 2, 3] + ae %q{ + a, b, c = [1, 2, 3] + } + end + + def test_nested_splat + # Somewhat obscure nested splat + ae %q{ + a = *[*[1]] + a + } + end + def test_calls_to_a + # Should be result of calling to_a on arg, ie [[1, 2], [3, 4]] + ae %q{ + x=*{1=>2,3=>4} + x + } + end + end Test results: 1) Failure: test_calls_to_a(TestMassign) [../yarv/yarvtest/yarvtest.rb:91:in `ae' ../yarv/yarvtest/test_massign.rb:375:in `test_calls_to_a']: <"[[1, 2], [3, 4]]\n"> expected but was <"{1=>2, 3=>4}\n">. 2) Failure: test_massign_value(TestMassign) [../yarv/yarvtest/yarvtest.rb:91:in `ae' ../yarv/yarvtest/test_massign.rb:360:in `test_massign_value']: <"[1, 2, 3]\n"> expected but was <"nil\n">. 3) Failure: test_nested_splat(TestMassign) [../yarv/yarvtest/yarvtest.rb:91:in `ae' ../yarv/yarvtest/test_massign.rb:368:in `test_nested_splat']: <"1\n"> expected but was <"[1]\n">.