[perl #60456] Str ~~ Grammar do not return Match object, but return strange hash

2008-11-13 Thread Patrick R. Michaud via RT
This issue should now be fixed in r32597 so that PGE::Match objects correctly return an ObjectRef and assigns properly into scalar types. Also, in order to help diagnose such issues in the future, I've added a .PARROT method to rakudo that can be used to better diagnose what is happening internall

Collapsing Junction states?

2008-11-13 Thread Patrick R. Michaud
Are duplicate values in any/all/none junctions expected to "collapse" such that each value becomes unique? For example, should any(1,2,2,1,2,3,2) internally reduce to the equivalent of any(1, 2, 3)? Or is this something that is left to individual implementations to decide? Presumably the values

Re: Collapsing Junction states?

2008-11-13 Thread Darren Duncan
Patrick R. Michaud wrote: Are duplicate values in any/all/none junctions expected to "collapse" such that each value becomes unique? For example, should any(1,2,2,1,2,3,2) internally reduce to the equivalent of any(1, 2, 3)? Or is this something that is left to individual implementations to d

Re: Collapsing Junction states?

2008-11-13 Thread TSa
HaloO, Patrick R. Michaud wrote: Presumably the values of a one() junction do not collapse in this way, otherwise we could easily lose the fact that a value occurs more than once: my $a = (one(1,2,3) % 2 == 1); Do I understand your question right, that you want the return of == to be fals

Re: Collapsing Junction states?

2008-11-13 Thread Leon Timmermans
> According to Synopsis 2, under "Immutable types", a Junction is a "Set with > additional behaviors". This implies to me a Junction consists just of > distinct unordered values. A Junction is not a Bag and it doesn't matter > that we lose the fact that a value occurred more than once in the argu

Re: Collapsing Junction states?

2008-11-13 Thread Leon Timmermans
On Thu, Nov 13, 2008 at 2:24 PM, TSa <[EMAIL PROTECTED]> wrote: > Do I understand your question right, that you want the return > of == to be false because there is a one(1,0,1) junction? As > Duncan points out junctions are immutable values and as such > the % autothreads but the resulting values

Re: Collapsing Junction states?

2008-11-13 Thread TSa
HaloO, Leon Timmermans wrote: Still that doesn't solve the problem of his code example. If my understanding of the synopses is correct, operations on junctions generate a new junction, so `one(1,2,3) % 2 == 1` will collapse to one(1 % 2 == 1, 2 % 2 == 1, 3 % 2 == 1), which is one(true, false, tr

[perl #57980] Fix bugs with nested ?? !!

2008-11-13 Thread Chris Dolan via RT
Attached is a very simple patch that solves the problem, but I've only tested lightly. ternary.patch Description: Binary data

[perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-11-13 Thread curtis_ovid_...@yahoo.com (via RT)
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #60510] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60510 > t/spec/S29-conversions/ord_and_chr.rakudo fails with: t/spec/S29-conversions/ord

[perl #60512] [PATCH] rewrite of names.t to PIR

2008-11-13 Thread via RT
# New Ticket Created by Bruce Stockwell # Please include the string: [perl #60512] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60512 > This is a rewrite of t/names.t from a perl test to a PIR test names.t | 63 ++

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

2008-11-13 Thread coke
Author: coke Date: Thu Nov 13 07:24:58 2008 New Revision: 32615 Modified: trunk/docs/pdds/pdd19_pir.pod Log: RT #45859; remove last docu-reference. Modified: trunk/docs/pdds/pdd19_pir.pod == --- trunk/docs/pdds/pdd19

[perl #60506] Segmentation fault in t/pmc/pmc.t

2008-11-13 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #60506] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60506 > for a few days now t/pmc/pmc.t fails with a segfault in the third test: $ ./parrot t/pmc

Re: Collapsing Junction states?

2008-11-13 Thread Patrick R. Michaud
On Thu, Nov 13, 2008 at 02:55:06PM +0100, Leon Timmermans wrote: > On Thu, Nov 13, 2008 at 2:24 PM, TSa <[EMAIL PROTECTED]> wrote: > > Pm wrote: > > > Presumably the values of a one() junction do not collapse in > > > this way, otherwise we could easily lose the fact that > > > a value occurs more

Re: Collapsing Junction states?

2008-11-13 Thread TSa
HaloO, Leon Timmermans wrote: But of what use would one() if it were to use those semantics? It would be essentially the same as any(), and it would definitely not DWIM. So you want one(1,1,2,3) to compare equal to 2 or 3 and exclude 1 because it is in the junction twice. That could be accompl

Re: Collapsing Junction states?

2008-11-13 Thread TSa
HaloO, Patrick R. Michaud wrote: I expect that $a will become one(True, False, True). $a doesn't collapse to a non-Junction False until it is used in a boolean context. My proposal is a different unification behavior in one() junctions. my $a = one(1,2,3) % 2 == 1; --> my $a = o

[perl #57980] Fix bugs with nested ?? !!

2008-11-13 Thread Patrick R. Michaud via RT
On Wed Nov 12 23:00:38 2008, chrisdolan wrote: > Attached is a very simple patch that solves the problem, but I've only > tested lightly. I am truly impressed -- this particular approach to solving the problem never occurred to me. Patch applied (r32618), thanks! Pm

[perl #57980] Fix bugs with nested ?? !!

2008-11-13 Thread Patrick R. Michaud via RT
On Wed Nov 12 23:00:38 2008, chrisdolan wrote: > Attached is a very simple patch that solves the problem, but I've only > tested lightly. I am truly impressed -- this particular approach to solving the problem never occurred to me. Patch applied (r32618), thanks! Pm

Are eqv and === junction aware?

2008-11-13 Thread TSa
HaloO, reading the "Collapsing Junction states" thread I wondered how eqv and === handle junctions. I would expect all(1,2) === all(1,2) to evaluate to True and not expand to 1 === 1 && 1 === 2 && 2 === 1 && 2 === 2 which is False. OTOH, 2 === any(1,2,3) should be False because 2.W

Re: More about arrayref/hashref in spectest suite

2008-11-13 Thread TSa
HaloO, Patrick R. Michaud wrote: By way of illustration, contrast the two assignments at the end of the following code: my @x = ; my @y; @y[1] = @x, 'c'; @y[1,2,3] = @x, 'c'; The second assignment would seem to clearly be a list assignment, leaving @y with (undef, 'a', 'b', 'c

Re: Collapsing Junction states?

2008-11-13 Thread Larry Wall
On Thu, Nov 13, 2008 at 05:02:56PM +0100, TSa wrote: > HaloO, > > Patrick R. Michaud wrote: >> I expect that $a will become one(True, False, True). $a doesn't >> collapse to a non-Junction False until it is used in a boolean context. > > My proposal is a different unification behavior in one() jun

Re: Are eqv and === junction aware?

2008-11-13 Thread Larry Wall
On Thu, Nov 13, 2008 at 05:37:21PM +0100, TSa wrote: > HaloO, > > reading the "Collapsing Junction states" thread I wondered > how eqv and === handle junctions. I would expect > >all(1,2) === all(1,2) > > to evaluate to True and not expand to > >1 === 1 && 1 === 2 && 2 === 1 && 2 === 2 > >

Re: Collapsing Junction states?

2008-11-13 Thread Patrick R. Michaud
On Thu, Nov 13, 2008 at 09:40:19AM -0800, Larry Wall wrote: > On Thu, Nov 13, 2008 at 05:02:56PM +0100, TSa wrote: > > Patrick R. Michaud wrote: > >> I expect that $a will become one(True, False, True). $a doesn't > >> collapse to a non-Junction False until it is used in a boolean context. > > > >

[perl #60444] [PATCH] Improve junctions to store only unique eigenstates.

2008-11-13 Thread Patrick R. Michaud via RT
After getting confirmation from p6l... Applied in r32625, thanks! Pm

Re: [perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-11-13 Thread Patrick R. Michaud
On Wed, Nov 12, 2008 at 03:35:08PM -0800, [EMAIL PROTECTED] (via RT) wrote: > t/spec/S29-conversions/ord_and_chr.rakudo fails with: > > t/spec/S29-conversions/ord_and_chr.rakudo (Wstat: 10 Tests: 170 Failed: 0) > Parse errors: Bad plan. You planned 240 tests but ran 170. > > However, it runs

Re: [perl #54000] [DEPRECATED] get_array, get_list, get_scalar methods

2008-11-13 Thread Patrick R. Michaud
On Thu, Nov 13, 2008 at 07:40:52AM -0800, Will Coleda via RT wrote: > > I probably just need to remove the methods from the code, > > see what breaks, and fix what breaks. I'll try to do that this > > weekend before the release. If it doesn't happen then, we can > > do it immediately following th

[perl #57444] [PATCH] add the S29-trig tests to spectest regression

2008-11-13 Thread Patrick R. Michaud via RT
Can this ticket be closed? Pm

Re: [perl #60506] Segmentation fault in t/pmc/pmc.t

2008-11-13 Thread chromatic
On Thursday 13 November 2008 13:54:36 James Keenan via RT wrote: > At r32625, I am observing this on Darwin/PPC -- but it passes on > Linux/i386. Darwin below. Is the backtrace the same as the one Moritz posted? -- c

Re: [perl #57444] [PATCH] add the S29-trig tests to spectest regression

2008-11-13 Thread Moritz Lenz
Patrick R. Michaud via RT wrote: > Can this ticket be closed? I'd say we stall it until the :trig tag export works for the trigonometric functions. Moritz -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/

[perl #60482] Rakudo dies strangely on .trans calls to strings coming from PGE

2008-11-13 Thread Patrick R. Michaud via RT
On Wed Nov 12 08:07:43 2008, pmichaud wrote: > On Tue, Nov 11, 2008 at 08:43:09AM -0800, Carl Mäsak wrote: > > rakudo: for "foo\nbar\nbaz".split( /\n ** 2..*/ ) { say > > .trans([ /\s+/ => " " ]) } > > rakudo 32543: OUTPUT[too few arguments passed (2) - 3 params > > expected␤current instr.: '_blo

Re: [perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-11-13 Thread Ovid
--- On Thu, 13/11/08, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > Again, this is all with r32625, YMMV with other revisions > (and please > report whatever other clues you may find). Ah, sorry. I should have known better :) r32580 $ uname -a Darwin curtis-poes-computer-2.local 9.5.1 Darwin

Re: [perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-11-13 Thread Mark J. Reed
On Thu, Nov 13, 2008 at 5:31 PM, Ovid <[EMAIL PROTECTED]>wrote: > Now this test passes (r32629), but the Perl 6 test suite is still failing. > Now, however, I can't tell which test fails. Seems like the summary report should at least include counts of passed vs failed tests. I assume the resul

Re: [perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-11-13 Thread Mark J. Reed
I retract the previous comment. It was based on the file sent by Ovid; when I run make spectest myself, I get more informative output. In my case, 2 of the declaration-order tests are what's failing: Failed Test Stat Wstat Total Fail List of Failed --

Re: [perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-11-13 Thread Patrick R. Michaud
On Thu, Nov 13, 2008 at 06:03:09PM -0500, Mark J. Reed wrote: > > It would also help if the actual test output weren't overrun with "Use of > uninitialized value". Is that the result of bad tests or bad harness? In some cases it's bad tests -- i.e., tests that are using values of undef when the

Re: [perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-11-13 Thread Patrick R. Michaud
On Thu, Nov 13, 2008 at 06:03:09PM -0500, Mark J. Reed wrote: > Now this test passes (r32629), but the Perl 6 test suite is still failing. > Now, however, I can't tell which test fails. > > Seems like the summary report should at least include counts of passed vs > failed tests. I assume

MAIN conflict in S06?

2008-11-13 Thread Patrick R. Michaud
S06:2362 says: You can get the current routine name by calling C<&?ROUTINE.name>. (The outermost routine at a file-scoped compilation unit is always named C<&MAIN> in the file's package.) Is this the same MAIN that is described later in "Declaring a MAIN subroutine"? It seems like t

Re: [perl #60312] [BUG] OpenBSD Smolder test failures

2008-11-13 Thread chromatic
On Monday 03 November 2008 09:38:11 Andy Dougherty wrote: > > 3. 1 of the tests appears to fail depending on how the OS initial- > > cases 'Inf'. Again, could this be addressed in a hints file? > > This too is a long-standing problem: See [perl #19183]. It stalled > pending a decision on wheth

Re: Collapsing Junction states?

2008-11-13 Thread Darren Duncan
Larry Wall wrote: It seems simpler to say that one() produces bags rather than sets. If we don't make other modifications to the language then this would mean that a Junction is defined over a union type, "Set|Bag with additional behaviors", depending on what operator constructed it. Now ma

Re: Collapsing Junction states?

2008-11-13 Thread Mark Biggar
Darren Duncan wrote: Larry Wall wrote: It seems simpler to say that one() produces bags rather than sets. If we don't make other modifications to the language then this would mean that a Junction is defined over a union type, "Set|Bag with additional behaviors", depending on what operator co

Re: [perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-11-13 Thread Ovid
--- On Thu, 13/11/08, Mark J. Reed <[EMAIL PROTECTED]> wrote: > Failed Test Stat Wstat Total Fail > List of Failed > ---

Re: [perl #57438] [DEPRECATED] [PDD19] .pragma n_operators

2008-11-13 Thread Allison Randal
Will Coleda via RT wrote: This appears to be the only .pragma; should we leave a placeholder or just remove .pragma entirely when we remove this particular one? Nuke it. Allison

Re: [perl #60044] [BUG?] rethrow just throwing?

2008-11-13 Thread Allison Randal
Martin D Kealey wrote: What about keeping track of where the exception was originally created? If we have lazy exceptions, then knowing where the fault they represent was detected is probably more important than were (exactly) it was triggered. Or does this all amount to the same thing? Is an

Re: Are eqv and === junction aware?

2008-11-13 Thread Jon Lang
Larry Wall wrote: > eqv and === autothread just like any other comparisons. If you really > want to compare the contents of two junctions, you have to use the > results of some magical .eigenmumble method to return the contents > as a non-junction. Possibly stringification will be sufficient, if

Re: [perl #53210] [TODO] change new_from_string to init_str

2008-11-13 Thread Allison Randal
Andrew Whitworth via RT wrote: On Tue Apr 22 10:05:57 2008, [EMAIL PROTECTED] wrote: We've been kicking around the idea of removing new_from_string for a while, but the pushback is always that it's useful to be able to create a new PMC with some initialization data, without first creating a PMC

Re: [perl #60000] [BUG][IMCC] an :immediate sub cannot load_bytecode

2008-11-13 Thread chromatic
On Sunday 19 October 2008 14:02:58 Klaas-Jan Stol wrote: > when running code as this: > .sub main :immediate > load_bytecode "foo.pir" > .end > > (assuming you have a file 'foo.pir'), IMCC can't handle this. > > This is because in pbc.c, a global structure called 'globals' is used to > allow the

Re: [perl #43831] [CAGE] Document how we do function decoration

2008-11-13 Thread Allison Randal
Andrew Whitworth via RT wrote: 1) Rename this ticket to something more descriptive 2) Rename seatbelts.pod to something more descriptive, like /docs/dev/C_Functions.pod or something. 3) Expand that documentation to include more cases (ARGIN, ARGMOD, ARGOUT, all the *_NULLOK variants of those, et

Re: [perl #60170] Segfault in verify_signature

2008-11-13 Thread chromatic
On Monday 27 October 2008 09:14:32 Will Coleda wrote: > While trying to duplicate the tcl segfault in PIR, I was able to > generate PIR that reliably segfaulted; except it turned out it was > segfaulting a different way: > > .sub '__onload' :immediate > load_bytecode 'TGE.pbc' > push_eh cl