Re: [perl #63606] Rakudo can't iterate on a Match object

2009-03-02 Thread Patrick R. Michaud
On Mon, Mar 02, 2009 at 08:33:16AM -0800, Carl Mäsak wrote: > rakudo: rule w { . }; 'a' ~~ m//; for %($/).kv {} > rakudo 50279c: RESULT«Method 'HOW' not found for invocant of > class 'Iterator' [...] While I agree that the error message is likely incorrect -- I'm not sure what the intent of the

rakudo.org web site

2009-03-04 Thread Patrick R. Michaud
We're now putting together a revamped rakudo.org website that we plan to be _the_ central location for information about Rakudo Perl, and a lot of useful information about Perl 6 as well. We're looking for people to contribute content and update pages -- see the "How to help" page at http://rakud

Re: [pugs-commits] r25698 - docs/Perl6/Spec/S32-setting-library

2009-03-05 Thread Patrick R. Michaud
> Log: > - Moved "defined" and "undefined" from Scalar.pod to Any.pod, as per > signature > ... > +=item defined > + > + our Bool multi defined ( Any $thing ) > + our Bool multi defined ( Any $thing, ::role ) > + our Bool multi method defined ( Any $self) > + our Bool multi method defined

Re: [perl #63700] [BUG] Rakudo unable to take reference for infix operators.

2009-03-08 Thread Patrick R. Michaud
On Sat, Mar 07, 2009 at 06:28:29PM -0800, Vasily Chekalkin wrote: > > std: my $c = &infix:; say &$c(5, 42); > std 25744: OUTPUT«ok 00:03 48m␤» > rakudo: my $c = &infix:; say &$c(5, 42); > rakudo ed4cd1: OUTPUT«Statement not terminated properly at line > 1, near ":; sa"␤␤current instr.: 'parro

Re: [perl #63712] [PATCH] Reimplement List.min in Perl6 instead of PIR

2009-03-08 Thread Patrick R. Michaud
On Sat, Mar 07, 2009 at 09:50:02PM -0800, Vasily Chekalkin wrote: > +our List multi min(*...@values) { > +my $by = @values[0] ~~ Code ?? shift @values !! sub { $^a cmp $^b }; > +@values.min($by); > +} This doesn't match the spec -- the $by parameter is required. At any rate, the first argu

Re: [perl #63704] [PATCH] Replace PIR pairs method with Perl 6 version

2009-03-08 Thread Patrick R. Michaud
On Sun, Mar 08, 2009 at 08:15:32PM +0100, Moritz Lenz wrote: > I hope I fixed both of your concerns with this commit: > commit 051ad5115268e5415bebb1988cbf0b1be626156b Yes, they look much better now. Thanks! Pm

Re: [perl #63742] Rakudo doesn't count $_ in the arity of a block

2009-03-09 Thread Patrick R. Michaud
On Mon, Mar 09, 2009 at 02:43:40AM -0700, Carl Mäsak wrote: > rakudo: my $x = { $_*2 }; say $x.arity > rakudo 8bbc31: OUTPUT«0␤» > that however is wrong > * masak submits > > Expected result: 1. I'm not sure what it takes for a block to > "recognize" that it has a $_ as an implicit parameter, t

Re: .map/.reduce with larger arity

2009-03-09 Thread Patrick R. Michaud
On Sun, Mar 08, 2009 at 09:31:19PM -0700, Larry Wall wrote: > On Sun, Mar 08, 2009 at 09:36:17PM +0100, Moritz Lenz wrote: > : But both pugs and rakudo respect the arity of the code ref passed to it, > : so that (1..6).map({$^a + $^b + $^c}) returns the list (6, 15), which is > : very nice and very

Re: Masak List, take 3

2009-03-09 Thread Patrick R. Michaud
On Fri, Mar 06, 2009 at 01:37:16PM +1100, Timothy S. Nelson wrote: > I guess the way I decide things like this is: > - If it's a method on a role/object, then it lives in S32 > - If it's not a method, then it lives in S29 Do we have many things that aren't methods? >> * Should t

Re: r25745 - docs/Perl6/Spec

2009-03-09 Thread Patrick R. Michaud
> On Sun, Mar 08, 2009 at 09:43:17AM +0100, pugs-comm...@feather.perl6.nl wrote: > =item * ws > > Match whitespace between tokens. > > =item * space > > Match a single whitespace character. Hence C< > is equivalent to C< > + >. The definitions of and above are incorrect, or at least mislea

Re: r25745 - docs/Perl6/Spec

2009-03-09 Thread Patrick R. Michaud
On Mon, Mar 09, 2009 at 10:32:02AM -0700, jerry gay wrote: > > To make things a bit quicker for people writing custom versions of > > (which may need to include "comment whitespace"), the Parrot > > Compiler Toolkit also provides an optimized rule that matches > > only between a pair of word char

Re: r25745 - docs/Perl6/Spec

2009-03-09 Thread Patrick R. Michaud
On Mon, Mar 09, 2009 at 10:53:12AM -0700, Larry Wall wrote: > : - PGE doesn't implement by default, because that's not (yet?) > : part of the spec. It only appears in PCT::Grammar, for people > : using the Parrot Compiler Toolkit to create languages. > > I have wanted a number of times, par

Re: Git workflow

2009-03-10 Thread Patrick R. Michaud
On Tue, Mar 10, 2009 at 09:02:08AM -0500, Jonathan Scott Duff wrote: > On Tue, Mar 10, 2009 at 08:40:12AM -, Rafael Garcia-Suarez wrote: > > Moritz Lenz wrote in perl.perl6.compiler : > > > Hi, > > > > > > fREW Schmidt wrote: > > >> I just threw together a workflow for git with rakudo ( > > >>

Re: [perl #63764] [PATCH] Reimplement Any.reduce in Perl6

2009-03-10 Thread Patrick R. Michaud
On Tue, Mar 10, 2009 at 03:40:20AM -0700, Vasily Chekalkin wrote: > +multi method reduce(Code $expression) { > +my Int $arity = $expression.count; > +die('Cannot reduce() using a unary or nullary function.') if $arity > < 2; > + > +my $list := @.list or fail('Cannot red

Some setting candidates

2009-03-10 Thread Patrick R. Michaud
For those who are interested in adding some of the Perl 6 builtins to Rakudo's core settings files -- I've created a wiki page that lists some prime candidates that I think ought to be relatively easy to convert (perhaps using inline PIR). http://wiki.github.com/rakudo/rakudo/setting-candidates S

Re: Some setting candidates

2009-03-10 Thread Patrick R. Michaud
On Tue, Mar 10, 2009 at 12:46:29PM -0500, Jonathan Scott Duff wrote: > For those who are interested in adding some of the Perl 6 > builtins to Rakudo's core settings files -- I've created > a wiki page that lists some prime candidates that I think > ought to be relatively easy to co

Re: [perl #63800] Method 'result_object' not found calling make in a grammar action method

2009-03-12 Thread Patrick R. Michaud
On Thu, Mar 12, 2009 at 01:42:47AM -0700, Matthew Walton wrote: > Run this: > > grammar G { > regex TOP { 'a' {*} } > } > class GA { > method TOP($m) { make GA.new } > } > > G.parse('a', :action(GA.new)); > > > And this happens: > > rakudo ea3283: OUTPUT«Method 'result_object' not found fo

Re: [perl #63796] [PATCH] Add Perl6 versions of ucfirst, lcfirst, chop and fmt to Any.pm

2009-03-12 Thread Patrick R. Michaud
On Wed, Mar 11, 2009 at 07:49:16PM -0700, Cory Spencer wrote: +our Str multi method lcfirst is export { +self ?? self.substr(0,1).lc ~ self.substr(1) !! "" +} + +our Str multi method ucfirst is export { +self ?? self.substr(0,1).uc ~ self.substr(1) !! "" +} We need

pynie moved to pynie.googlecode.com

2009-03-12 Thread Patrick R. Michaud
The "pynie" compiler (Python on Parrot) has now moved out of the Parrot repository into its own repository at http://pynie.googlecode.com/ . I'll be updating the README and other documentation items in the repository over the next few days. If other people would like commit access to the repo, pl

Re: [perl #49175] [TODO] pct - throw useful exception for non-PAST children

2007-12-29 Thread Patrick R. Michaud
On Fri, Dec 28, 2007 at 07:11:23PM -0800, chromatic wrote: > On Friday 28 December 2007 16:16:55 Patrick R.Michaud wrote: > > > Whenever a PAST::Op node gets a non-PAST child, PCT currently > > throws a cryptic exception message like: > > > > Method 'named' not found for invocant of class 'Perl6::

Re: [perl #49175] [TODO] pct - throw useful exception for non-PAST children

2007-12-29 Thread Patrick R. Michaud
On Sat, Dec 29, 2007 at 12:04:09PM +0200, Allison Randal wrote: > Patrick R.Michaud (via RT) wrote: > > > >Whenever a PAST::Op node gets a non-PAST child, PCT currently > >throws a cryptic exception message like: > > > >Method 'named' not found for invocant of class 'Perl6::Grammar' > > > >A better

Re: [perl #49168] [TODO] create a simplified command interface for perl6

2007-12-29 Thread Patrick R. Michaud
On Sat, Dec 29, 2007 at 11:29:46AM +0200, Allison Randal wrote: > Patrick R.Michaud (via RT) wrote: > >* add some smarts to Parrot to allow it to search/execute .pbc files > > in some standard locations (RT#47992) > > We certainly need to allow configurable search paths (at runtime and > compile

Re: [perl #49168] [TODO] create a simplified command interface for perl6

2007-12-29 Thread Patrick R. Michaud
On Sat, Dec 29, 2007 at 12:13:19PM -0800, chromatic wrote: > On Saturday 29 December 2007 01:29:46 Allison Randal wrote: > > > > * convert perl6.pbc into a C executable > > > Possible, but ultimately too constraining. There are significant > > advantages to having the full Parrot runtime environm

Re: calling parrot from perl6

2008-01-01 Thread Patrick R. Michaud
On Mon, Dec 31, 2007 at 11:17:53PM +0300, Richard Hainsworth wrote: > Not sure whether this should be p6-lan or p6-users. Posted to p6l only. Since the question is specific to perl6 and Parrot, it probably belongs on perl6-compiler. But I'll answer it here for now, as it may spark a language rela

S03 - Str autodecrement

2008-01-01 Thread Patrick R. Michaud
I'm working on S03 tests, and S03 says: Perl 6 also supports Str decrement with similar semantics, simply by running the cycles the other direction. However, leftmost characters are never removed, and the decrement fails when you reach a string like "aaa" or "000". Is this "fail

Re: [perl #49224] [BUG] Repeated problems with 'svn commit'

2008-01-02 Thread Patrick R. Michaud
On Wed, Jan 02, 2008 at 09:58:21AM +0100, Paul Cochrane wrote: > I've been seeing this problem off and on for over a month. As you've > noticed, it's rather intermittent, however, when the problem occurs it > persists for up to couple of hours. I've also seen that this is > platform independent,

Re: S03 - Str autodecrement

2008-01-02 Thread Patrick R. Michaud
On Wed, Jan 02, 2008 at 08:52:09AM -0800, Larry Wall wrote: > On Tue, Jan 01, 2008 at 04:26:29PM -0600, Patrick R. Michaud wrote: > : I'm working on S03 tests, and S03 says: > : > : Perl 6 also supports Str decrement with similar semantics, > : simply by running

Re: [perl #49296] Make perl6 support -e

2008-01-02 Thread Patrick R. Michaud
On Tue, Jan 01, 2008 at 11:15:57PM -0800, Andy Lester wrote: > # http://rt.perl.org/rt3/Ticket/Display.html?id=49296 > > > perl6 -e"say 'hello world'" should work. Oddly(?), the question of standard options to Perl 6 implementations also came up in today's Perl 6 design meeting. I believe Larry

Re: [perl #49292] Make perl6 support -h

2008-01-02 Thread Patrick R. Michaud
On Tue, Jan 01, 2008 at 11:15:07PM -0800, Andy Lester wrote: > # http://rt.perl.org/rt3/Ticket/Display.html?id=49292 > > The -h should provide a list of help. See also the comments about Perl 6 standard command line options in RT#49296. Pm

Re: [perl #49294] Make perl6 support -v

2008-01-02 Thread Patrick R. Michaud
On Tue, Jan 01, 2008 at 11:15:34PM -0800, Andy Lester wrote: > # New Ticket Created by Andy Lester > # Please include the string: [perl #49294] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=49294 > > > perl6 -v should p

Re: [svn:parrot] r24497 - in trunk: languages/lolcode/src/parser tools/dev

2008-01-03 Thread Patrick R. Michaud
On Thu, Jan 03, 2008 at 12:39:54PM -0800, chromatic wrote: > On Thursday 03 January 2008 12:05:48 [EMAIL PROTECTED] wrote: > > -# Copyright (c) 2007, The Perl Foundation > > +# Copyright (C) 2001-2008, The Perl Foundation. > > # $Id$ > > I'm not sure this is legal. Certainly TPF holds a copyrigh

Re: [perl #43269] [BUG] setline is tied to PIR source

2008-01-03 Thread Patrick R. Michaud
On Thu, Jan 03, 2008 at 09:40:23PM -0500, Bob Rogers wrote: >From: "Patrick R. Michaud via RT" <[EMAIL PROTECTED]> >Date: Wed, 02 Jan 2008 22:29:35 -0800 > >On Wed Jun 20 16:23:40 2007, pmichaud wrote: >> On Thu, Jun 21, 2007 at 12:08:33AM

Re: Keeping buzz going

2008-01-04 Thread Patrick R. Michaud
On Fri, Jan 04, 2008 at 12:55:19AM -0600, Andy Lester wrote: > http://use.perl.org/~pmichaud/journal/35272 > http://perlbuzz.com/2008/01/flurry-of-perl-6-activity-picks-up-new-contributor.html > > Lots of cool stuff is going on, and I'm so so glad to see it. I'm > thinking of making a Perl 6-sp

Re: Repeated Loopy Variable Width String Character Access is Slooooow-ish

2008-01-04 Thread Patrick R. Michaud
On Fri, Jan 04, 2008 at 07:43:18PM -0800, chromatic wrote: > I just ran a little experiment. I patched Parrot::HLLCompiler to transcode > the source code it reads to UCS-2 before parsing and compiling it, then I > profiled building perl6.pbc. > > Without this hack, the build takes around 20 sec

Re: Repeated Loopy Variable Width String Character Access is Slooooow-ish

2008-01-04 Thread Patrick R. Michaud
On Sat, Jan 05, 2008 at 12:29:40AM -0600, Patrick R. Michaud wrote: > On Fri, Jan 04, 2008 at 07:43:18PM -0800, chromatic wrote: > > (Callgrind suggests that about 45% of the running time of > > the NQP part of the build comes from utf8_set_position > > and utf8_skip_forwa

Re: Repeated Loopy Variable Width String Character Access is Slooooow-ish

2008-01-05 Thread Patrick R. Michaud
On Sat, Jan 05, 2008 at 01:09:01AM -0600, Patrick R. Michaud wrote: > On Sat, Jan 05, 2008 at 12:29:40AM -0600, Patrick R. Michaud wrote: > > On Fri, Jan 04, 2008 at 07:43:18PM -0800, chromatic wrote: > > > (Callgrind suggests that about 45% of the running time of > > >

Re: Repeated Loopy Variable Width String Character Access is Slooooow-ish

2008-01-05 Thread Patrick R. Michaud
On Sat, Jan 05, 2008 at 12:17:00PM +0100, Cosimo Streppone wrote: > Patrick wrote: > > > >[...] I also improved utf8_set_position > >a bit so that it doesn't always have to restart position > >counting from the beginning of the string. As a result, > >compiling the actions.pl script on my machine

Re: Repeated Loopy Variable Width String Character Access is Slooooow-ish

2008-01-05 Thread Patrick R. Michaud
On Sat, Jan 05, 2008 at 02:11:35AM -0800, chromatic wrote: > On Saturday 05 January 2008 01:26:48 Patrick R. Michaud wrote: > > > As of r24557 I've rewritten find_cclass and find_not_cclass > > so that they use a string iterator instead of repeated calls > > to EN

Re: Repeated Loopy Variable Width String Character Access is Slooooow-ish

2008-01-05 Thread Patrick R. Michaud
On Sat, Jan 05, 2008 at 11:09:57AM +, Nicholas Clark wrote: > On Sat, Jan 05, 2008 at 02:11:35AM -0800, chromatic wrote: > > On Saturday 05 January 2008 01:26:48 Patrick R. Michaud wrote: > > > > I think it will still be worthwhile to investigate > > > convert

Re: [perl #49714] [PATCH] Extend perl6 spectest to fetch and execute S04-S29 tests

2008-01-12 Thread Patrick R. Michaud
On Sat, Jan 12, 2008 at 08:57:11AM -0800, Cosimo Streppone wrote: > # New Ticket Created by Cosimo Streppone > # Please include the string: [perl #49714] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=49714 > > > > This

Re: ubuntu-ppc-trunk BUILD FAILED

2008-01-13 Thread Patrick R. Michaud
On Sat, Jan 12, 2008 at 11:29:03PM -0500, Bob Rogers wrote: >From: Matisse Enzer <[EMAIL PROTECTED]> >Date: Sat, 12 Jan 2008 20:20:12 -0800 > >Where would people here want to see buildot status messages go? >Personally, I'm not a parrot developer, so I don't have a strong >op

Re: [perl #49714] [PATCH] Extend perl6 spectest to fetch and execute S04-S29 tests

2008-01-13 Thread Patrick R. Michaud
On Sun, Jan 13, 2008 at 10:54:57AM +0100, Cosimo Streppone wrote: > I had discussed the [S29/subdir/*.t] structure with > particle over irc, but probably I misunderstood. > > So I'd better change these tests to something like: > > t/spec/S29-str/chomp.t > t/spec/S29-str/p5chomp.t > ... >

Re: Gearing up for Parrot release 0.5.2

2008-01-13 Thread Patrick R. Michaud
On Sun, Jan 13, 2008 at 02:43:24PM -0500, Andy Dougherty wrote: > Please also verify that you want to publicly announce the name of the > executable as 'perl6'. I recall there was some question about that too, > though I wasn't involved in any of it, so I don't know where it stands at > the mome

Re: Perl6 spec test suite

2008-01-13 Thread Patrick R. Michaud
On Sun, Jan 13, 2008 at 11:35:17PM +0100, Cosimo Streppone wrote: > - Are smartlinks "stackable?" > That is, can I refer the same code to multiple links? > http://perlsix.org/svn/pugs/revision?rev=19471 According to the documentation in smartlinks.pl, they are. See http://svn.pugscode.org/pugs

Re: Perl6 spec test suite

2008-01-16 Thread Patrick R. Michaud
On Tue, Jan 15, 2008 at 11:16:57PM -0800, Larry Wall wrote: > On Sun, Jan 13, 2008 at 11:22:44PM -0600, Patrick R. Michaud wrote: > : Larry, Jerry, and I discussed this a couple of weeks ago > : and here's my vision for how it should work. To simplify > : things, let's b

Re: [svn:perl6-synopsis] r14491 - doc/trunk/design/syn

2008-01-17 Thread Patrick R. Michaud
On Thu, Jan 17, 2008 at 01:18:32PM -0800, [EMAIL PROTECTED] wrote: > +=item * > + > +The definition of C<.true> for the most ancestral type (that is, the > +C type) is equivalent to C<.defined>. Would we normally consider prefix: to be defined in terms of C<.true>, or vice versa? Is there a pre

Re: [perl #49886] [PATCH] languages/perl6 requires `=begin' to have a corrisponding ident. Remove that requirement

2008-01-17 Thread Patrick R. Michaud
On Thu, Jan 17, 2008 at 05:36:43PM -0800, Larry Wall wrote: > On Thu, Jan 17, 2008 at 12:34:23PM -0800, Ævar Arnfjörð Bjarmason via RT > wrote: > > : Index: src/parser/grammar.pg > : === > : --- src/parser/grammar.pg (revision 2490

Re: [perl #49972] Error message for misspelled sub name in PIR code is confusing

2008-01-19 Thread Patrick R. Michaud
On Fri, Jan 18, 2008 at 09:41:01PM -0800, Geoffrey Broadwell wrote: > The error message from parrot when there is a spelling mismatch between > a function call and the function's actual declaration is accurate but > confusing: > > * > $ cat > foob.pir > .sub main :main > foo() > .end > >

Re: [perl #50032] rakudo's "make spectest" complains about missing util/fudgeall

2008-01-20 Thread Patrick R. Michaud
On Sun, Jan 20, 2008 at 03:06:34PM -0800, jerry gay wrote: > > looks to me like the 'clean' target in the makefile should delete the > t/spec directory (it doesn't currently.) I don't think that 'make clean' should remove t/spec. Because we now grab t/spec via 'svn co', someone might have local

Re: [svn:parrot] r25075 - in trunk/languages/perl6/src: builtins classes

2008-01-20 Thread Patrick R. Michaud
On Sun, Jan 20, 2008 at 04:36:37PM -0800, [EMAIL PROTECTED] wrote: > Modified: trunk/languages/perl6/src/builtins/list.pir > [...] > Modified: trunk/languages/perl6/src/classes/List.pir FWIW, I think that the both the method version and the global subroutine wrapper should be placed in classes/Lis

Re: [svn:parrot] r25072 - trunk/languages/perl6/src/classes

2008-01-20 Thread Patrick R. Michaud
On Sun, Jan 20, 2008 at 03:34:33PM -0800, [EMAIL PROTECTED] wrote: > test = exists self[ind] > if test == 0 goto false >true: > res = get_hll_global ['Bool'], 'True' > goto done >false: > res = get_hll_global ['Bool'], 'False' > goto done >done: > .ret

Re: [svn:parrot] r25070 - in trunk/languages/perl6/src: builtins classes

2008-01-20 Thread Patrick R. Michaud
[Oops, I meant this to go to perl6-compiler. --Pm] On Sun, Jan 20, 2008 at 01:33:30PM -0800, [EMAIL PROTECTED] wrote: > +.sub keys :multi('List') > + .param pmc list > + .local pmc res > + > + res = list.'keys'() > + > + .return(res) > +.end Better is to use a tailcall: .sub 'keys' :mul

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Patrick R. Michaud
On Sat, Jan 19, 2008 at 12:24:37PM +0100, Klaas-Jan Stol wrote: > as far as I could tell there's no support for goto statements in PCT (that > is, special nodes or something). > I don't know whether there are any plans to add special support for it, but > here's an idea I was thinking about. It wou

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Patrick R. Michaud
On Thu, Jan 24, 2008 at 11:58:02AM -0500, Mark J. Reed wrote: > Sorry if I'm missing something here, since I haven't dived into the > innards of Parrot, but I thought control flow in Parrot was based on > continuations? Presumably 'control exceptions' are really just > lexicaly-scoped exceptions,

Re: pluralization idea that keeps bugging me

2008-01-26 Thread Patrick R. Michaud
On Sat, Jan 26, 2008 at 08:58:43AM -0800, Larry Wall wrote: > After a recent exchange on PerlMonks about join, I've been thinking > about the problem of pluralization in interpolated strings, where we > get things like: > > say "Received $m message{ 1==$m ?? '' !! 's' }." > > My first thought

Re: closures and lexicals: question about PCT generated PIR.

2008-02-06 Thread Patrick R. Michaud
On Wed, Feb 06, 2008 at 03:33:14PM +0100, Klaas-Jan Stol wrote: > function foo() > > local a = 2 > > function bar() > print(a) > end > end > > foo() > bar() > > What happens here is, a function foo is defined, in which a local var. "a" > is initialized to the value "2". Ano

Re: [perl #50554] [BUG] segfault caused by perl6

2008-02-06 Thread Patrick R. Michaud
On Tue, Feb 05, 2008 at 07:33:46PM -0800, Zev Benjamin wrote: > # New Ticket Created by Zev Benjamin > # Please include the string: [perl #50554] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=50554 > > > > I unfortunat

Re: [perl #50554] [BUG] segfault caused by perl6

2008-02-07 Thread Patrick R. Michaud
On Wed, Feb 06, 2008 at 09:59:52PM -0500, Zev Benjamin wrote: > > What happens if you run using "parrot perl6.pbc" instead > > No difference. > > > of the perl6 executable? If you still get the segfault, how > > about trying parrot with the -G option? > > This stops the segfault. > > > > > Ho

Re: [PROPOSAL] Remove pynie's .tg transformation file

2008-02-08 Thread Patrick R. Michaud
On Fri, Feb 08, 2008 at 12:52:43PM +0100, Klaas-Jan Stol wrote: > languages/pynie directory contains a file in src/PAST/Grammar.tg, which is > the tree transformation for pynie. > > This is no longer used, as pynie is converted to PCT. > > I propose to remove this file, as it is out of date and i

Re: Problem with lexical scoping

2008-02-12 Thread Patrick R. Michaud
On Mon, Feb 11, 2008 at 10:27:27PM +0100, Andrew Parker wrote: > .namespace > .sub "outer" > new $P12, "Integer" > assign $P12, 1 > .lex "x", $P12 > get_global $P18, "inner" > newclosure $P18, $P18 > $P17 = $P18() > print $P17 > print "\n" > .end > > .sub "inner" :

Re: Problem with lexical scoping

2008-02-13 Thread Patrick R. Michaud
nterp > $P1 = $P0['outer'; 'lexpad'] > $P14 = $P1['x'] > n_add $P15, $P14, 1 > .lex "x", $P15 > .return ($P15) > .end > > There is also the 'outer' lexpad which is the actua

Re: Problem with lexical scoping

2008-02-13 Thread Patrick R. Michaud
On Tue, Feb 12, 2008 at 08:59:46PM -0800, Geoffrey Broadwell wrote: > Here's my fear: Parrot will near production release, we'll start > finding performance problems, and everyone will be so incredibly ready > to get 1.0 out the door that we'll release before fixing them ("correct > now, fast late

Re: [perl #50802] .t files lying about their type..

2008-02-14 Thread Patrick R. Michaud
On Wed, Feb 13, 2008 at 07:29:25PM -0800, Will Coleda wrote: > compilers/nqp/t/01-literals.t, for example, has a shebang of: > > #!./parrot > > but contains a test file written in NQP, not PIR. > > Before we can re-enable the pir_code_coda test, these files need to be > updated to have a proper

Parrot 0.5.3 "Way of the Parrot" released!

2008-02-20 Thread Patrick R. Michaud
On behalf of the Parrot team, I'm proud to announce Parrot 0.5.3 "Way of the Parrot." Parrot (http://parrotcode.org/) is a virtual machine aimed at running all dynamic languages. Parrot 0.5.3 can be obtained via CPAN (soon), or follow the download instructions at http://parrotcode.org/source.html

Re: [perl #38262] [CAGE] get external Perl5 modules out of the parrot repo

2008-02-27 Thread Patrick R. Michaud
On Tue, Feb 26, 2008 at 07:33:49PM -0800, James Keenan via RT wrote: > 1. Should 'lib/Test' be removed from the: > no_index: > directory: > > element in META.yml. I felt it should, because that directory has > ceased to be part of the Parrot distribution. So I patched META.yml in > r260

Re: [PAST] on symbol scope and nested scopes (PAST::Blocks)

2008-02-28 Thread Patrick R. Michaud
On Thu, Feb 28, 2008 at 01:21:40PM +0100, Klaas-Jan Stol wrote: > hi, > > recently on #parrot there was a short discussion on symbol handling > w.r.t. nested scopes. > > During that discussion, I understood that when looking for a symbol in > a PAST::Block node, it will look in that block, and, i

Re: pdd17pmc branch review

2008-03-06 Thread Patrick R. Michaud
On Tue, Mar 04, 2008 at 06:39:38PM -0800, chromatic wrote: > On Tuesday 04 March 2008 16:48:09 Will Coleda wrote: > > So, language developers (and others); please grab a copy of > > https://svn.perl.org/parrot/branches/pdd17pmc and check out the > > languages to see how they fare compared to their

Re: pdd17pmc branch review

2008-03-06 Thread Patrick R. Michaud
> On Tuesday 04 March 2008 16:48:09 Will Coleda wrote: > So, language developers (and others); please grab a copy of > https://svn.perl.org/parrot/branches/pdd17pmc and check out the > languages to see how they fare compared to their counterparts in > trunk. APL doesn't run. I suspect the aplvect

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2008-03-19 Thread Patrick R. Michaud
On Mon, Mar 17, 2008 at 10:26:21AM -0700, Will Coleda via RT wrote: > compilers/pct/src/PAST/Compiler.pir says: > > On Thu Dec 13 17:47:05 2007, [EMAIL PROTECTED] wrote: > > Implement a 'copy' assignment (at least until we get the 'copy' > > opcode -- see RT#47828). > > Now that the copy op is im

Re: [perl #51850] PGE buglet

2008-03-19 Thread Patrick R. Michaud
On Tue, Mar 18, 2008 at 08:21:09AM -0700, Stephane Payrard wrote: > > A rule with a space between the '<' and the '?' compiles > but fails at execution > with the unhelpful message : > Unable to find regex '' > Null PMC access in invoke() I agree that this is not a useful error message. Howev

Re: wishlist for NQP

2008-03-26 Thread Patrick R. Michaud
On Wed, Mar 26, 2008 at 02:25:06PM +0100, Klaas-Jan Stol wrote: > having used NQP a bit, I feel like I'm missing a few things. I'm not > entirely sure what the fate of NQP is; will it always be a bootstrap > stage for Perl 6,or is it a tool for now and will it be discarded > later on. Neither! It

Re: wishlist for NQP

2008-03-26 Thread Patrick R. Michaud
On Wed, Mar 26, 2008 at 09:12:18AM -0700, Geoffrey Broadwell wrote: > > Being able to write > > > > unshift @?BLOCK, $?BLOCK; > > > > would be useful, as it prevents the need for creating the List class > > over and over again. > > I feel that these ops are so basic, it would be well worth it to

Re: Q on the NQP compiler

2008-03-26 Thread Patrick R. Michaud
On Wed, Mar 26, 2008 at 04:29:05PM +0100, Klaas-Jan Stol wrote: > hi, > > i've been working on an actions file for the NQP compiler, written in > NQP. It can be found in compilers/nqp/bootstrap > to build it, go to the compilers/nqp directory, and type "make boot" > > It seems to work pretty nice

Deprecating PAST-pm

2008-03-26 Thread Patrick R. Michaud
On Tue, Mar 25, 2008 at 09:32:46PM -0700, [EMAIL PROTECTED] wrote: > Modified: >trunk/apps/p3/cgi-pir/slides.pir >trunk/compilers/past-pm/PAST/Node.pir >trunk/compilers/past-pm/POST/Node.pir ... are we at or near a point that past-pm could be removed from the repository? What language

Re: Deprecating PAST-pm

2008-03-26 Thread Patrick R. Michaud
On Wed, Mar 26, 2008 at 11:06:22AM -0700, jerry gay wrote: > On Wed, Mar 26, 2008 at 10:50 AM, Patrick R. Michaud <[EMAIL PROTECTED]> > wrote: > > ... are we at or near a point that past-pm could be removed > > from the repository? What languages or tools are still u

Re: Deprecating PAST-pm

2008-03-26 Thread Patrick R. Michaud
On Wed, Mar 26, 2008 at 12:08:35PM -0700, chromatic wrote: > On Wednesday 26 March 2008 10:50:58 Patrick R. Michaud wrote: > > > On Tue, Mar 25, 2008 at 09:32:46PM -0700, [EMAIL PROTECTED] wrote: > > > Modified: > > >trunk/apps/p3/cgi-pir/slides.pir > &g

Re: [perl #52154] [RFC] Remove check for repository revision number

2008-03-26 Thread Patrick R. Michaud
On Wed, Mar 26, 2008 at 06:09:50PM -0700, Will Coleda wrote: > Basically, user problems are reported against a *release*. Anyone > reporting a problem against something more fine grained than a release > is a developer, and we should expect them to be able to use their own > version control tools,

Re: [perl #45189] [PATCH] Remove Deprecated PGE Syntax

2008-03-26 Thread Patrick R. Michaud
On Sun, Mar 16, 2008 at 11:11:31AM -0700, James Keenan via RT wrote: > Can any of our Win32 developers examine this? Also, the patch and file needs to be updated to use PGE::Perl6Regex instead of PGE::P6Regex, as the latter is now deprecated (see RT#48028). Pm

Re: wishlist for NQP

2008-03-27 Thread Patrick R. Michaud
On Thu, Mar 27, 2008 at 10:33:54PM +0100, Klaas-Jan Stol wrote: > On Wed, Mar 26, 2008 at 6:30 PM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > On Wed, Mar 26, 2008 at 02:25:06PM +0100, Klaas-Jan Stol wrote: > > > * list ops ( I think this is meant by list ops? ) &

Re: wishlist for NQP

2008-03-28 Thread Patrick R. Michaud
On Fri, Mar 28, 2008 at 10:51:16AM +0100, Klaas-Jan Stol wrote: > Attached is a patch implementing: > > * ++ and -- postfix operators, implemented as n_sub and n_add (taking > "1" as the 3rd operand), this is because each instruction must have an > output register as far as I can tell (so "inc"/"d

Re: wishlist for NQP

2008-03-28 Thread Patrick R. Michaud
On Fri, Mar 28, 2008 at 07:41:25AM -0500, Patrick R. Michaud wrote: > Ideally += should be implemented as the two-argument 'add' opcode > in PIR... something like > > add %0, %1 > > But the PAST compiler doesn't yet have a great way for distinguishing > a

Re: wishlist for NQP

2008-03-28 Thread Patrick R. Michaud
On Fri, Mar 28, 2008 at 02:41:28PM +0100, Klaas-Jan Stol wrote: > On Fri, Mar 28, 2008 at 1:41 PM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > It really needs to be inc/dec. And not only that, but the output > > value of postfix ++ and -- needs to be the value _bef

Re: wishlist for NQP

2008-03-28 Thread Patrick R. Michaud
On Fri, Mar 28, 2008 at 04:35:42PM +0100, Klaas-Jan Stol wrote: > > attached an updated patch including some tests. Patch applied in r26597. I made a few modifications before applying: - Updated the precedence of postfix:++ and postfix:-- to match - Fixed the relational ops to use e.g., infix:

pct tutorial notes - variable scope

2008-03-28 Thread Patrick R. Michaud
First, kudos and compliments to Klaas-Jan Stol on the excellent PCT tutorial. I have some comments; the minor ones (typos, etc.) I'll send off-list, but others may merit some discussion and PCT implementation changes so I'll put them here. This message has to do with scope handling of variables i

Re: pct tutorial notes - variable scope

2008-03-28 Thread Patrick R. Michaud
On Sat, Mar 29, 2008 at 01:04:22AM -0500, Patrick R. Michaud wrote: > This message has to do with scope handling of variables in Episode 6 > of the tutorial (the 'identifier' method for Squaak). The tutorial > points out an area where PCT doesn't yet work the way I had &

Re: [perl #48028] [DEPRECATED] PGE::P6Regex

2008-03-29 Thread Patrick R. Michaud
As of this morning only the following files still need conversion for P6Regex, P6Grammar, and/or pgc: examples/pge/all.pir languages/tap/Makefile The examples/pge/all.pir file is a very outdated example of writing parsers using PGE -- the new way of doing it is to use Perl6Grammar or som

Typo in S06?

2008-03-29 Thread Patrick R. Michaud
S06.pod says (line 2698): : Ordinarily a top-level Perl "script" just evaluates its anonymous : mainline code and exits. During the mainline code, the program's : arguments are available in raw form from the C<@ARGS> array. At the end of : the mainline code, however, a C subroutine will be calle

Re: [perl #52242] perl6 option handling - insufficiently paranoid

2008-03-30 Thread Patrick R. Michaud
On Sat, Mar 29, 2008 at 12:53:29PM -0700, Alan Rocker wrote: > Perl 6 does not defend itself against invalid options. Using an invalid > option results in an ungraceful death rather than a valid error message. > > E.g. > $ ./perl6 -x "say 'Hi';" > Error: file cannot be read: -x > current instr.: '

Re: Query re: duction and precedence.

2008-03-30 Thread Patrick R. Michaud
On Sun, Mar 30, 2008 at 08:21:39AM -0700, Mark A. Biggar wrote: > The reduce meta-operator over - in APL gives alternating sum, similarly > alternating quotient for /, which only works if you right associate > things. > > [-] 1,2,3,4,5,6 => 1-2+3-4+5-6 # pseudo-apl > > [/] 1,2,3,4,5,6 => (1*3*5

Re: Getting Started - What to try?

2008-03-31 Thread Patrick R. Michaud
On Mon, Mar 31, 2008 at 10:23:45AM +0200, Moritz Lenz wrote: > John M. Dlugosz wrote: > > I understand the most official grammar is being developed there. > > Not quite. The "official" grammar is in the pugs repo in src/perl6/, but > it can't really run on anything yet. This is correct -- the "of

Re: wishlist for NQP

2008-03-31 Thread Patrick R. Michaud
On Sat, Mar 29, 2008 at 02:48:11PM -0700, chromatic wrote: > On Thursday 27 March 2008 18:20:21 Patrick R. Michaud wrote: > > 2. Add shift/unshift/push/pop methods to ResizablePMCArray > > (or one of its superclasses) in Parrot > > This is my preference. It feels lik

Re: [svn:parrot] r26670 - in trunk: src/pmc t/pmc

2008-03-31 Thread Patrick R. Michaud
On Mon, Mar 31, 2008 at 11:54:59AM -0700, chromatic wrote: > Coding standards nit: the pointer symbol goes on the variable name in the > declaration. > > PMC *value = VTABLE_shift_pmc(INTERP, SELF); Oops, I missed that. Thanks, fixed in r26671. Pm

Re: wishlist for NQP

2008-03-31 Thread Patrick R. Michaud
On Mon, Mar 31, 2008 at 11:33:42PM -0400, Bob Rogers wrote: > Do you remember the discussion two years ago [1] about eliminating the > user stack in favor of arrays? Chip made the following comment [2]: > > From: Chip Salzenberg <[EMAIL PROTECTED]> > Subject: User stack: Worthwhile? >

Re: Q on lexicals

2008-04-01 Thread Patrick R. Michaud
On Tue, Apr 01, 2008 at 01:23:38PM +0200, Klaas-Jan Stol wrote: > in the exception handler, a new Undef is created in $P0. When leaving > this line, this code won't work. When commenting out this line, it > will print "hi", as expected. > I don't get that, because, 3 lines later, a new object is st

Re: question on max | min op

2008-04-01 Thread Patrick R. Michaud
On Tue, Apr 01, 2008 at 05:39:36AM -0400, Mark J. Reed wrote: > On Tue, Apr 1, 2008 at 1:44 AM, Xiao Yafeng <[EMAIL PROTECTED]> wrote: > > I've read Synopsis and I wondered why to treat max and min as > > operator. IMHO, view them as list functions is more reasonable. Like > > below: > > > > @te

Re: tutorial, blog, hackathon

2008-04-02 Thread Patrick R. Michaud
On Tue, Apr 01, 2008 at 03:22:28PM -0500, Joshua McAdams wrote: > Allison wrote: > > Also, we're planning a hackathon the weekend before YAPC::NA, > > June 14-15, for core hacking, language implementation, and cage cleaning. The YAPC::NA wiki [1] currently says that the hackathon will be the days

Re: YAPC::EU 2008

2008-04-02 Thread Patrick R. Michaud
On Wed, Apr 02, 2008 at 04:34:47PM -0400, Will Coleda wrote: > Can we get an idea of how many parrot hackers are planning on > attending YAPC::EU this year? (will be held in Copenhagen, Denmark, on > 13-15 August 2008.) > > http://www.yapceurope2008.org/ye2008/ > > I am actually a maybe at this p

Re: [perl #52382] [TODO] Add nqp test to the root 'make test'

2008-04-02 Thread Patrick R. Michaud
On Tue, Apr 01, 2008 at 11:07:43AM -0700, Bernhard Schmalhofer wrote: > # New Ticket Created by Bernhard Schmalhofer > # Please include the string: [perl #52382] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=52382 > > >

Re: [perl #52462] [PATCH] [UGLY] FixedIntegerArray->new_from_string() needs cleanup

2008-04-04 Thread Patrick R. Michaud
On Fri, Apr 04, 2008 at 10:06:39AM -0700, chromatic wrote: > On Thursday 03 April 2008 15:47:12 Mark Glines wrote: > > > When doing a test for --gc=libc, I noticed test 10 of t/op/calling.t > > was hanging. The test creates a FixedIntegerArray from the string "0, > > 0x20, 0x20, 0". The new_from

Re: STD.pm

2008-04-05 Thread Patrick R. Michaud
On Sat, Apr 05, 2008 at 07:59:36PM -, John M. Dlugosz wrote: > I'm trying to fathom STD.pm. > > Maybe someone can help me trace through this one? > > How is > $obj!privA = 1; > parsed? > > Reading expect_term, it trys , then sees the > "$" and commits to the decision, reads "obj" as

<    6   7   8   9   10   11   12   13   14   15   >