Re: [perl #44845] [PATCH] C++ cleanups for Solaris CC

2008-12-16 Thread NotFound
> I just tried to build parrot with g++ on darwin/intel to see if I could > replicate the initial failure > reported in the ticket, but am unable to. (g++ is detected as gcc, and then > we pass it an option > that makes it explode.) What Configure options do you used? I usually do: --cc=g++ --c

Re: Better "sort" spec?

2008-12-16 Thread Larry Wall
On Fri, Dec 12, 2008 at 11:49:37PM -0500, Uri Guttman wrote: : so you have not discovered something new in perl or perl6 regarding : sorting. it has been covered and in depth but never properly integrated : into the p6 docs. It will be more useful if you comment relative to the existing design fou

Re: What does a Pair numify to?

2008-12-16 Thread Larry Wall
On Mon, Dec 15, 2008 at 04:43:51PM -0700, David Green wrote: > I can't really think of a great example where you'd want to numify a > pair, but I would expect printing one to produce something like "a => > 23" (especially since that's what a one-element hash would print, > right?). Nope, wou

Re: What does a Pair numify to?

2008-12-16 Thread Jon Lang
On Mon, Dec 15, 2008 at 10:26 PM, Larry Wall wrote: > On Mon, Dec 15, 2008 at 04:43:51PM -0700, David Green wrote: >> I can't really think of a great example where you'd want to numify a >> pair, but I would expect printing one to produce something like "a => >> 23" (especially since that's what a

[perl #57984] Finish implementing given and check/fix tests in S04-statements\given.t

2008-12-16 Thread Moritz Lenz via RT
On Sat Aug 16 07:29:43 2008, je...@perl.org wrote: > - Need resumable exceptions (Parrot) Fixed in r33942 .

Re: What does a Pair numify to?

2008-12-16 Thread TSa
HaloO, Moritz Lenz wrote: The counter example is if you want to print a pair: .say for %hash.pairs.sort: { .value }; In that case it would be nice to have the key appear in the stringification. I see no problem as long as say gets a pair as argument. Then it can print the key and value separ

Re: Working with files wish list

2008-12-16 Thread Timothy S. Nelson
On Tue, 16 Dec 2008, jason switzer wrote: You can already easily mix it in using 'does': $fstab = open('/etc/fstab', :r); $fstab does WhitespaceTrim; I don't think it's really necessary to include that into open(), though it might be useful syntactic sugar. I haven't spent the time to unders

[perl #61394] Re: unicode and macosx

2008-12-16 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #61394] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61394 > my $s = " "; say $s.chars # now returns 1 Note : the bug was reported on macinte

[perl #59244] [TODO] Implement infix: for Pairs

2008-12-16 Thread Patrick R. Michaud via RT
On Wed Sep 24 17:24:16 2008, pmichaud wrote: > On Wed, Sep 24, 2008 at 04:53:54PM -0700, chromatic wrote: > > On Tuesday 23 September 2008 09:35:05 Moritz Lenz wrote: > > > > > %hash.pairs.sort needs infix: to work properly with Pair as input. > > > > > > It should be easy to add a multi that does

[perl #61364] sort() should implement a stable sort

2008-12-16 Thread Patrick R. Michaud via RT
On Sun Dec 14 11:47:58 2008, moritz wrote: > S29 says: > > : If all criteria are exhausted when comparing two elements, sort should > : return them in the same relative order they had in @values. > > or in terms of computer science, the sort should be stable. > > Rakudo r33895 doesn't do this, a

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-16 Thread David Green
On 2008-Dec-6, at 7:37 am, Aristotle Pagaltzis wrote: Funnily enough, I think you’re onto something here that you didn’t even notice: [...] if we had a NOTFIRST (which would run before ENTER just as FIRST does, but on *every* iteration *except* the first), then we could trivially attain the

[perl #59394] [PATCH] Implementation of Pair.pairs.

2008-12-16 Thread Patrick R. Michaud via RT
Added in r33963, thanks! Pm

Re: [perl #41243] [TODO] Link on Win32 with Borland C++

2008-12-16 Thread Andrew Whitworth
I'll pick up borland and play with it, although I won't get to it until the next cycle. I've got a really old version of Turbo C++ 4.52 left over from school, and free versions of Turbo C++ Explorer are available for download. I don't promise any miracles, but at least I will be able to prove that

Re: Proposal: Make @a and @@a different variables

2008-12-16 Thread TSa
HaloO, Daniel Ruoso wrote: That being said, we should note that this example looks simple because we have almost no lazyness implied (since there's an assignment in the first line), every list access requires the evaluation of the flatenning of the list. my @@a = ((),(1,2,3),()); Mustn't th

Re: [perl #61092] JSON/pge2pir.pir segaful on amd64

2008-12-16 Thread Илья
Hi! Yes I use Ubuntu. libicu36-dev 3.6-2etch1 Parrot 33940 maked on my box, but make test fail: Test Summary Report --- t/pmc/fixedfloatarray.t (Wstat: 11 Tests: 0 Failed: 0) Parse errors: Bad plan. You planned 24 tests but ran 0. t/pmc/multisub.t

Re: What does a Pair numify to?

2008-12-16 Thread Jon Lang
TSa wrote: > I see no problem as long as say gets a pair as argument. Then it can > print the key and value separated with a tab. More problematic are > string concatenations of the form > > say "the pair is: " ~ (foo => $bar); > > which need to be written so that say sees the pair > > say "the

Proposal: Make @a and @@a different variables

2008-12-16 Thread Daniel Ruoso
Hi, One of the hardest features in Perl 6 is the slice context. It is undoubtfully usefull, since it provides semantics to acces each iteration of a map, for instance. But there's one thing in the spec that makes not only slices, but the lists themselves considerably harder to implement, and that

Re: [perl #41243] [TODO] Link on Win32 with Borland C++

2008-12-16 Thread Ron Blaschke
Andrew Whitworth wrote: > I'll pick up borland and play with it, although I won't get to it > until the next cycle. I've got a really old version of Turbo C++ 4.52 > left over from school, and free versions of Turbo C++ Explorer are > available for download. I don't promise any miracles, but at lea

Re: What does a Pair numify to?

2008-12-16 Thread Jon Lang
Moritz Lenz wrote: > Off the top of my head, see S06 for the gory details: > > my $pair = a => 'b'; > > named(a => 'b'); > named(:a); > named(|$pair); > > positional((a => 'b')); > positional((:a)); > positional($pair); As you say: the gory details, emphasis on gory. But if that's the way of thin

Re: [perl #41243] [TODO] Link on Win32 with Borland C++

2008-12-16 Thread Andrew Whitworth
On Tue, Dec 16, 2008 at 1:20 PM, Ron Blaschke wrote: > Some time ago, because of this ticket, I tried with Borland C++ 5.5.1 > and 5.82, and failed miserably. But that may just be my bad bcc-foo. > Unless someone's keen for this platform and has access to a fairly new > ("within two years") versi

Re: [perl #41243] [TODO] Link on Win32 with Borland C++

2008-12-16 Thread Will Coleda
Unless this task would make you exceedingly happy, I wouldn't bother. IMO, there are much higher priority things requiring tuits than trying to add a fourth compiler for windows, especially before the 1.0 release. Regards. On Tue, Dec 16, 2008 at 1:24 PM, Andrew Whitworth wrote: > On Tue, Dec 1

Re: Perl as a better web language ?

2008-12-16 Thread Timothy S. Nelson
On Sun, 14 Dec 2008, Marc Chantreux wrote: On Sat, Dec 13, 2008 at 01:34:44PM +1100, Timothy S. Nelson wrote: On Sat, 13 Dec 2008, howard chen wrote: What I think is more likely to happen in reality is that people will make various Perl6 "distros", ie. the Perl6 core + whatever modules

Re: Proposal: Make @a and @@a different variables

2008-12-16 Thread Daniel Ruoso
Em Ter, 2008-12-16 às 18:47 +0100, TSa escreveu: > > # the following will require a flatenning to get the actual index > > say @a[3]; > Could we not shift the problem into a more complicated form > of the size of the array? Here it has size 0+3+0 but each of the > summands could be lazy and hen

Re: Out of CONTROL...?

2008-12-16 Thread Larry Wall
On Mon, Dec 08, 2008 at 02:32:14PM -0600, Patrick R. Michaud wrote: : A very interesting question came up on #perl today, so I'm : forwarding it to p6l for discussion/decision. : : Given the following code: : : sub foo() { return 1; } : sub bar() { warn "oops"; } : : { :

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

2008-12-16 Thread kjs
Author: kjs Date: Tue Dec 16 12:09:02 2008 New Revision: 33979 Modified: trunk/docs/pdds/pdd19_pir.pod Log: [pdd19] change some {{ }} notes in more formal notes, indicating the current behaviour, and what it will be like. More cleanups of pdd19 will come after more deprecated stuff is remove

Re: Proposal: Make @a and @@a different variables

2008-12-16 Thread Larry Wall
I think I'm fine with making them separate. Recursive lazy flattening seems too evil; slice and list contexts should not try to do the work of captures. Thanks. Larry

Re: Resume from exception

2008-12-16 Thread Larry Wall
On Mon, Dec 15, 2008 at 03:06:44PM -0700, Stephen Weeks wrote: : do { : die 'some text'; : say 'after the exception'; : CATCH { : say 'caught the exception'; : ...; # what goes here? : } : } : : My proposal is to call .resume() on the exception object. It could jus

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

2008-12-16 Thread allison
Author: allison Date: Tue Dec 16 14:03:21 2008 New Revision: 33985 Modified: trunk/docs/pdds/pdd22_io.pod Log: [pdd] Remove section on Deprecated Opcodes from I/O PDD, now that all of them have been removed. Modified: trunk/docs/pdds/pdd22_io.pod =

Re: [perl #37700] [TODO] Changing Default STDOUT/STDERR Filehandles for PIR Code

2008-12-16 Thread chromatic
On Tuesday 16 December 2008 15:40:32 Allison Randal via RT wrote: > The simple solution is to add opcodes for 'setstdin', 'setstdout', and > 'setstderr' that change the interpreter's stored FileHandle PMCs to a > PMC passed in as an argument. This will not effect any C code that > directly calls t

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

2008-12-16 Thread chromatic
Author: chromatic Date: Tue Dec 16 16:05:40 2008 New Revision: 33998 Modified: trunk/docs/pdds/draft/pdd14_numbers.pod Log: [PDD] Updated link to IBM's decimal arithmetic library (thanks to Geraud for finding its new location). Modified: trunk/docs/pdds/draft/pdd14_numbers.pod ===

Re: Proposal: Make @a and @@a different variables

2008-12-16 Thread Moritz Lenz
TSa wrote: > HaloO, > > Daniel Ruoso wrote: >> That being said, we should note that this example looks simple because >> we have almost no lazyness implied (since there's an assignment in the >> first line), every list access requires the evaluation of the flatenning >> of the list. >> >> my @@

[perl #61412] [BUG] binding hash values fails with 'rtype not set'

2008-12-16 Thread via RT
# New Ticket Created by Jeff Horwitz # Please include the string: [perl #61412] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61412 > In r33954 this succeeds in Rakudo: > my %hash; %hash = 'bar'; say %hash; bar but this

Re: What does a Pair numify to?

2008-12-16 Thread Moritz Lenz
Jon Lang wrote: > That's a good point. Is there an easy way to distinguish between > passing a pair into a positional parameter vs. passing a value into a > named parameter? Off the top of my head, see S06 for the gory details: my $pair = a => 'b'; named(a => 'b'); named(:a); named(|$pair);

Re: [perl #41243] [TODO] Link on Win32 with Borland C++

2008-12-16 Thread Steve Peters
On Tue, Dec 16, 2008 at 12:20 PM, Ron Blaschke wrote: > Andrew Whitworth wrote: >> I'll pick up borland and play with it, although I won't get to it >> until the next cycle. I've got a really old version of Turbo C++ 4.52 >> left over from school, and free versions of Turbo C++ Explorer are >> ava

[perl #61420] [PATCH] Add support for .succ and .pred for Int, Num and Str

2008-12-16 Thread Eric Hodges
# New Ticket Created by "Eric Hodges" # Please include the string: [perl #61420] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61420 > Index: src/classes/Int.pir ===

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-16 Thread Timothy S. Nelson
On Tue, 16 Dec 2008, David Green wrote: On 2008-Dec-6, at 7:37 am, Aristotle Pagaltzis wrote: Funnily enough, I think you?re onto something here that you didn?t even notice: [...] if we had a NOTFIRST (which would run before ENTER just as FIRST does, but on *every* iteration *except* the first

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-16 Thread Jon Lang
How do you compute '*'? That is, how do you know how many more iterations you have to go before you're done? Should you really be handling this sort of thing through an "iteration count" mechanism? How do you keep track of which iteration you're on? Is it another detail that needs to be handled

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-16 Thread Timothy S. Nelson
On Tue, 16 Dec 2008, Jon Lang wrote: How do you compute '*'? That is, how do you know how many more iterations you have to go before you're done? In some cases, it won't have to be computed, in some cases it won't be computeable (which should be an error). I'd say it'd be fair enough to sa

Re: Working with files wish list

2008-12-16 Thread Leon Timmermans
On Tue, Dec 16, 2008 at 7:04 AM, jason switzer wrote: > I hadn't seen a Nameable role mentioned yet, so I wasn't able to understand > any such concept. The list was not meant to be exhaustive. There are a lot more roles that have something to do with IO but were missing: Asynchronous IO, Datagram

Re: [perl #61412] [BUG] binding hash values fails with 'rtype not set'

2008-12-16 Thread Patrick R. Michaud
On Tue, Dec 16, 2008 at 10:02:23AM -0800, Jeff Horwitz wrote: > # New Ticket Created by Jeff Horwitz > # Please include the string: [perl #61412] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=61412 > > > > In r33954 th

6PAN idea

2008-12-16 Thread Timothy S. Nelson
Hi all. I've been working on some stuff that's vaguely, tangentially CPAN-related. My basic assumption is that there's going to be some kind of packaging system written around 6PAN. One thing I've been working on recently is a (Perl 5) object that models package metadata. In theory, it

Re: r24325 - docs/Perl6/Spec

2008-12-16 Thread Patrick R. Michaud
On Mon, Dec 15, 2008 at 11:18:54PM -0500, Mark J. Reed wrote: > On Mon, Dec 15, 2008 at 5:41 PM, Moritz Lenz wrote: > > I know at least of infix:(Num $a, Num $b) (which does the same as > > Perl 5's <=>) and infix:(Pair $a, Pair $b) (which does $a.key cmp > > $a.key || $a.value cmp $b.value), so n

[perl #61420] [PATCH] Add support for .succ and .pred for Int, Num and Str

2008-12-16 Thread Patrick R. Michaud via RT
Applied in r34011, thanks! Pm

Re: 6PAN idea

2008-12-16 Thread Brandon S. Allbery KF8NH
On 2008 Dec 16, at 23:00, Timothy S. Nelson wrote: One thing I've been working on recently is a (Perl 5) object that models package metadata. In theory, it should be able to model the metadata from a .rpm, a .deb, a CPAN package, or whatever. Then you read the data using a "metadata input

Re: 6PAN idea

2008-12-16 Thread Timothy S. Nelson
On Tue, 16 Dec 2008, Brandon S. Allbery KF8NH wrote: On 2008 Dec 16, at 23:00, Timothy S. Nelson wrote: One thing I've been working on recently is a (Perl 5) object that models package metadata. In theory, it should be able to model the metadata from a .rpm, a .deb, a CPAN package, or whatev

Re: Support for ensuring invariants from one loop iteration to the next?

2008-12-16 Thread David Green
On 2008-Dec-16, at 6:21 pm, Timothy S. Nelson wrote: Or, instead of having a new block, just add the iterator indicator to the NEXT block, and get rid of ENTER and LEAVE. That way, you'd have this sequence: - FIRST {} - NEXT 0 {} # Replaces ENTER - NEXT 1..* {} # Does NOTF

[perl #61410] Resolved [Re: perl6 build errors on Debian stable "Etch" (parrot svn trunk rev 33776 and before)

2008-12-16 Thread via RT
# New Ticket Created by Jochen Plumeyer # Please include the string: [perl #61410] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61410 > Hi again, just to give the positive feedback: No build issues anymore since parrot