Re: [perl #53976] [PATCH] Remove tools/dev/ops_renum.mak

2008-08-22 Thread jerry gay
On Fri, Aug 22, 2008 at 7:20 PM, Will Coleda <[EMAIL PROTECTED]> wrote: > On Sat, Aug 16, 2008 at 11:39 PM, James Keenan via RT >> 4. Parrot::OpsRenumber::renum_op_map_file() has been revised so that it >> will behave properly before Parrot 1.0 -- when deletion of opcodes is >> still permitted --

Re: [perl #53976] [PATCH] Remove tools/dev/ops_renum.mak

2008-08-22 Thread Will Coleda
On Sat, Aug 16, 2008 at 11:39 PM, James Keenan via RT <[EMAIL PROTECTED]> wrote: > The patch attached, diff.trunk.opsrenum.txt, is an improved solution to > the problem posed by Coke in the OP of this RT. Here are its features, > working from the surface (e.g., file name changes) down to the metho

[perl #58238] [PROPOSAL][PIR] remove special handling of "addr" -> set_addr instruction mapping

2008-08-22 Thread via RT
# New Ticket Created by Klaas-Jan Stol # Please include the string: [perl #58238] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58238 > Parrot has an instruction called 'set_addr', that stores the address of a label into a

Re: new method question

2008-08-22 Thread John M. Dlugosz
Moritz Lenz moritz-at-casella.verplant.org |Perl 6| wrote: Attributes need to have a twigil, so it would be has $.name The syntax has $name; with no twigil is legal according to S12. Perhaps the original poster (Xiao Yafeng) might like to read

[perl #58244] inheritance of attributes

2008-08-22 Thread Stephen Simmons
# New Ticket Created by "Stephen Simmons" # Please include the string: [perl #58244] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58244 > In Apocalypse 12, inheritance of attributes is described, though I couldn't find it

Re: whats wrong with this code?

2008-08-22 Thread Larry Wall
On Fri, Aug 22, 2008 at 05:30:19PM -0500, Andy Colson wrote: > Moritz Lenz wrote: > > The recommended way to write such a sub is > > > > sub xsum([EMAIL PROTECTED]) { ... } > > xsum(|@x); > > Ahh, but, if I already had a list, would that flatten and then rebuild > the list, correct? (and would, e

Re: whats wrong with this code?

2008-08-22 Thread Moritz Lenz
Patrick R. Michaud wrote: > On Fri, Aug 22, 2008 at 04:34:04PM -0500, Andy Colson wrote: >> sub xsum (@list) >> { >> my $i = 0; >> print "summing: "; >> for @list >> { >> $i += $_; >> print $_,","; >> } >> say " = $i";

Re: whats wrong with this code?

2008-08-22 Thread Patrick R. Michaud
On Fri, Aug 22, 2008 at 04:34:04PM -0500, Andy Colson wrote: > sub xsum (@list) > { > my $i = 0; > print "summing: "; > for @list > { > $i += $_; > print $_,","; > } > say " = $i"; > return $i; > } > say "sum =

Re: [perl #58278] [BUG] Slurpy params give "Cannot morph a Perl6Scalar." error

2008-08-22 Thread Moritz Lenz
> r30449: > >> sub a([EMAIL PROTECTED]) { say @b.elems }; a(1, 2, 3) > Cannot morph a Perl6Scalar. > > Note that the passing itself doesn't throw an error: > >> sub a([EMAIL PROTECTED]) { }; a(1, 2, 3) >> > > Clearly we need more tests... Now added test in t/spec/S06-signature/slurpy-params.t

Re: [perl #58246] Arrays not interpolating correctly

2008-08-22 Thread Patrick R. Michaud
On Fri, Aug 22, 2008 at 07:05:00AM -0700, Clinton Gormley wrote: > > my @a = < 1 2 3 >; > say "@a[]"; > > "@a[]" > > Broken in version 29834 Correct, rakudo doesn't yet know how to interpolate arrays or hashes in double-quoted strings. This requires a change to the quote expression parser (whi

Re: whats wrong with this code?

2008-08-22 Thread Andy Colson
Moritz Lenz wrote: Hi Andy, you seem to have discovered a whole bunch of bugs at once :/ Andy Colson wrote: Hi List -- I'v started playing around with perl 6, and I am having problems with this example: use v6; sub xsum (@list) { my $i = 0; print "summing: "; f

Re: whats wrong with this code?

2008-08-22 Thread Moritz Lenz
Hi Andy, you seem to have discovered a whole bunch of bugs at once :/ Andy Colson wrote: > Hi List -- > > I'v started playing around with perl 6, and I am having problems with > this example: > > use v6; > > sub xsum (@list) > { > my $i = 0; > print "summing: "; >

Re: new method question

2008-08-22 Thread Moritz Lenz
Xiao Yafeng wrote: > There are no barewords in Perl 6, but it seems new method is an exception: > > class Dog { > > has $name; Attributes need to have a twigil, so it would be has $.name > method bark () { > say $name; > } > } > my $p = Dog.new(

[perl #58246] Arrays not interpolating correctly

2008-08-22 Thread via RT
# New Ticket Created by Clinton Gormley # Please include the string: [perl #58246] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58246 > my @a = < 1 2 3 >; say "@a[]"; > "@a[]" Broken in version 29834 clint

[perl #58258] The Rakudo REPL has no long-term memory

2008-08-22 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #58258] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58258 > Variables are not kept from one line to the other. r30452: $ ./perl6 > my $greeting = "

Re: [perl #58252] [TODO][PIR] finalize open issue with "pmc" type in .const definitions

2008-08-22 Thread Will Coleda
On Fri, Aug 22, 2008 at 11:06 AM, via RT Klaas-Jan Stol <[EMAIL PROTECTED]> wrote: > # New Ticket Created by Klaas-Jan Stol > # Please include the string: [perl #58252] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=58252 >

whats wrong with this code?

2008-08-22 Thread Andy Colson
Hi List -- I'v started playing around with perl 6, and I am having problems with this example: use v6; sub xsum (@list) { my $i = 0; print "summing: "; for @list { $i += $_; print $_,","; } say " = $i"; re

Re: gsoc_nci merge

2008-08-22 Thread François Perrad
2008/8/22 Kevin Tew <[EMAIL PROTECTED]>: > The merge has happened. > The target 'hello' seems broken : src/exec_start.o: In function `set_nci_I': /home/fperrad/checkout/parrot/src/jit_emit.h:96: undefined reference to `Parrot_store_arg' src/exec_start.o: In function `set_nci_N': /home/fperrad/che

[perl #58252] [TODO][PIR] finalize open issue with "pmc" type in .const definitions

2008-08-22 Thread via RT
# New Ticket Created by Klaas-Jan Stol # Please include the string: [perl #58252] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58252 > The following issues are not entirely clear from PDD19: [1] according to PDD19 (PIR)

[perl #58236] [TODO][PDD19] make decision on open issue on .return directive in pdd19

2008-08-22 Thread via RT
# New Ticket Created by Klaas-Jan Stol # Please include the string: [perl #58236] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58236 > PDD19, line 791 reads: The parentheses surrounding the arguments are mandatory. Besid

new method question

2008-08-22 Thread Xiao Yafeng
There are no barewords in Perl 6, but it seems new method is an exception: class Dog { has $name; method bark () { say $name; } } my $p = Dog.new($name => 'boo'); $p.bark;#error! my $p = Dog.new( name => 'boo');

Re: [perl #58170] Exception Handler Issues

2008-08-22 Thread Allison Randal
Stephen Weeks (via RT) wrote: There are some issues that need to be resolved for resumable exceptions. The first issue I've run into is that Parrot_cx_find_handler_local marks the exception handler as used when it finds it and ignores already-used exception handlers. This is an intentional fe

Re: gsoc_nci merge

2008-08-22 Thread Kevin Tew
I still think too much junk is in jit_emit.h The patch attached shows how I would re-factor it. Kevin NotFound wrote: On Fri, Aug 22, 2008 at 9:51 PM, Kevin Tew <[EMAIL PROTECTED]> wrote: 0015a810 t Parrot_store_arg little t means its not exported. set_nci_* functions should probably be

Re: gsoc_nci merge

2008-08-22 Thread NotFound
On Fri, Aug 22, 2008 at 9:51 PM, Kevin Tew <[EMAIL PROTECTED]> wrote: > 0015a810 t Parrot_store_arg > little t means its not exported. > > set_nci_* functions should probably be moved elsewhere. > as well as the Parrot_jit_build_call_func > I found Parrot_jit_build_call_func in src/jit/i386/ji

Re: gsoc_nci merge

2008-08-22 Thread Kevin Tew
Uh duh, start_exec.c includes jit_emit.h 0015a810 t Parrot_store_arg little t means its not exported. set_nci_* functions should probably be moved elsewhere. as well as the Parrot_jit_build_call_func I found Parrot_jit_build_call_func in src/jit/i386/jit_emit.h, so I made my changes in pla

Re: gsoc_nci merge

2008-08-22 Thread Kevin Tew
Looks like a weird linking error, I can reproduce it. cc -o examples/pasm/hello examples/pasm/hello.o src/exec_start.o src/parrot_config.o -Wl,-rpath=/home/tewk/srcs/nci/blib/lib -L/home/tewk/srcs/nci/blib/lib -lparrot -lm -L/usr/lib -licuuc -licudata -lm -ldl -lm -lpthread -lcrypt -lrt -lgmp

Re: My Parrot 0.7.0 patches (cygwin)

2008-08-22 Thread Moritz Lenz
Reini Urban wrote: > See > http://code.google.com/p/cygwin-rurban/source/browse/#svn/trunk/release/parrot/patches > > http://code.google.com/p/cygwin-rurban/source/browse/trunk/release/parrot/patches/series > defines the order. I tried to apply those patches stupidly both against HEAD and agains

Re: [svn:parrot] r30436 - trunk/compilers/pirc/new

2008-08-22 Thread Allison Randal
[EMAIL PROTECTED] wrote: > > {WS}"."{WS} means concatenation (as in $P0 . $P1) > {WS}"." means concatenation (as in $P0 .$P1) > "."{WS} means concatenation (as in $P0. $P1) > "." means method call (as in $P0.$P1) You can simplify even further and make these two syntax errors: {WS}"." means conc

Re: My Parrot 0.7.0 patches (cygwin)

2008-08-22 Thread Reini Urban
2008/8/22 Allison Randal <[EMAIL PROTECTED]>: >> As my number of patches is too big, and the size is too big, >> I update them only in my public SVN repo, not in the tickets anymore. >> And the order in which they should be applied is important. >> >> See >> http://code.google.com/p/cygwin-rurban/

gsoc_nci merge

2008-08-22 Thread Kevin Tew
The merge has happened. Developers/Users should see no visible changes. Please build and test, should you have any problems, just yell at me on #irc or parrot-porters. Regression test cases will be appreciated. :) I'll try to be available until 3:00pm MDT and later this evening 9:00pmMDT -> un

[perl #58250] [TODO] Generate callgrind output

2008-08-22 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #58250] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=58250 > Provide a mechanism (for example, compiling with -DPARROT_CALLGRIND)[1], that forces each

Damian Conway interview

2008-08-22 Thread Will Coleda
http://perlbuzz.com/2008/08/big-interview-with-damian-conway.html Talk at one point goes to perl6, and pugs vs. rakudo, and then talk about parrot. I am now officially warm and fuzzy for the next five minutes. -- Will "Coke" Coleda

Re: [CAGE] clean up stray test files

2008-08-22 Thread Allison Randal
James E Keenan wrote: Are these happening notwithstanding the patches I applied for RTs 57956, 57958 and 58036? The stray test files are gone now, and not recreated by 'make test', 'perl Configure.pl', or 'perl Configure.pl --test=configure'. Thanks! Allison

[svn:parrot-pdd] r30437 - trunk/docs/pdds

2008-08-22 Thread kjs
Author: kjs Date: Fri Aug 22 03:59:58 2008 New Revision: 30437 Modified: trunk/docs/pdds/pdd19_pir.pod Log: [pdd19] add a note about not-allowing space around the method-call dot. Modified: trunk/docs/pdds/pdd19_pir.pod =

Re: My Parrot 0.7.0 patches (cygwin)

2008-08-22 Thread Allison Randal
Reini Urban wrote: As my number of patches is too big, and the size is too big, I update them only in my public SVN repo, not in the tickets anymore. And the order in which they should be applied is important. See http://code.google.com/p/cygwin-rurban/source/browse/#svn/trunk/release/parrot/pa

Re: [perl #39742] [BUG] installed parrot conflicts with dev parrot.

2008-08-22 Thread Reini Urban
Attached is my latest version. make works with already installed shared lib, make installable fails on some languages with already installed /usr/lib/parrot and /usr/include/parrot. Fixing make installable belongs to a new ticket, as there's more involved. 2008/8/3 Reini Urban <[EMAIL PROTECTED]

Re: [perl #56996] [TODO] remove non FHS-compliant searchpaths

2008-08-22 Thread Reini Urban
This is where I stand now, and as it is in the 0.7.0 cygwin package. It works fine, but slow. There's a new installed key in the config hash, and the code to check this in library.c is ifdef'ed out as it generates a VM out of memory error. 2008/8/9 Reini Urban <[EMAIL PROTECTED]>: > Reini Urban

Re: [perl #58034] [TODO] save config_args for make reconfig

2008-08-22 Thread Reini Urban
2008/8/17 Reini Urban <[EMAIL PROTECTED]>: > James Keenan via RT schrieb: >> >> Reini, >> >> I would argue that we take a different approach with 'make reconfig'. We >> need to get rid of it entirely. In Parrot years, it's ancient code: >> >> $ svn blame config/gen/makefiles/root.in | grep -n -A 3

My Parrot 0.7.0 patches (cygwin)

2008-08-22 Thread Reini Urban
2008/8/17 Reini Urban <[EMAIL PROTECTED]>: > FYI: > The cygwin release for parrot-0.7.0-1 will contain the following yet > unapplied patches to make it work: > > (in this order from my quilt series file) > 39742-installed-conflict.patch > 56544-install_files.patch > 57006-opengl-cyg.patch -p0 I've