perl.perl6.compiler http://www.nntp.perl.org/group/perl.perl6.compiler/ ... Copyright 1998-2008 perl.org Sun, 20 Jul 2008 12:58:58 +0000 ask@perl.org Re: [perl #57126] AutoReply: Rakudo should give a nice error about lexical subs not being implemented yet, but doesn't by Carl Mäsak The error seems to be in the generated PIR code. From<br/>src/gen_actions.pir (lines 6306-6315):<br/><br/> control_3001:<br/> .local pmc exception<br/> .get_results (exception, $S10)<br/> getattribute $P3250, exception, &quot;type&quot; # Null PMC access in type()<br/> ne $P3250, 89, control_3001_rethrow<br/> getattribute $P3250, exception, &quot;payload&quot;<br/> .return ($P3250)<br/> control_3001_rethrow:<br/> throw exception<br/>.end<br/><br/>Everything else seems to work, the line with the $/.panic<br/>(src/parser/actions.pm:1984) is reached...<br/><br/>I don&#39;t have sufficient knowledge in PIR or NQP to probe this further.<br/>But maybe this helps someone who has.<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2097.html Sun, 20 Jul 2008 05:16:48 +0000 [perl #57094] [BUG] infix:= converts a PGE::Match to a Str, not a Match by Chris Fields # New Ticket Created by Chris Fields <br/># Please include the string: [perl #57094]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57094 &gt;<br/><br/><br/>infix:= converts PGE::Match to a Str, not a Match. This requires the <br/>latest patch from RT#56970 (simple match() implementation). .match <br/>should return a Match object.<br/><br/>jonathan++ for working this one out. See:<br/><br/>http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2089.html<br/><br/>Following is a small test script demonstrating the problem.<br/><br/>my $x = &quot;foo&quot;;<br/><br/>my $y = $x.match(/o+/);<br/>say $y;<br/>say $y.WHAT;<br/><br/>say ($x.match(/o+/)).WHAT; # Match<br/><br/>chris<br/><br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2096.html Sat, 19 Jul 2008 10:27:10 +0000 [perl #57124] Multi sub declaration without parens parsefails by Carl Mäsak # New Ticket Created by &quot;Carl M&Atilde;&curren;sak&quot; <br/># Please include the string: [perl #57124]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57124 &gt;<br/><br/><br/>While<br/><br/>$ ./perl6 -e &#39;sub f {}&#39;<br/><br/>works,<br/><br/>$ ./perl6 -e &#39;multi sub f {}&#39;<br/>get_pmc_keyed() not implemented in class &#39;Undef&#39;<br/>current instr.: &#39;parrot;Perl6;Grammar;Actions;multi_declarator&#39; pc<br/>133690 (src/gen_actions.pir:13082)<br/>called from Sub &#39;parrot;Perl6::Grammar;multi_declarator&#39; pc 46055<br/>(src/gen_grammar.pir:10909)<br/>called from Sub &#39;parrot;Perl6::Grammar;noun&#39; pc 65282<br/>(src/gen_grammar.pir:17906)<br/>called from Sub &#39;parrot;Perl6::Grammar;expect_term&#39; pc 60889<br/>(src/gen_grammar.pir:16303)<br/>called from Sub &#39;parrot;PGE::OPTable;parse&#39; pc 1952<br/>(compilers/pge/PGE/OPTable.pir:552)<br/>called from Sub &#39;parrot;Perl6::Grammar;statement&#39; pc 24039<br/>(src/gen_grammar.pir:3115)<br/>called from Sub &#39;parrot;Perl6::Grammar;statementlist&#39; pc 22090<br/>(src/gen_grammar.pir:2414)<br/>called from Sub &#39;parrot;Perl6::Grammar;statement_block&#39; pc 20057<br/>(src/gen_grammar.pir:1650)<br/>called from Sub &#39;parrot;Perl6::Grammar;TOP&#39; pc 16329 (src/gen_grammar.pir:224)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;parse&#39; pc 585<br/>(src/PCT/HLLCompiler.pir:371)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;compile&#39; pc 438<br/>(src/PCT/HLLCompiler.pir:303)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;eval&#39; pc 776<br/>(src/PCT/HLLCompiler.pir:473)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;command_line&#39; pc 1305<br/>(src/PCT/HLLCompiler.pir:708)<br/>called from Sub &#39;parrot;Perl6::Compiler;main&#39; pc 14518 (perl6.pir:172)<br/><br/>doesn&#39;t.<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2095.html Sat, 19 Jul 2008 10:11:54 +0000 [perl #57122] lone 'multi' is not understood correctly by rakudo by Carl Mäsak # New Ticket Created by &quot;Carl M&Atilde;&curren;sak&quot; <br/># Please include the string: [perl #57122]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57122 &gt;<br/><br/><br/>While<br/><br/>$ ./perl6 -e &#39;multi sub f() {}&#39;<br/><br/>works like it should,<br/><br/>$ ./perl6 -e &#39;multi f() {}&#39;<br/>Statement not terminated properly at line 1, near &quot;{}&quot;<br/>current instr.: &#39;parrot;PGE::Util;die&#39; pc 120<br/>(runtime/parrot/library/PGE/Util.pir:82)<br/>called from Sub &#39;parrot;Perl6::Grammar;eat_terminator&#39; pc 23187<br/>(src/gen_grammar.pir:2813)<br/>called from Sub &#39;parrot;Perl6::Grammar;statementlist&#39; pc 22200<br/>(src/gen_grammar.pir:2450)<br/>called from Sub &#39;parrot;Perl6::Grammar;statement_block&#39; pc 20057<br/>(src/gen_grammar.pir:1650)<br/>called from Sub &#39;parrot;Perl6::Grammar;TOP&#39; pc 16329 (src/gen_grammar.pir:224)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;parse&#39; pc 585<br/>(src/PCT/HLLCompiler.pir:371)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;compile&#39; pc 438<br/>(src/PCT/HLLCompiler.pir:303)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;eval&#39; pc 776<br/>(src/PCT/HLLCompiler.pir:473)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;command_line&#39; pc 1305<br/>(src/PCT/HLLCompiler.pir:708)<br/>called from Sub &#39;parrot;Perl6::Compiler;main&#39; pc 14518 (perl6.pir:172)<br/><br/>doesn&#39;t.<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2094.html Sat, 19 Jul 2008 10:11:53 +0000 [perl #57126] Rakudo should give a nice error about lexical subs not being implemented yet, but doesn't by Carl Mäsak # New Ticket Created by &quot;Carl M&Atilde;&curren;sak&quot; <br/># Please include the string: [perl #57126]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57126 &gt;<br/><br/><br/>&lt;masak&gt; perl6: my sub foo() {}<br/>&lt;polyglotbot&gt; OUTPUT[Null PMC access in type()<br/>current instr.: &#39;parrot;Perl6;Grammar;Actions;scope_declarator&#39; pc<br/>112750 (src/gen_actions.pir:6116)<br/>called from Sub &#39;parrot;Perl6::Grammar;scope_declarator&#39; pc 77148<br/>(src/gen_grammar.pir:22424)<br/>called from Sub &#39;parrot;Perl6::Grammar;noun&#39; pc 64317<br/>(src/gen_grammar.pir:17946)<br/>called from Sub &#39;parrot;Perl6::Gramma...<br/>[...]<br/>&lt;jonathan&gt; Ouch. That is meant to say something like &quot;Lexical subs not<br/>yet implemented&quot;<br/>&lt;jonathan&gt; I know it&#39;s meant to because I put the error message in to say so!<br/>[...]<br/>&lt;masak&gt; ah, here: src/parser/actions.pm:1984<br/>&lt;masak&gt; $/.panic(&quot;Lexically scoped subs not yet implemented.&quot;);<br/>&lt;jonathan&gt; Yeah<br/>&lt;jonathan&gt; But why we&#39;re not getting that, and are getting the null<br/>PMC access instead, I don&#39;t know.<br/>[...]<br/>&lt;jonathan&gt; Odd.<br/>&lt;jonathan&gt; OK, file a ticket.<br/>* masak files<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2093.html Sat, 19 Jul 2008 10:11:53 +0000 [perl #57118] A dollar sign at the end of a string makes rakudo hang by Carl Mäsak # New Ticket Created by &quot;Carl M&Atilde;&curren;sak&quot; <br/># Please include the string: [perl #57118]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57118 &gt;<br/><br/><br/>$ ./perl6 -e &#39;&quot;$&quot;&#39;<br/><br/>hangs.<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2092.html Sat, 19 Jul 2008 10:10:04 +0000 Re: [perl #57076] AutoReply: "nothing while <cond>" fails by Carl Mäsak Larry (&gt;), Carl (&gt;:):<br/>&gt; : Here&#39;s a 1-line patch that fixes nothing, pmichaud++.<br/>&gt;<br/>&gt; Note that nothing is now unspecced. :)<br/><br/>Are you suggesting that nothing may be replaced in the future?<br/><br/>// Carl<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2091.html Sat, 19 Jul 2008 03:08:34 +0000 Re: odd (lexical?) issue with Rakudo/Parrot by Chris Fields <br/>On Jul 18, 2008, at 5:18 PM, Jonathan Worthington wrote:<br/><br/>&gt; Hi,<br/>&gt;<br/>&gt; Chris Fields wrote:<br/>&gt;&gt; The PGE::Match appears to be converted to a Str, regardless of the <br/>&gt;&gt; invoking object type. The following is .match (in any-str.pir, <br/>&gt;&gt; with the builtins). Also, .ACCEPTS now uses .match to retrieve the <br/>&gt;&gt; Match object.<br/>&gt;&gt;<br/>&gt;&gt; # any-str.pir<br/>&gt;&gt;<br/>&gt;&gt; .sub &#39;match&#39; :method :multi(_)<br/>&gt;&gt; .param pmc x<br/>&gt;&gt; .local pmc match<br/>&gt;&gt; match = x(self)<br/>&gt;&gt; .return (match)<br/>&gt;&gt; .end<br/>&gt;&gt;<br/>&gt;&gt; # Code.pir<br/>&gt;&gt;<br/>&gt;&gt; .sub &#39;ACCEPTS&#39; :method<br/>&gt;&gt; .param pmc topic<br/>&gt;&gt; .local pmc match<br/>&gt;&gt; match = topic.&#39;match&#39;(self)<br/>&gt;&gt; $P0 = getinterp<br/>&gt;&gt; $P1 = $P0[&#39;lexpad&#39;;1]<br/>&gt;&gt; $P1[&#39;$/&#39;] = match<br/>&gt;&gt; .return (match)<br/>&gt;&gt; .end<br/>&gt;&gt;<br/>&gt;&gt; the following is a test p6 script (results in comments):<br/>&gt;&gt;<br/>&gt;&gt; my $x = &#39;123.456&#39;;<br/>&gt;&gt; my $y = $x.match(/\d+/);<br/>&gt;&gt; say $x; # 123.456<br/>&gt;&gt; say $x.WHAT; # Str<br/>&gt;&gt; say $y; # 123<br/>&gt;&gt; say $y.WHAT; # Str &lt;- Should be Match<br/>&gt; Ouch! But I&#39;ve tracked it down. :-) The interesting thing is that:<br/>&gt;<br/>&gt; my $x = &quot;foo&quot;; say ($x.match(/o+/)).WHAT; # Match<br/>&gt;<br/>&gt; So it fails in the assignment. And that&#39;s because infix:= to a <br/>&gt; scalar does:<br/>&gt;<br/>&gt; .sub &#39;infix:=&#39; :method<br/>&gt; .param pmc source<br/>&gt; $P0 = source.&#39;item&#39;()<br/>&gt; assign self, $P0<br/>&gt; .return (self)<br/>&gt; .end<br/>&gt;<br/>&gt; And calling item on a Match object gets the string that matched. <br/>&gt; Thus why we don&#39;t get the Match object. So, that&#39;s the cause; I&#39;m <br/>&gt; not sure what the correct fix is, so I&#39;ll delegate to pmichaud on <br/>&gt; that one. We could special case it, but it doesn&#39;t feel very clean, <br/>&gt; and special cases in a hot code patch like infix:= probably ain&#39;t so <br/>&gt; desirable.<br/>&gt;<br/>&gt; Thanks,<br/>&gt;<br/>&gt; Jonathan<br/><br/>Good catch, jonathan++<br/><br/>I would rather wait for the right fix so no hurry (special casing <br/>seems wrong to me as well). I&#39;ll start a ticket so it doesn&#39;t get <br/>lost in the ether. We can implement .match after that, doesn&#39;t make <br/>sense to have it pass back the wrong thing in the meantime.<br/><br/>chris<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2090.html Fri, 18 Jul 2008 17:13:51 +0000 Re: odd (lexical?) issue with Rakudo/Parrot by Jonathan Worthington Hi,<br/><br/>Chris Fields wrote:<br/>&gt; The PGE::Match appears to be converted to a Str, regardless of the <br/>&gt; invoking object type. The following is .match (in any-str.pir, with <br/>&gt; the builtins). Also, .ACCEPTS now uses .match to retrieve the Match <br/>&gt; object.<br/>&gt;<br/>&gt; # any-str.pir<br/>&gt;<br/>&gt; .sub &#39;match&#39; :method :multi(_)<br/>&gt; .param pmc x<br/>&gt; .local pmc match<br/>&gt; match = x(self)<br/>&gt; .return (match)<br/>&gt; .end<br/>&gt;<br/>&gt; # Code.pir<br/>&gt;<br/>&gt; .sub &#39;ACCEPTS&#39; :method<br/>&gt; .param pmc topic<br/>&gt; .local pmc match<br/>&gt; match = topic.&#39;match&#39;(self)<br/>&gt; $P0 = getinterp<br/>&gt; $P1 = $P0[&#39;lexpad&#39;;1]<br/>&gt; $P1[&#39;$/&#39;] = match<br/>&gt; .return (match)<br/>&gt; .end<br/>&gt;<br/>&gt; the following is a test p6 script (results in comments):<br/>&gt;<br/>&gt; my $x = &#39;123.456&#39;;<br/>&gt; my $y = $x.match(/\d+/);<br/>&gt; say $x; # 123.456<br/>&gt; say $x.WHAT; # Str<br/>&gt; say $y; # 123<br/>&gt; say $y.WHAT; # Str &lt;- Should be Match<br/>Ouch! But I&#39;ve tracked it down. :-) The interesting thing is that:<br/><br/>my $x = &quot;foo&quot;; say ($x.match(/o+/)).WHAT; # Match<br/><br/>So it fails in the assignment. And that&#39;s because infix:= to a scalar does:<br/><br/>.sub &#39;infix:=&#39; :method<br/> .param pmc source<br/> $P0 = source.&#39;item&#39;()<br/> assign self, $P0<br/> .return (self)<br/>.end<br/><br/>And calling item on a Match object gets the string that matched. Thus <br/>why we don&#39;t get the Match object. So, that&#39;s the cause; I&#39;m not sure <br/>what the correct fix is, so I&#39;ll delegate to pmichaud on that one. We <br/>could special case it, but it doesn&#39;t feel very clean, and special cases <br/>in a hot code patch like infix:= probably ain&#39;t so desirable.<br/><br/>Thanks,<br/><br/>Jonathan<br/><br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2089.html Fri, 18 Jul 2008 15:18:32 +0000 Re: [perl #57076] AutoReply: "nothing while <cond>" fails by Larry Wall On Fri, Jul 18, 2008 at 05:53:17PM +0200, Carl M&auml;sak wrote:<br/>: Here&#39;s a 1-line patch that fixes nothing, pmichaud++.<br/><br/>Note that nothing is now unspecced. :)<br/><br/>Larry<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2088.html Fri, 18 Jul 2008 10:35:24 +0000 [perl #57076] "nothing while <cond>" fails by Carl Mäsak # New Ticket Created by &quot;Carl M&Atilde;&curren;sak&quot; <br/># Please include the string: [perl #57076]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57076 &gt;<br/><br/><br/>Even though the keyword nothing is implemented in rakudo, the following fails:<br/><br/>$ ./perl6 -e &#39;my $var = 0; nothing while $var++ &lt; 3&#39;<br/>Could not find non-existent sub while<br/>current instr.: &#39;_block11&#39; pc 71 (EVAL_13:26)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;eval&#39; pc 806<br/>(src/PCT/HLLCompiler.pir:481)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;command_line&#39; pc 1305<br/>(src/PCT/HLLCompiler.pir:708)<br/>called from Sub &#39;parrot;Perl6::Compiler;main&#39; pc 14346 (perl6.pir:172)<br/>$<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2087.html Fri, 18 Jul 2008 10:00:56 +0000 [perl #57078] return value from causes null PMC access by Carl Mäsak # New Ticket Created by &quot;Carl M&Atilde;&curren;sak&quot; <br/># Please include the string: [perl #57078]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57078 &gt;<br/><br/><br/>According to t/spec/S29-context/sleep.t (in the Pugs repo), you&#39;re<br/>supposed to do this:<br/><br/>my $sleep_says = sleep 3;<br/><br/>but<br/><br/>$ ./perl6 -e &#39;sleep 3&#39; # works<br/>$ ./perl6 -e &#39;my $a = sleep 3;&#39;<br/>Null PMC access in can()<br/>current instr.: &#39;parrot;Perl6Object;infix:=&#39; pc 37 (src/gen_builtins.pir:45)<br/>called from Sub &#39;_block11&#39; pc 36 (EVAL_11:16)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;eval&#39; pc 806<br/>(src/PCT/HLLCompiler.pir:481)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;command_line&#39; pc 1305<br/>(src/PCT/HLLCompiler.pir:708)<br/>called from Sub &#39;parrot;Perl6::Compiler;main&#39; pc 14346 (perl6.pir:172)<br/>$<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2086.html Fri, 18 Jul 2008 09:05:59 +0000 [perl #57068] Patch implementing printf by Carl Mäsak # New Ticket Created by &quot;Carl M&Atilde;&curren;sak&quot; <br/># Please include the string: [perl #57068]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57068 &gt;<br/><br/><br/>...both as a global function and as a method on IO.<br/><br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2085.html Fri, 18 Jul 2008 09:05:43 +0000 Re: odd (lexical?) issue with Rakudo/Parrot by Chris Fields <br/>On Jul 17, 2008, at 9:41 PM, Patrick R. Michaud wrote:<br/><br/>&gt; On Thu, Jul 17, 2008 at 02:20:33PM -0500, Chris Fields wrote:<br/>&gt;&gt; Okay, I&#39;ll set it up so &quot;$foo = &#39;abcd&#39;.match(/&lt;alpha&gt;+/)&quot; returns a<br/>&gt;&gt; Match object, and $/ would remain unset. Makes sense to me.<br/>&gt;&gt;<br/>&gt;&gt; Right now the match object is converted over to a Str; I&#39;ll take a<br/>&gt;&gt; look at the parser grammar/actions to see if that can be fixed.<br/>&gt;<br/>&gt; It is? That&#39;s odd and shouldn&#39;t be happening -- something must<br/>&gt; be incorrect there.<br/>&gt;<br/>&gt; Pm<br/><br/><br/>The PGE::Match appears to be converted to a Str, regardless of the <br/>invoking object type. The following is .match (in any-str.pir, with <br/>the builtins). Also, .ACCEPTS now uses .match to retrieve the Match <br/>object.<br/><br/># any-str.pir<br/><br/>.sub &#39;match&#39; :method :multi(_)<br/> .param pmc x<br/> .local pmc match<br/> match = x(self)<br/> .return (match)<br/>.end<br/><br/># Code.pir<br/><br/>.sub &#39;ACCEPTS&#39; :method<br/> .param pmc topic<br/> .local pmc match<br/> match = topic.&#39;match&#39;(self)<br/> $P0 = getinterp<br/> $P1 = $P0[&#39;lexpad&#39;;1]<br/> $P1[&#39;$/&#39;] = match<br/> .return (match)<br/>.end<br/><br/>the following is a test p6 script (results in comments):<br/><br/>my $x = &#39;123.456&#39;;<br/>my $y = $x.match(/\d+/);<br/>say $x; # 123.456<br/>say $x.WHAT; # Str<br/>say $y; # 123<br/>say $y.WHAT; # Str &lt;- Should be Match<br/><br/>$x = 123.456;<br/>$y = $x.match(/\d+/);<br/>say $x; # 123.456<br/>say $x.WHAT; # Num<br/>say $y; # 123<br/>say $y.WHAT; # Str &lt;- Should be Match<br/><br/>say $/; # Nothing<br/>say $/.WHAT; # Failure, .match doesn&#39;t set $/<br/><br/>$x ~~ /\d+/;<br/>say $/; # 123<br/>say $/.WHAT; # Match<br/><br/>As shown above, calling .match from .ACCEPTS (either using smart match <br/>or using /\d+/.ACCEPTS($x) ) works fine, but calling .match as a <br/>method from p6 doesn&#39;t. Makes me think it&#39;s a mapping issue.<br/><br/>chris<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2084.html Fri, 18 Jul 2008 09:02:53 +0000 Re: [perl #57078] AutoReply: return value from causes null PMC access by Carl Mäsak Oops. I meant to call the bug &quot;return value from sleep causes null PMC access&quot;.<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2083.html Fri, 18 Jul 2008 08:55:47 +0000 Re: [perl #57076] AutoReply: "nothing while <cond>" fails by Carl Mäsak Here&#39;s a 1-line patch that fixes nothing, pmichaud++.<br/><br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2082.html Fri, 18 Jul 2008 08:53:58 +0000 Re: [perl #57014] ./perl6 -e '1' gives error and segfaults by Carl Mäsak Um, you can close this bug. Turns out I had a dirty working copy after<br/>finding a patch for #56638.<br/><br/>Sorry for crying wolf this time.<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2081.html Fri, 18 Jul 2008 01:04:48 +0000 Re: odd (lexical?) issue with Rakudo/Parrot by Patrick R. Michaud On Thu, Jul 17, 2008 at 02:20:33PM -0500, Chris Fields wrote:<br/>&gt; Okay, I&#39;ll set it up so &quot;$foo = &#39;abcd&#39;.match(/&lt;alpha&gt;+/)&quot; returns a <br/>&gt; Match object, and $/ would remain unset. Makes sense to me.<br/>&gt; <br/>&gt; Right now the match object is converted over to a Str; I&#39;ll take a <br/>&gt; look at the parser grammar/actions to see if that can be fixed.<br/><br/>It is? That&#39;s odd and shouldn&#39;t be happening -- something must<br/>be incorrect there.<br/><br/>Pm<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2080.html Thu, 17 Jul 2008 19:45:27 +0000 Re: odd (lexical?) issue with Rakudo/Parrot by Chris Fields On Jul 17, 2008, at 1:56 AM, Moritz Lenz wrote:<br/><br/>&gt;<br/>&gt;&gt;&gt; Essentially the difference is that smart-match sets $/, while<br/>&gt;&gt;&gt; a simple call to .match probably should not.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Pm<br/>&gt;&gt;<br/>&gt;&gt; I can have .match not set $/ for now and simply return matches based<br/>&gt;&gt; on context<br/>&gt;<br/>&gt; IMHO that&#39;s the wrong approach. Perl 6 tries not to return stuff based<br/>&gt; on context, but to return stuff that will behave right in every <br/>&gt; context.<br/>&gt;<br/>&gt; So if you just return a match object (that one that would usually ends<br/>&gt; up in $/ ) you should be just fine all contexts.<br/>&gt;<br/>&gt; Moritz<br/><br/>Okay, I&#39;ll set it up so &quot;$foo = &#39;abcd&#39;.match(/&lt;alpha&gt;+/)&quot; returns a <br/>Match object, and $/ would remain unset. Makes sense to me.<br/><br/>Right now the match object is converted over to a Str; I&#39;ll take a <br/>look at the parser grammar/actions to see if that can be fixed.<br/><br/>chris<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2079.html Thu, 17 Jul 2008 14:37:21 +0000 Re: [perl #57014] ./perl6 -e '1' gives error and segfaults by Carl Mäsak The error first appears in -r29263, the revision that introduces enums.pir.<br/><br/>$ svn log -r29263 -v<br/>------------------------------------------------------------------------<br/>r29263 | jonathan | 2008-07-11 00:50:39 +0200 (Fri, 11 Jul 2008) | 1 line<br/>Changed paths:<br/> M /trunk/MANIFEST<br/> M /trunk/languages/perl6/config/makefiles/root.in<br/> A /trunk/languages/perl6/src/builtins/enums.pir<br/> M /trunk/languages/perl6/src/classes/Bool.pir<br/><br/>[rakudo] Switch True and False over to being real values from the (now<br/>existing) bool enumeration, rather than instances of the Bool class.<br/>------------------------------------------------------------------------<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2078.html Thu, 17 Jul 2008 09:19:38 +0000 Re: odd (lexical?) issue with Rakudo/Parrot by Moritz Lenz Chris Fields wrote:<br/>&gt; On Jul 16, 2008, at 1:28 PM, Patrick R. Michaud wrote:<br/>&gt; <br/>&gt;&gt; On Wed, Jul 16, 2008 at 11:20:28AM -0500, Chris Fields wrote:<br/>&gt;&gt;&gt; I have submitted a simple &#39;match&#39; implementation for rakudo (method<br/>&gt;&gt;&gt; version of m//, RT#56970) and ran into an odd issue. The current<br/>&gt;&gt;&gt; version of match which works uses a tail call:<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; .sub &#39;match&#39; :method<br/>&gt;&gt;&gt; .param pmc x<br/>&gt;&gt;&gt; .return x.ACCEPTS(self)<br/>&gt;&gt;&gt; .end<br/>&gt;&gt;<br/>&gt;&gt; .ACCEPTS should be calling .match, not vice-versa.<br/>&gt; <br/>&gt; Okay, though ACCEPTS is currently defined in Code.pir (REJECTS as <br/>&gt; well). Would calling .match pertain to all executable blocks, or <br/>&gt; should we have a Regex-specific ACCEPTS that calls .match?<br/>&gt; <br/>&gt; BTW (and a bit OT, but probably related to the above), Rakudo <br/>&gt; currently indicates a regex is a Block, not a Regex; haven&#39;t looked at <br/>&gt; it in detail and don&#39;t know if it&#39;s worth worrying about for now.<br/>&gt; <br/>&gt; &gt; say /foo/.WHAT<br/>&gt; Block<br/>&gt; <br/>&gt;&gt; Essentially the difference is that smart-match sets $/, while<br/>&gt;&gt; a simple call to .match probably should not.<br/>&gt;&gt;<br/>&gt;&gt; Pm<br/>&gt; <br/>&gt; I can have .match not set $/ for now and simply return matches based <br/>&gt; on context <br/><br/>IMHO that&#39;s the wrong approach. Perl 6 tries not to return stuff based<br/>on context, but to return stuff that will behave right in every context.<br/><br/>So if you just return a match object (that one that would usually ends<br/>up in $/ ) you should be just fine all contexts.<br/><br/>Moritz<br/><br/>-- <br/>Moritz Lenz<br/>http://moritz.faui2k3.org/ | http://perl-6.de/<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2077.html Wed, 16 Jul 2008 23:57:17 +0000 Re: odd (lexical?) issue with Rakudo/Parrot by Chris Fields <br/>On Jul 16, 2008, at 5:45 PM, Chris Fields wrote:<br/><br/>&gt;<br/>&gt; On Jul 16, 2008, at 1:28 PM, Patrick R. Michaud wrote:<br/>&gt;<br/>&gt;&gt; On Wed, Jul 16, 2008 at 11:20:28AM -0500, Chris Fields wrote:<br/>&gt;&gt;&gt; I have submitted a simple &#39;match&#39; implementation for rakudo (method<br/>&gt;&gt;&gt; version of m//, RT#56970) and ran into an odd issue. The current<br/>&gt;&gt;&gt; version of match which works uses a tail call:<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; .sub &#39;match&#39; :method<br/>&gt;&gt;&gt; .param pmc x<br/>&gt;&gt;&gt; .return x.ACCEPTS(self)<br/>&gt;&gt;&gt; .end<br/>&gt;&gt;<br/>&gt;&gt; .ACCEPTS should be calling .match, not vice-versa.<br/>&gt;<br/>&gt; Okay, though ACCEPTS is currently defined in Code.pir (REJECTS as <br/>&gt; well). Would calling .match pertain to all executable blocks, or <br/>&gt; should we have a Regex-specific ACCEPTS that calls .match?<br/><br/>Forget that last bit; I&#39;m re-reading the relevant parts of S03/S05 to <br/>get everything straight.<br/><br/>chris<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2076.html Wed, 16 Jul 2008 23:49:38 +0000 Re: odd (lexical?) issue with Rakudo/Parrot by Chris Fields <br/>On Jul 16, 2008, at 1:28 PM, Patrick R. Michaud wrote:<br/><br/>&gt; On Wed, Jul 16, 2008 at 11:20:28AM -0500, Chris Fields wrote:<br/>&gt;&gt; I have submitted a simple &#39;match&#39; implementation for rakudo (method<br/>&gt;&gt; version of m//, RT#56970) and ran into an odd issue. The current<br/>&gt;&gt; version of match which works uses a tail call:<br/>&gt;&gt;<br/>&gt;&gt; .sub &#39;match&#39; :method<br/>&gt;&gt; .param pmc x<br/>&gt;&gt; .return x.ACCEPTS(self)<br/>&gt;&gt; .end<br/>&gt;<br/>&gt; .ACCEPTS should be calling .match, not vice-versa.<br/><br/>Okay, though ACCEPTS is currently defined in Code.pir (REJECTS as <br/>well). Would calling .match pertain to all executable blocks, or <br/>should we have a Regex-specific ACCEPTS that calls .match?<br/><br/>BTW (and a bit OT, but probably related to the above), Rakudo <br/>currently indicates a regex is a Block, not a Regex; haven&#39;t looked at <br/>it in detail and don&#39;t know if it&#39;s worth worrying about for now.<br/><br/> &gt; say /foo/.WHAT<br/>Block<br/><br/>&gt; Essentially the difference is that smart-match sets $/, while<br/>&gt; a simple call to .match probably should not.<br/>&gt;<br/>&gt; Pm<br/><br/>I can have .match not set $/ for now and simply return matches based <br/>on context (though I haven&#39;t messed with context much). If we get <br/>some clarification about whether .match should set $/ we can always <br/>change it later.<br/><br/>chris<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2075.html Wed, 16 Jul 2008 23:47:21 +0000 Re: [perl #57018] Empty -e argument sends rakudo into REPL mode by Moritz Lenz Carl M&auml;sak (via RT) wrote:<br/>&gt; Both<br/>&gt; <br/>&gt; $ ./perl6 -e &#39;&#39;<br/>&gt; <br/>&gt; and<br/>&gt; <br/>&gt; $ ../../parrot perl6.pbc -e &#39;&#39;<br/><br/>Also -e 0<br/><br/>&gt; send rakudo into REPL mode, whereas<br/>&gt; <br/>&gt; $ perl -e &#39;&#39;<br/>&gt; <br/>&gt; doesn&#39;t.<br/><br/><br/>-- <br/>Moritz Lenz<br/>http://moritz.faui2k3.org/ | http://perl-6.de/<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2074.html Wed, 16 Jul 2008 15:07:07 +0000 [perl #57018] Empty -e argument sends rakudo into REPL mode by Carl Mäsak # New Ticket Created by &quot;Carl M&Atilde;&curren;sak&quot; <br/># Please include the string: [perl #57018]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57018 &gt;<br/><br/><br/>Both<br/><br/>$ ./perl6 -e &#39;&#39;<br/><br/>and<br/><br/>$ ../../parrot perl6.pbc -e &#39;&#39;<br/><br/>send rakudo into REPL mode, whereas<br/><br/>$ perl -e &#39;&#39;<br/><br/>doesn&#39;t.<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2073.html Wed, 16 Jul 2008 14:57:27 +0000 [perl #57014] ./perl6 -e '1' gives error and segfaults by Carl Mäsak # New Ticket Created by &quot;Carl M&Atilde;&curren;sak&quot; <br/># Please include the string: [perl #57014]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57014 &gt;<br/><br/><br/>Both<br/><br/>$ ./perl6 -e &#39;1&#39;<br/><br/>and<br/><br/>$ ../../parrot perl6.pbc -e &#39;1&#39;<br/><br/>give the error output<br/><br/>Lexical &#39;$expr&#39; not found<br/>current instr.: &#39;parrot;Perl6;Grammar;Actions;statement&#39; pc 137242<br/>(src/gen_actions.pir:14471)<br/>called from Sub &#39;parrot;Perl6::Grammar;statement&#39; pc 25174<br/>(src/gen_grammar.pir:3568)<br/>called from Sub &#39;parrot;Perl6::Grammar;statementlist&#39; pc 21882<br/>(src/gen_grammar.pir:2414)<br/>called from Sub &#39;parrot;Perl6::Grammar;statement_block&#39; pc 19849<br/>(src/gen_grammar.pir:1650)<br/>called from Sub &#39;parrot;Perl6::Grammar;TOP&#39; pc 16121 (src/gen_grammar.pir:224)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;parse&#39; pc 585<br/>(src/PCT/HLLCompiler.pir:371)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;compile&#39; pc 438<br/>(src/PCT/HLLCompiler.pir:303)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;eval&#39; pc 776<br/>(src/PCT/HLLCompiler.pir:473)<br/>called from Sub &#39;parrot;PCT::HLLCompiler;command_line&#39; pc 1305<br/>(src/PCT/HLLCompiler.pir:708)<br/>called from Sub &#39;parrot;Perl6::Compiler;main&#39; pc 14310 (perl6.pir:172)<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2072.html Wed, 16 Jul 2008 14:40:19 +0000 Re: odd (lexical?) issue with Rakudo/Parrot by Patrick R. Michaud On Wed, Jul 16, 2008 at 11:20:28AM -0500, Chris Fields wrote:<br/>&gt; I have submitted a simple &#39;match&#39; implementation for rakudo (method <br/>&gt; version of m//, RT#56970) and ran into an odd issue. The current <br/>&gt; version of match which works uses a tail call:<br/>&gt; <br/>&gt; .sub &#39;match&#39; :method<br/>&gt; .param pmc x<br/>&gt; .return x.ACCEPTS(self)<br/>&gt; .end<br/><br/>.ACCEPTS should be calling .match, not vice-versa.<br/><br/>Essentially the difference is that smart-match sets $/, while<br/>a simple call to .match probably should not.<br/><br/>Pm<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2071.html Wed, 16 Jul 2008 11:28:18 +0000 odd (lexical?) issue with Rakudo/Parrot by Chris Fields I have submitted a simple &#39;match&#39; implementation for rakudo (method <br/>version of m//, RT#56970) and ran into an odd issue. The current <br/>version of match which works uses a tail call:<br/><br/>.sub &#39;match&#39; :method<br/> .param pmc x<br/> .return x.ACCEPTS(self)<br/>.end<br/><br/>If I try the following:<br/><br/>.sub &#39;match&#39; :method<br/> .param pmc x<br/> .local pmc match<br/> match = x.ACCEPTS(self);<br/> .return (match)<br/>.end<br/><br/>I run into &#39;Null PMC access in set_pmc_keyed()&#39; with ACCEPTS (below), <br/>which is failing to get the LexPad:<br/><br/>.sub &#39;ACCEPTS&#39; :method<br/> .param pmc topic<br/> .local pmc match<br/> match = self(topic)<br/> $P0 = getinterp<br/> $P1 = $P0[&#39;lexpad&#39;;1]<br/> $P1[&#39;$/&#39;] = match<br/> .return (match)<br/>.end<br/><br/>If I simply change match to mimic ACCEPTS, everything works fine. <br/>This makes me think something is going on with lexicals, but I&#39;m not <br/>quite sure. Am I missing something?<br/><br/>chris<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2070.html Wed, 16 Jul 2008 11:03:57 +0000 [perl #56976] [TODO] implement state variables by Moritz Lenz # New Ticket Created by Moritz Lenz <br/># Please include the string: [perl #56976]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56976 &gt;<br/><br/><br/>State variables need to be implemented, the tests are already there in<br/>S04-declarations/state.t<br/><br/>As a side node (and related to RT #56748), rakudo as of r29490 gives a<br/>bogus error message when encountering a state declaration:<br/><br/>$ ../../parrot perl6.pbc -e &#39;sub foo { state $x }; 1&#39;<br/>Null PMC access in type()<br/><br/><br/>-- <br/>Moritz Lenz<br/>http://moritz.faui2k3.org/ | http://perl-6.de/<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2069.html Wed, 16 Jul 2008 05:23:29 +0000 [perl #56970] [PATCH] simple match() implementation by Chris Fields # New Ticket Created by Chris Fields <br/># Please include the string: [perl #56970]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56970 &gt;<br/><br/><br/>Attached is a (very simple) patch for a match() implementation (method <br/>version of m//). This version doesn&#39;t take modifiers yet; not sure if <br/>we should wait until PGE LTM fixes are in.<br/><br/>chris<br/><br/><br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2068.html Wed, 16 Jul 2008 05:21:10 +0000 [perl #56944] [BUG] integer arithmtics should result in integers by Moritz Lenz # New Ticket Created by Moritz Lenz <br/># Please include the string: [perl #56944]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56944 &gt;<br/><br/><br/>Rakudo r29470:<br/>$ ../../parrot perl6.pbc -e &#39;say (1+1).WHAT&#39;<br/>Num<br/>$ ../../parrot perl6.pbc -e &#39;say (1*1).WHAT&#39;<br/>Num<br/>$ ../../parrot perl6.pbc -e &#39;say (1**1).WHAT&#39;<br/>Num<br/><br/>All of these should print Int instead.<br/>(This is a known bug, but as far as I can see it hasn&#39;t been in RT)<br/><br/>-- <br/>Moritz Lenz<br/>http://moritz.faui2k3.org/ | http://perl-6.de/<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2067.html Tue, 15 Jul 2008 07:51:41 +0000 Re: [perl #56900] [TODO] more ROADMAP informations by Carl Mäsak Moritz (&gt;):<br/>&gt; Or maybe even enumerate the roadmap entries, and then use these to list<br/>&gt; interdepencies (for example numbers for entries and letters for footnotes).<br/><br/>Were we to do this consistently enough, there&#39;s always the added bonus<br/>of writing a simple filter into dot, getting a dependency graph.<br/><br/> &lt;http://www.graphviz.org/&gt;<br/> &lt;http://search.cpan.org/dist/GraphViz/lib/GraphViz/Data/Grapher.pm&gt;<br/><br/>It&#39;s always nice to have a &quot;you are here&quot; picture to look at, and Perl<br/>makes this kind of transformation almost trivial.<br/><br/>If more people think this is a good idea, I&#39;ll try my hand at hacking<br/>together such a filter.<br/><br/>// Carl<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2066.html Tue, 15 Jul 2008 00:12:33 +0000 Re: [perl #56900] [TODO] more ROADMAP informations by Moritz Lenz Patrick R. Michaud wrote:<br/>&gt; On Sun, Jul 13, 2008 at 01:30:27PM -0700, Moritz Lenz wrote:<br/>&gt;&gt; I read ROADMAP again the other day, and thought about topics that we<br/>&gt;&gt; could offer new hackers to work on, hopefully mostly independent of<br/>&gt;&gt; other items in the roadmap.<br/>&gt;&gt; <br/>&gt;&gt; I didn&#39;t come up with something good, but instead I noticed a few things<br/>&gt;&gt; that I think should be added to the ROADMAP:<br/>&gt; <br/>&gt; Excellent. However, many of them require significant changes/improvements<br/>&gt; to Parrot guts, as opposed to simply hacking on Rakudo itself.<br/><br/>I assume that&#39;s why they belong into the ROADMAP ;-)<br/><br/>&gt; So, here&#39;s<br/>&gt; my categorization:<br/>&gt; <br/>&gt; Things requiring significant Parrot improvements or changes:<br/>&gt; * concurrency<br/>&gt; * Unicode string handling (different Unicode levels)<br/>&gt; * custom meta classes<br/>&gt; * parameter passing<br/>&gt; <br/>&gt; Things that may not require significant Parrot changes, but <br/>&gt; still require a some (perhaps much) C programming:<br/>&gt; * low level types<br/>&gt; * pseudo packages (MY, OUR, OUTER, CALLER, CONTEXT, ...)<br/>&gt; * perl 5 bridge<br/>&gt; <br/>&gt; Things that are awaiting substantial changes to the grammar engine <br/>&gt; and grammar (which I plan to do over the next 2-3 months):<br/>&gt; * various quoting syntaxes (q:stuff[...], &lt;&lt;...&gt;&gt;)<br/>&gt; * Accessing operators via canonical name: my $x = infix:&lt;+&gt;(2, 3);<br/>&gt; * operator overloading<br/>&gt; * reduce and hyper metaoperators<br/>&gt; <br/>&gt; Things that require coordination with Parrot designers and other<br/>&gt; HLL implementors:<br/>&gt; * load libraries from other high level languages<br/>&gt; * exceptions (die, fail, CATCH)<br/>&gt; * warnings (waiting on exceptions to be finished)<br/>&gt; <br/>&gt; Things that are fairly simply implemented but just need some<br/>&gt; design work:<br/>&gt; * regexes: modifiers, substitution<br/>&gt; * &quot;no strict&quot;<br/>&gt; <br/>&gt; It would probably be good to add the above to the ROADMAP, though.<br/>&gt; I&#39;m looking for a way to be able to annotate each item with its<br/>&gt; completion status and/or dependencies -- I&#39;m thinking perhaps<br/>&gt; a set of &quot;footnotes&quot; for each item, such as<br/>&gt; <br/>&gt; * operator overloading [1,3]<br/>&gt; * reduce and hyper metaoperators [1,2,3]<br/>&gt; <br/>&gt; 1. Awaiting PGE refactoring for protoregexes<br/>&gt; 2. Awaiting longest token matching<br/>&gt; 2. Awaiting STD.pm alignment<br/>&gt; <br/>&gt; <br/>&gt; Comments?<br/><br/>+1<br/><br/>Or maybe even enumerate the roadmap entries, and then use these to list<br/>interdepencies (for example numbers for entries and letters for footnotes).<br/><br/>-- <br/>Moritz Lenz<br/>http://moritz.faui2k3.org/ | http://perl-6.de/<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2065.html Mon, 14 Jul 2008 10:07:22 +0000 Re: [perl #56900] [TODO] more ROADMAP informations by Patrick R. Michaud On Sun, Jul 13, 2008 at 01:30:27PM -0700, Moritz Lenz wrote:<br/>&gt; I read ROADMAP again the other day, and thought about topics that we<br/>&gt; could offer new hackers to work on, hopefully mostly independent of<br/>&gt; other items in the roadmap.<br/>&gt; <br/>&gt; I didn&#39;t come up with something good, but instead I noticed a few things<br/>&gt; that I think should be added to the ROADMAP:<br/><br/>Excellent. However, many of them require significant changes/improvements<br/>to Parrot guts, as opposed to simply hacking on Rakudo itself. So, here&#39;s<br/>my categorization:<br/><br/>Things requiring significant Parrot improvements or changes:<br/>* concurrency<br/>* Unicode string handling (different Unicode levels)<br/>* custom meta classes<br/>* parameter passing<br/><br/>Things that may not require significant Parrot changes, but <br/>still require a some (perhaps much) C programming:<br/>* low level types<br/>* pseudo packages (MY, OUR, OUTER, CALLER, CONTEXT, ...)<br/>* perl 5 bridge<br/><br/>Things that are awaiting substantial changes to the grammar engine <br/>and grammar (which I plan to do over the next 2-3 months):<br/>* various quoting syntaxes (q:stuff[...], &lt;&lt;...&gt;&gt;)<br/>* Accessing operators via canonical name: my $x = infix:&lt;+&gt;(2, 3);<br/>* operator overloading<br/>* reduce and hyper metaoperators<br/><br/>Things that require coordination with Parrot designers and other<br/>HLL implementors:<br/>* load libraries from other high level languages<br/>* exceptions (die, fail, CATCH)<br/>* warnings (waiting on exceptions to be finished)<br/><br/>Things that are fairly simply implemented but just need some<br/>design work:<br/>* regexes: modifiers, substitution<br/>* &quot;no strict&quot;<br/><br/>It would probably be good to add the above to the ROADMAP, though.<br/>I&#39;m looking for a way to be able to annotate each item with its<br/>completion status and/or dependencies -- I&#39;m thinking perhaps<br/>a set of &quot;footnotes&quot; for each item, such as<br/><br/>* operator overloading [1,3]<br/>* reduce and hyper metaoperators [1,2,3]<br/><br/>1. Awaiting PGE refactoring for protoregexes<br/>2. Awaiting longest token matching<br/>2. Awaiting STD.pm alignment<br/><br/><br/>Comments?<br/><br/>Pm<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2064.html Mon, 14 Jul 2008 07:51:47 +0000 [perl #56900] [TODO] more ROADMAP informations by Moritz Lenz # New Ticket Created by Moritz Lenz <br/># Please include the string: [perl #56900]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56900 &gt;<br/><br/><br/>I read ROADMAP again the other day, and thought about topics that we<br/>could offer new hackers to work on, hopefully mostly independent of<br/>other items in the roadmap.<br/><br/>I didn&#39;t come up with something good, but instead I noticed a few things<br/>that I think should be added to the ROADMAP:<br/><br/>* concurrency<br/>* Unicode string handling (different Unicode levels)<br/>* low level types<br/>* custom meta classes<br/>* various quoting syntaxes (q:stuff[...], &lt;&lt;...&gt;&gt;)<br/> depends on: STD refactoring<br/>* regexes: modifiers, substitution<br/>* load libraries from other high level languages<br/>* perl 5 bridge<br/>* &quot;no strict&quot;<br/>* warnings<br/><br/>I didn&#39;t add them straight to ROADMAP because I have no clue how to<br/>prioritize them.<br/><br/>I also assembled a short list of not-so-major topics that need to be<br/>implemented:<br/><br/>* Accessing operators via canonical name: my $x = infix:&lt;+&gt;(2, 3);<br/>* pseudo packages (MY, OUR, OUTER, CALLER, CONTEXT, ...)<br/>* exceptions (die, fail, CATCH)<br/><br/><br/>-- <br/>Moritz Lenz<br/>http://moritz.faui2k3.org/ | http://perl-6.de/<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2063.html Sun, 13 Jul 2008 15:13:35 +0000 RE: A detailed to-do list? by Conrad Schneiker &gt; From: Moritz Lenz <br/>&gt; Sent: Wednesday, July 09, 2008 1:51 AM<br/>&gt; To: Karl Voelker<br/>&gt; Cc: perl6-compiler@perl.org<br/>&gt; Subject: Re: A detailed to-do list?<br/>&gt; <br/>&gt; The other day I wrote http://www.perlmonks.org/?node_id=690945 &quot;Getting<br/>&gt; Involved with Perl 6 - an Update&quot;, which is a short overview about<br/>&gt; where<br/>&gt; you can help with which skill set.<br/><br/>In the future, please consider adding links to useful things like this to<br/>the Perl 6 Wiki. <br/><br/>I&#39;ve already done so on these pages:<br/><br/> http://www.perlfoundation.org/perl6/index.cgi?getting_involved<br/><br/> <br/>http://www.perlfoundation.org/perl6/index.cgi?perl_6_articles_and_presentati<br/>ons<br/><br/>Best regards,<br/>Conrad Schneiker<br/><br/>www.AthenaLab.com<br/><br/>Official Perl 6 Wiki &#151; http://www.perlfoundation.org/perl6&nbsp;<br/>Official Parrot Wiki &#151; http://www.perlfoundation.org/parrot <br/><br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2062.html Thu, 10 Jul 2008 18:54:38 +0000 Re: [perl #56754] [TODO] implement Complex.polar by Patrick R. Michaud On Wed, Jul 09, 2008 at 03:09:41PM -0700, Moritz Lenz wrote:<br/>&gt; Rakudo as of r29207 doesn&#39;t implement the .polar method in class Complex<br/>&gt; (or is it Any? ...).<br/>&gt; <br/>&gt; Specced here: http://perlcabal.org/syn/S29.html#Complex<br/><br/>Now added in r29248.<br/><br/>&gt; There don&#39;t seem to be any tests for it atm.<br/><br/>More tests needed!<br/><br/>Pm<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2061.html Thu, 10 Jul 2008 13:28:39 +0000 [perl #56754] [TODO] implement Complex.polar by Moritz Lenz # New Ticket Created by Moritz Lenz <br/># Please include the string: [perl #56754]<br/># in the subject line of all future correspondence about this issue. <br/># &lt;URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56754 &gt;<br/><br/><br/>Rakudo as of r29207 doesn&#39;t implement the .polar method in class Complex<br/>(or is it Any? ...).<br/><br/>Specced here: http://perlcabal.org/syn/S29.html#Complex<br/><br/>There don&#39;t seem to be any tests for it atm.<br/><br/>-- <br/>Moritz Lenz<br/>http://moritz.faui2k3.org/ | http://perl-6.de/<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2060.html Thu, 10 Jul 2008 08:23:50 +0000 Re: A detailed to-do list? by Moritz Lenz kvoelker@csh.rit.edu wrote:<br/>&gt;&gt; First of all Perl 6 is a language, and multiple compilers are being<br/>&gt;&gt; written that target that language.<br/>&gt; <br/>&gt; I&#39;m aware. I guess I should have said &quot;Rakudo&quot; instead of &quot;Perl 6,&quot; but I<br/>&gt; thought this list was specific to Rakudo.<br/><br/>Mostly Rakudo, but not only.<br/><br/>&gt;&gt; If you decide which sub project you want to help, we can tell you much<br/>&gt;&gt; better what needs to be done, and even more so if you tell us what your<br/>&gt;&gt; strong skills are.<br/>&gt; <br/>&gt; I&#39;m not sure what to say about my skills, although I&#39;m pretty sure that I<br/>&gt; would be more useful on Rakudo than Parrot. (I know there are some other<br/>&gt; sub-projects, but I have trouble getting excited about them, relatively<br/>&gt; speaking.) So, Rakudo it is.<br/><br/>Ok. There are others much more qualified to introduce you there, but<br/>I&#39;ll try it anyway.<br/><br/>Probably the simplest thing is go to the bug tracker and look into the<br/>perl6 queue for things to do. Most builtins aren&#39;t so hard to implement,<br/>for example http://rt.perl.org/rt3/Ticket/Display.html?id=56754 (I don&#39;t<br/>know if you can see that page without logging in, perhaps you have to go<br/>the &quot;public&quot; interface).<br/><br/>In this particular case there&#39;s also no test yet for this method, so you<br/>could also consider to write a test first, A short introduction to that<br/>can be found here:<br/>http://svn.pugscode.org/pugs/t/HOWTO<br/>There are tests for similar features here:<br/>http://svn.pugscode.org/pugs/t/spec/S29-num/<br/><br/>Patches to rakudo can be sent to rakudobug@perl.org, patches to the test<br/>suite either to this list, or you can get a commit bit for the pugs<br/>repository immediately (the tests live in the pugs repo) - just tell me<br/>your desired nick name, and I&#39;ll send you an invitation.<br/><br/>If you have more questions, don&#39;t hesitate to ask.<br/><br/>Moritz<br/><br/>-- <br/>Moritz Lenz<br/>http://moritz.faui2k3.org/ | http://perl-6.de/<br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2059.html Wed, 09 Jul 2008 15:20:51 +0000 Re: A detailed to-do list? by kvoelker &gt; First of all Perl 6 is a language, and multiple compilers are being<br/>&gt; written that target that language.<br/><br/>I&#39;m aware. I guess I should have said &quot;Rakudo&quot; instead of &quot;Perl 6,&quot; but I<br/>thought this list was specific to Rakudo.<br/><br/>&gt; If you decide which sub project you want to help, we can tell you much<br/>&gt; better what needs to be done, and even more so if you tell us what your<br/>&gt; strong skills are.<br/><br/>I&#39;m not sure what to say about my skills, although I&#39;m pretty sure that I<br/>would be more useful on Rakudo than Parrot. (I know there are some other<br/>sub-projects, but I have trouble getting excited about them, relatively<br/>speaking.) So, Rakudo it is.<br/><br/>-Karl<br/><br/><br/> http://www.nntp.perl.org/group/perl.perl6.compiler/2008/07/msg2058.html Wed, 09 Jul 2008 15:01:00 +0000