Re: Project idea: Perl 6 syntax hilighting with STD.pm

2008-07-29 Thread Moritz Lenz
John M. Dlugosz wrote: > Does that mean there is a tool I can use to apply STD.pm to syntax-check > my examples or ask questions of it? Can you point to that? in the pugs repository: $ cd src/perl6 $ make $ ./tryfile $filename That assumes a perl 5.10 in /usr/local/bin/perl HTH, Moritz -- Mo

Re: Project idea: Perl 6 syntax hilighting with STD.pm

2008-07-29 Thread John M. Dlugosz
Does that mean there is a tool I can use to apply STD.pm to syntax-check my examples or ask questions of it? Can you point to that? --John Moritz Lenz wrote: Since now STD.pm parses most Perl 6 code now, and spits out a parse tree in YAML, a brave soul might want to write a syntax hilighter

value type vs implementation type of '&' variables

2008-07-29 Thread John M. Dlugosz
It seems to me that the only type held by a '&' variable is treated as the container type. And, the value type in such a declaration is uniformly used as a function return type. Is that correct? So if the most basic declaration is my &func; then my Int &func; means that whatever fun

[perl #57398] Actually assigning to a read-only variable in rakudo causes parrot to segfault

2008-07-29 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #57398] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57398 > $ svn info | grep Revi Revision: 29869 $ ./perl6 -e 'sub a($x) { $x = 5 }; my $y = 7; a

[perl #57396] Accessing an uninitialized value inside a sub in rakudo makes parrot segfault

2008-07-29 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #57396] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57396 > $ ./perl6 -e 'my $x; $x.foo()' works, but $ ./perl6 -e 'sub a { my $x; $x.foo() }; a()

[perl #56716] [TODO]: speed up the configure tests

2008-07-29 Thread James Keenan via RT
On Tue Jul 29 11:01:12 2008, particle wrote: > > overall, i'm impressed at the 50% speedup. given that these are > relatively fast tests, it makes sense that since there are half as > many files (and therefore half as many invocations of perl), the tests > take half the time to run. other than my

[perl #56716] [TODO]: speed up the configure tests

2008-07-29 Thread James Keenan via RT
On Tue Jul 29 11:04:59 2008, doughera wrote: > On Tue, 29 Jul 2008, James Keenan via RT wrote: > The parallel branch does seem to run in about half the time. This is > with > perl-5.8.8 on Solaris/SPARC, where perl was built with Sun's cc, but > I'm > trying to build parrot with gcc. Here are the

[perl #56716] [TODO]: speed up the configure tests

2008-07-29 Thread James Keenan via RT
On Tue Jul 29 11:01:12 2008, particle wrote: > > the failing test: > t/steps/auto_ctags-01ok 1/31 > # Failed test 'Got expected result' > # at t/steps/auto_ctags-01.t line 65. > t/steps/auto_ctags-01NOK 17/31# got: > 'yes' > # expect

[perl #57386] Configure.pl tests create bad dirs in $TMP

2008-07-29 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #57386] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57386 > After running the Configure.pl test suite, I'm seeing some annoying-to-remove directo

[perl #57388] Namespaces don't work in class declarations

2008-07-29 Thread via RT
# New Ticket Created by Johan Viklund # Please include the string: [perl #57388] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57388 > Hi there, declaring classes in other namespaces except the toplevel one results in "emt

Range smart-matching

2008-07-29 Thread Jonathan Worthington
Hi, I found in one of the spec tests for Ranges: my $r = 1..5; ok(($r).ACCEPTS($r), 'accepts self'); ok(($r).ACCEPTS(1..5), 'accepts same'); ok($r ~~ $r, 'accepts self'); ok($r ~~ 1..5, 'accepts same'); And implemented this, but then Pm pointed out that it's not actually mention

[svn:parrot-pdd] r29861 - in trunk: . docs/pdds docs/pdds/draft

2008-07-29 Thread allison
Author: allison Date: Tue Jul 29 12:45:55 2008 New Revision: 29861 Added: trunk/docs/pdds/pdd19_pir.pod - copied unchanged from r29860, /trunk/docs/pdds/draft/pdd19_pir.pod Removed: trunk/docs/pdds/draft/pdd19_pir.pod Changes in other areas also in this revision: Modified: trunk/MA

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

2008-07-29 Thread allison
Author: allison Date: Tue Jul 29 12:41:01 2008 New Revision: 29860 Modified: trunk/docs/pdds/draft/pdd19_pir.pod Log: [pdd] Resolving a few more TODOs in the PIR PDD. Modified: trunk/docs/pdds/draft/pdd19_pir.pod ==

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

2008-07-29 Thread allison
Author: allison Date: Tue Jul 29 12:34:52 2008 New Revision: 29859 Modified: trunk/docs/pdds/draft/pdd19_pir.pod Log: [pdd] Architectural review of PIR PDD. Modified: trunk/docs/pdds/draft/pdd19_pir.pod == --- trunk/

Re: [perl #55978] [PATCH] [OpenGL] cygwin fixes from donaldh++

2008-07-29 Thread Reini Urban
Just found someone breaking my code... Index: src/dynext.c === --- src/dynext.c(revision 28459) +++ src/dynext.c(working copy) @@ -276,12 +276,10 @@ /* And on cygwin replace a leading "lib" by "cyg". */ #ifdef _

[perl #44471] [PATCH] :vtable is ignored when :anon

2008-07-29 Thread Patrick R. Michaud via RT
RT #53302 extends the meanings of various sub flags such that :vtable now always implies :anon. As such, I think we can either apply this patch or reject it, given that we expect a refactor of :vtable and :method handling to occur at some point in the future. Personally I'd suggest to reject it f

[perl #53536] [PATCH] sub-second sleep precision for non-threaded architectures

2008-07-29 Thread Patrick R. Michaud via RT
On Tue Apr 29 18:47:06 2008, [EMAIL PROTECTED] wrote: > The "sleep" op calls Parrot_cx_schedule_sleep(), which falls back to > Parrot_sleep() on non-threaded architectures. Here's a patch to > implement a Parrot_usleep() and call that instead, for those > platforms. Does this patch apply and work

[perl #52280] [PATCH] HLLCompiler: fix overriding default prompt using $commandline_prompt

2008-07-29 Thread Patrick R. Michaud via RT
On Sun Apr 06 05:05:13 2008, mmcleric wrote: > I have a problem with this patch on Mac OS X (originally i checked it on > Ubuntu 7.10). > Actually it's a difference in stdin.'readline'($S0) behavior on Linux > and Mac OS X; Linux (glibc+readline lib actually, i think) prints $S0 > arg to screen, a

Re: [perl #56716] [TODO]: speed up the configure tests

2008-07-29 Thread Andy Dougherty
On Tue, 29 Jul 2008, James Keenan via RT wrote: > For those of you who are interested in benchmarking the difference, I > recommend you do a checkout of the parallel branch and run 'perl > Configure.pl --test=configure', as I've included a line reporting the > elapsed time. Then do a fresh checko

Re: [perl #56716] [TODO]: speed up the configure tests

2008-07-29 Thread jerry gay
On Tue, Jul 29, 2008 at 4:28 AM, James Keenan via RT <[EMAIL PROTECTED]> wrote: > I have prepared a patch which represents an 'svn diff' between trunk and > the 'parallel' branch at the point of the branch's inception. Rather > than swamp your inboxes, I'm posting it here: > > http://thenceforward

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

2008-07-29 Thread cotto
Author: cotto Date: Mon Jul 28 23:53:30 2008 New Revision: 29838 Modified: trunk/docs/pdds/draft/pdd19_pir.pod Log: [pdd] typo fix Modified: trunk/docs/pdds/draft/pdd19_pir.pod == --- trunk/docs/pdds/draft/pdd19_pir.

Re: [perl #46691] [TODO] [C] Should the shift_pmc() method be silently ignored?

2008-07-29 Thread Will Coleda
On Tue, Jul 29, 2008 at 12:58 AM, Christoph Otto via RT <[EMAIL PROTECTED]> wrote: > On Mon Oct 22 10:02:53 2007, pcoch wrote: >> In src/pmc/exception.pmc:shift_pmc() there is the todo item: >> >> PMC *shift_pmc() { >> /* fprintf(stderr, "don't do that then\n"); XXX */ >> return

[perl #46691] [TODO] [C] Should the shift_pmc() method be silently ignored?

2008-07-29 Thread Christoph Otto via RT
On Mon Oct 22 10:02:53 2007, pcoch wrote: > In src/pmc/exception.pmc:shift_pmc() there is the todo item: > > PMC *shift_pmc() { > /* fprintf(stderr, "don't do that then\n"); XXX */ > return PMCNULL; > } > > Since the error is commented out, do we need this code (and its as

[perl #57378] [TODO] Implement Str.split(Rule), Str.com(Rule)

2008-07-29 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #57378] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57378 > Rakudo as of r29841 implements Str.split(Str), but not with a Regex as its argument. Like

[perl #57336] Using attribute variables outside of methods causes strange errors in rakudo

2008-07-29 Thread [EMAIL PROTECTED] via RT
Hi, I've made some of these fail a little less spectacularly now. Implementing a better error message cleanly either needs some refactoring of variable declaration handling code (so when we're parsing a variable we know if we're parsing a declaration), or is something we should do in an analysis s

[perl #56716] [TODO]: speed up the configure tests

2008-07-29 Thread James Keenan via RT
I have prepared a patch which represents an 'svn diff' between trunk and the 'parallel' branch at the point of the branch's inception. Rather than swamp your inboxes, I'm posting it here: http://thenceforward.net/parrot/diff.trunk.parallel.txt This patch is more for review than application. Bec