Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Bob Rogers
From: "Patrick R. Michaud" <[EMAIL PROTECTED]> Date: Fri, 11 Jul 2008 22:59:05 -0500 On Fri, Jul 11, 2008 at 08:00:40PM -0700, Bob Rogers via RT wrote: >Of course, if cloning works the same as newclosure than we don't >need an explicit newclosure for the examples given, beca

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Patrick R. Michaud
On Fri, Jul 11, 2008 at 08:00:40PM -0700, Bob Rogers via RT wrote: >Of course, if cloning works the same as newclosure than we don't >need an explicit newclosure for the examples given, because >assignment already makes a clone. > > Assignment seems to do assign_pmc, which for a clos

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Bob Rogers
From: "Patrick R. Michaud" <[EMAIL PROTECTED]> Date: Fri, 11 Jul 2008 21:55:41 -0500 On Fri, Jul 11, 2008 at 10:04:54PM -0400, Bob Rogers wrote: > Absolutely, but that's not where the problem lies. The problem is that > r28763 did so implicitly and unconditionally, overwriting anyt

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Bob Rogers
From: "Patrick R. Michaud" <[EMAIL PROTECTED]> Date: Fri, 11 Jul 2008 19:22:49 -0500 On Sat, Jul 12, 2008 at 01:11:12AM +0200, Jonathan Worthington wrote: > This is consistent with my view of the specified Perl 6 semantics[1] for > closure handling. I translated Bob's Perl 5 exampl

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Patrick R. Michaud
On Fri, Jul 11, 2008 at 10:04:54PM -0400, Bob Rogers wrote: > Absolutely, but that's not where the problem lies. The problem is that > r28763 did so implicitly and unconditionally, overwriting anything > newclosure might have done. If you meant "have its outer_ctx set > I whenever an outer sub is

Re: Parallel branch

2008-07-11 Thread James E Keenan
Will Coleda wrote: What's this branch for, out of curiosity? http://rt.perl.org/rt3/Ticket/Display.html?id=56716

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Bob Rogers
From: "Patrick R. Michaud" <[EMAIL PROTECTED]> Date: Fri, 11 Jul 2008 16:23:28 -0500 On Fri, Jul 11, 2008 at 04:49:55PM -0400, Bob Rogers wrote: >Based on what Bob has been saying, I can't now think of a case where >an inner closure _shouldn't_ go ahead and have its outer_ct

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Patrick R. Michaud
On Sat, Jul 12, 2008 at 03:29:31AM +0200, Jonathan Worthington wrote: > But I'm not convinced that > we always take clones on referencing a block in Rakudo (OK, I've not > gone and looked, but I can't remember seeing anything that explicitly > does that, and I spend a lot of time staring at Raku

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Jonathan Worthington
Patrick R. Michaud wrote: Yes, the translation helps a lot. OK, good. But what you came up with is almost exactly what I would expect PCT/Rakudo to be generating _now_ for this code example (modulo a few minor details). I tried to write it so it wouldn't be far off what Rakudo would produce

[perl #50092] [TODO] pct - explicit transcode in PCT::Grammar::string_literal

2008-07-11 Thread NotFound via RT
Closing ticket

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Patrick R. Michaud
On Sat, Jul 12, 2008 at 01:11:12AM +0200, Jonathan Worthington wrote: > This is consistent with my view of the specified Perl 6 semantics[1] for > closure handling. I translated Bob's Perl 5 example into PIR and put > newclosure where the Perl 6 specification would suggest to put it and it > pro

[perl #56832] Fwd: src/jit/i386/core.jit:1031: error: ?DO? undeclared

2008-07-11 Thread Christoph Otto via RT
On Fri Jul 11 05:29:20 2008, coke wrote: > Belatedly add Moritz's response to the ticket. A fix for this bug was committed in r29289 which looks like it will resolve this issue. If that's the case, this ticket can be closed.

[perl #39930] [BUG] concat unicode+iso-8859-1 doesn't work w/o ICU

2008-07-11 Thread NotFound via RT
Closing ticket

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Jonathan Worthington
Hi all, Patrick R. Michaud wrote: On Fri, Jul 11, 2008 at 04:49:55PM -0400, Bob Rogers wrote: Content-Description: message body text This is certainly not the case for recursive subs. Consider the attached example, a lightweight Perl 5 dumper. (It is slightly artificial to break the rec

Re: [perl #56542] [PATCH] rename disassemble to pbc_disassemble

2008-07-11 Thread NotFound
Applied in r29309 -- Salu2

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Patrick R. Michaud
On Fri, Jul 11, 2008 at 04:49:55PM -0400, Bob Rogers wrote: Content-Description: message body text >This is certainly not the case for recursive subs. Consider the > attached example, a lightweight Perl 5 dumper. (It is slightly > artificial to break the recursive step out into a sub, but tha

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Patrick R. Michaud
On Fri, Jul 11, 2008 at 04:49:55PM -0400, Bob Rogers wrote: >Based on what Bob has been saying, I can't now think of a case where >an inner closure _shouldn't_ go ahead and have its outer_ctx set >whenever an outer sub is invoked . . . > > Foul! That's exactly what r28763 does to break

website, OSCON

2008-07-11 Thread Will Coleda
Can someone who is attending OSCON write up a blurb for the parrot web site similar to the (now past) one there for YAPC::NA? I'd be happy to post it if the person that writes it isn't Allison or chromatic... ^_^ Thanks... -- Will "Coke" Coleda

Re: [perl #56398] [BUG] lexical inner scope always keeps first lexpad (or something)

2008-07-11 Thread Bob Rogers
From: "Patrick R. Michaud" <[EMAIL PROTECTED]> Date: Fri, 11 Jul 2008 01:55:11 -0500 On Thu, Jul 10, 2008 at 11:06:55PM -0500, Patrick R. Michaud wrote: > > I _think_ [methods and subs] are the only two cases where we > have to do something like this, and I guess they aren't to

Re: [perl #56542] [PATCH] rename disassemble to pbc_disassemble

2008-07-11 Thread chromatic
On Friday 11 July 2008 13:32:40 Will Coleda via RT wrote: > > Two versions: > > Full CVS-style version: disassemble-long.patch > > I don't know how svn handles file renames. > > After svn renaming it would just be the shorter disassemble_rename.patch > This seems to have been warnocked. I have n

[perl #56670] small fixup for punie demo

2008-07-11 Thread Will Coleda via RT
On Mon Jul 07 08:43:14 2008, [EMAIL PROTECTED] wrote: > Is this '\n' controlled? it is suposed to be an example or it is a bug? > > [EMAIL PROTECTED]/prg/parrot/languages/punie$ svn diff > Index: demo.p1 > === > --- demo.p1 (revis

[perl #56542] [PATCH] rename disassemble to pbc_disassemble

2008-07-11 Thread Will Coleda via RT
On Wed Jul 02 15:31:05 2008, rurban wrote: > disassemble is too generic when being packaged into /usr/bin/. > > Two versions: > Full CVS-style version: disassemble-long.patch > I don't know how svn handles file renames. > After svn renaming it would just be the shorter disassemble_rename.patch Th

Re: [perl #50092] [TODO] pct - explicit transcode in PCT::Grammar::string_literal

2008-07-11 Thread NotFound
> When #39930 is resolved, we can eliminate the workaround. After applying a patch to #39930 in r29301, deleted this workaround in r29304 -- Salu2

[svn:parrot-pdd] r29298 - in trunk: docs/pdds/draft languages/pipp/src/pct

2008-07-11 Thread cotto
Author: cotto Date: Fri Jul 11 09:15:28 2008 New Revision: 29298 Modified: trunk/docs/pdds/draft/pdd19_pir.pod Changes in other areas also in this revision: Modified: trunk/languages/pipp/src/pct/actions.pm Log: [codingstd] whitespace fix and line length fix Modified: trunk/docs/pdds/dra

[perl #54384] [BUG] split opcode gives "failed assertion" when source string is null

2008-07-11 Thread NotFound via RT
Hearing no objections, ticket closed.

Re: [perl #39930] [BUG] concat unicode+iso-8859-1 doesn't work w/o ICU

2008-07-11 Thread NotFound
Patch applied in r29301 I changed the test, because the unicode: prefixed string is utf8 by default according the specs, and the current implementation seems to agree, so the result in utf8 is the expectation both with or without icu. -- Salu2

Re: [perl #48014] [DEPRECATED] PMC union struct

2008-07-11 Thread NotFound
On Thu, Jul 3, 2008 at 11:12 PM, Allison Randal via RT <[EMAIL PROTECTED]> wrote: > A bit more detail on the conversion process for a PMC: (snip) > 3) Change 'init' and 'init_pmc' to initialize the auto-generated struct > instead of whatever initialization it was doing before. For example, if > it

Re: [perl #56810] [CAGE] pf_items assumes sizeof(INTVAL) == sizeof(opcode_t)

2008-07-11 Thread Andy Dougherty
On Thu, 10 Jul 2008, Andrew Whitworth wrote: > I found this while tracking a nasty GC-related bug. In > src/packfile/pf_items.c:PF_fetch_integer, we have the following two > notes: > > XXX assumes C INTVAL size in the PackFile header > > XXX assume sizeof (opcode_t) == sizeof (INTVAL) on the mac

[perl #56816] [BUG] issues with PMCProxy, 'typeof', and 'get_class'

2008-07-11 Thread chromatic via RT
Fixed in r29283, and your PIR turned into a test. We might consider caching PMCProxy for all built-in PMCs (where they have no namespace attached), but with my current understanding, only classes need it, and then only if they extend built-in PMCs. That seems somewhat rare.

[perl #56828] [PATCH] Add nativecall support for void** params

2008-07-11 Thread via RT
# New Ticket Created by Donald Hunter # Please include the string: [perl #56828] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=56828 > Added support for void** params, i.e. for out parameters. This is required for functio

Re: Question about .sort and .reduce

2008-07-11 Thread Patrick R. Michaud
On Fri, Jul 11, 2008 at 03:27:26PM +0200, TSa wrote: > >Note that we already have: > > > >my @s = sort { $^a <=> $^b }, @a; > >my @s = @a.sort { $^a <=> $^b }; > > Is that the adverbial block syntax? If not how > would it look? The adverbial block syntax would be: @a.sort:{ $^a <=> $

[perl #56824] [PATCH] Configure - fix SEGV in JIT has_exec_protect test on Cygwin

2008-07-11 Thread via RT
# New Ticket Created by Donald Hunter # Please include the string: [perl #56824] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=56824 > Fixes a segv in the has_exec_protect test on Cygwin. config/auto/jit/test_exec_cygwin.

Re: Question about .sort and .reduce

2008-07-11 Thread TSa
HaloO, Patrick R. Michaud wrote: S29 doesn't show a 'sort' method defined on block/closure invocants... should there be? I doubt that. And to my eyes it looks funny. Only real block methods should be useful and since the class is mostly known at parse time unapplicable methods should be a co

[svn:parrot-pdd] r29292 - trunk/docs/pdds/draft

2008-07-11 Thread kjs
Author: kjs Date: Fri Jul 11 06:24:05 2008 New Revision: 29292 Modified: trunk/docs/pdds/draft/pdd19_pir.pod Log: [pdd19] add :lexid, but description not complete yet (not sure about details). Modified: trunk/docs/pdds/draft/pdd19_pir.pod =

Question about .sort and .reduce

2008-07-11 Thread Patrick R. Michaud
t/spec/S29-list/sort.t has the following test: my @a = (2, 45, 6, 1, 3); my @e = (1, 2, 3, 6, 45); my @s = { $^a <=> $^b }.sort: @a; is(@s, @e, '... with closure as direct invocant'); S29 doesn't show a 'sort' method defined on block/closure invocants... should there be? Note

[perl #56832] # src/jit/i386/core.jit:1031: error: 'DO' undeclared

2008-07-11 Thread Will Coleda
Belatedly add Moritz's response to the ticket. -- Will "Coke" Coleda -- Forwarded message -- From: Moritz Lenz <[EMAIL PROTECTED]> Date: Fri, Jul 11, 2008 at 6:00 AM Subject: Re: src/jit/i386/core.jit:1031: error: 'DO' undeclared To: tuxdna <[EMAIL PROTECTED]>, Perl 6 Internals <[

Re: [perl #56832] Fwd: src/jit/i386/core.jit:1031: error: ?DO? undeclared

2008-07-11 Thread NotFound
> Looks like it was just a DO/do typo, but the file has been changed > before I can try to do some test. No, it was a bad diagnostic from svn, my change has been commited. -- Salu2

Re: [perl #56832] Fwd: src/jit/i386/core.jit:1031: error: ?DO? undeclared

2008-07-11 Thread NotFound
>> src/exec_cpu.c >> src/jit/i386/core.jit: In function 'Parrot_eq_n_n_ic_exec': >> src/jit/i386/core.jit:1031: error: 'DO' undeclared (first use in >> this function) Looks like it was just a DO/do typo, but the file has been changed before I can try to do some test. -- Salu2

[perl #56832] Fwd: src/jit/i386/core.jit:1031: error: ?DO? undeclared

2008-07-11 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #56832] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=56832 > Open a ticket... -- Will "Coke" Coleda Begin forwarded message: > From: tuxdna <[EMAIL

Re: src/jit/i386/core.jit:1031: error: 'DO' undeclared

2008-07-11 Thread Moritz Lenz
tuxdna wrote: > Hi, > > I am using Fedora 8 > Linux 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686 > i386 GNU/Linux > gcc version 4.1.2 20070925 (Red Hat 4.1.2-33) It seems that was introduced in r29284 while trying to fix another issue. Maybe someone more familiar with the guts s

src/jit/i386/core.jit:1031: error: ‘DO’ undeclared

2008-07-11 Thread tuxdna
Hi, I am using Fedora 8 Linux 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686 i386 GNU/Linux gcc version 4.1.2 20070925 (Red Hat 4.1.2-33) $ make Compiling with: xx.c gcc -I./include -D_REENTRANT -D_GNU_SOURCE -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_

Re: step size of nums

2008-07-11 Thread TSa
HaloO, Mark J. Reed wrote: For any numeric type of $x, $x++ should mean $x += 1.3.14 becomes 4.14. -3.14 becomes -2.14 (which indicates that floor() is not involved) . 5/8 becomes 13/8. The step size is irrelevant. If $x is so large that adding 1 gets lost due to the precision, then OK, ++