Re: r29976 - docs/Perl6/Spec

2010-03-09 Thread Brandon S. Allbery KF8NH
On Mar 9, 2010, at 18:10 , Timothy S. Nelson wrote: Algol 68 is notorious as a failure. Let's hope things are different here. As a programming language, it was a failure, in large part because it was a bit too forward-looking for the available compiler technology. (It's still a bit tou

Re: ^[[A^[[A

2010-03-09 Thread Timothy S. Nelson
On Tue, 9 Mar 2010, Kiffin Gish wrote: On Tue, 2010-03-09 at 19:00 +0100, Moritz Lenz wrote: Hi, Kiffin Gish wrote: How can recall previous commands (history) using ./perl6 without getting ^[[A^[[A instead? You need to have readline development files installed when configuring and building

Re: r29976 - docs/Perl6/Spec

2010-03-09 Thread Larry Wall
On Wed, Mar 10, 2010 at 10:10:29AM +1100, Timothy S. Nelson wrote: : On Mon, 8 Mar 2010, Carl Mäsak wrote: : : >Meanwhile, the uncanny similarities between Perl 6 and Algol 68 : >continue to strike me: : > : > (]): : >] ALGOL 68 [...] was conceived as a succe

Re: r29976 - docs/Perl6/Spec

2010-03-09 Thread Mark J. Reed
I think of p6 as more like the Ada of the 21st century. Whether it was a success or not depends on whom you ask, but it had similar criticisms and delays. And was commissioned to be the US federal govt's answer to Algol 68. Which may not have been a big hit, but it had a profound effect on langu

Re: Functional-style pattern matching

2010-03-09 Thread Timothy S. Nelson
On Tue, 9 Mar 2010, Daniel Ruoso wrote: Em Seg, 2010-03-08 às 12:45 -0800, Little Walker escreveu: I've been looking around to see if there's been any discussion of introducing functional programming-style pattern matching for method/ function dispatch. Could someone point me to any such discu

Re: r29976 - docs/Perl6/Spec

2010-03-09 Thread Timothy S. Nelson
On Mon, 8 Mar 2010, Carl Mäsak wrote: Meanwhile, the uncanny similarities between Perl 6 and Algol 68 continue to strike me: (]): ] ALGOL 68 [...] was conceived as a successor to the ALGOL 60 programming ] language, designed with the goal of a much wider

Re: ^[[A^[[A

2010-03-09 Thread Kiffin Gish
On Tue, 2010-03-09 at 19:00 +0100, Moritz Lenz wrote: > Hi, > > Kiffin Gish wrote: > > How can recall previous commands (history) using ./perl6 without getting > > ^[[A^[[A instead? > > You need to have readline development files installed when configuring > and building Rakudo, then it just work

Re: ^[[A^[[A

2010-03-09 Thread Jonathan Leto
Howdy, On Tue, Mar 9, 2010 at 9:43 AM, Kiffin Gish wrote: > How can recall previous commands (history) using ./perl6 without getting > ^[[A^[[A instead? I don't think the perl6 REPL has readline support yet. That might make a nice Google Summer of Code project for this year [0]. Duke [0] http:

Re: Symbol '$x' not predeclared in

2010-03-09 Thread Jonathan Leto
Howdy, Last time I checked, each line of the perl6 REPL had a separate scope, so this should work: $ ./perl6 > my $x = 8; say $x Duke On Tue, Mar 9, 2010 at 9:42 AM, Kiffin Gish wrote: > I want to play around with perl6 and see what it can do. > > $ cd rakudo > $ ./perl6 >>  my $x = 8 >> say

Re: Functional-style pattern matching

2010-03-09 Thread Daniel Ruoso
Em Seg, 2010-03-08 às 12:45 -0800, Little Walker escreveu: > I've been looking around to see if there's been any discussion of > introducing functional programming-style pattern matching for method/ > function dispatch. Could someone point me to any such discussions? a Tree matching language is o

^[[A^[[A

2010-03-09 Thread Kiffin Gish
How can recall previous commands (history) using ./perl6 without getting ^[[A^[[A instead? -- Kiffin Gish Gouda, The Netherlands

Symbol '$x' not predeclared in

2010-03-09 Thread Kiffin Gish
I want to play around with perl6 and see what it can do. $ cd rakudo $ ./perl6 > my $x = 8 > say $x Symbol '$x' not predeclared in How can I define variables and use them later? -- Kiffin Gish Gouda, The Netherlands

[perl #73444] [BUG] grep doesn't have a slurpy invocant argument (but should) in Rakudo

2010-03-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73444] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73444 > rakudo: say grep { $_ !% 3 }, 1, 2, 3 rakudo 8f9054: OUTPUT«Too many positional parame

Re: Functional-style pattern matching

2010-03-09 Thread Larry Wall
On Mon, Mar 08, 2010 at 12:45:44PM -0800, Little Walker wrote: : Hi there, : : I've been looking around to see if there's been any discussion of : introducing functional programming-style pattern matching for method/ : function dispatch. Could someone point me to any such discussions? Why settle

Re: built-in roles/types routine boundary

2010-03-09 Thread Moritz Lenz
Darren Duncan wrote: > Or actually, there is just one main thing I want to know right now ... > > You have roles that look like they're supposed to match one specific class > each > in particular, such as Boolean for Bool, Integral for Int, etc, ostensibly in > case users want to declare their

[perl #69052] Build error on Mac OS X

2010-03-09 Thread Will Coleda via RT
On Tue Sep 08 04:32:07 2009, sor...@gmail.com wrote: > I tried to build today's Git version on Mac OS X Snow Leopard, and > here is what I got: > > mbp:rakudo atemerev$ perl Configure.pl --gen-parrot > <...> > src/packout.c > src/pic_jit.c > src/pic.c > src/platform.c > config/gen/platform/generic

[perl #62478] C-style for loop does not give an error

2010-03-09 Thread Will Coleda via RT
On Tue Jan 20 09:25:16 2009, moritz wrote: > On Sat Jan 17 14:44:21 2009, szab...@gmail.com wrote: > > for (my $i = 1; $i <= 3; $i++) { say $i; } > > > > prints 2 instead of giving an intelligent error message that one > > should use loop > > or better yet for 1..3 -> $i { } > > Since the for-lo

[perl #69218] [BUG] Rakudo chokes on '3,'

2010-03-09 Thread Will Coleda via RT
On Fri Sep 18 07:17:48 2009, masak wrote: > rakudo: 3, > rakudo 4b141a: OUTPUT«No result object [...] > was this ever reported? > * masak submits rakudobug 21:50 < coke> rakudo: 3, 21:50 <+p6eval> rakudo aa8c65: OUTPUT<> -- Will "Coke" Coleda

Re: [perl #73418] [PATCH] Fix bug #68752, make perl6 --version more informative (second version of patch, replaces #73148)

2010-03-09 Thread Ira Byerly
Moritz, Thank you very much. - Ira Byerly -- On Mon, Mar 8, 2010 at 7:03 AM, Moritz Lenz via RT < perl6-bugs-follo...@perl.org> wrote: > Thanks, this looks like an interesting patch. Since Patrick is our > expert for the build system, I'm assigning this ticket to him fo

Re: Functional-style pattern matching

2010-03-09 Thread Matthew Walton
I think the closest things we've got to pattern matching come from a combination of multiple dispatch, where clauses and signature unpacking. I don't know much about the latter, but a where clause can discriminate multiple dispatch variants based on parameter values rather than just the type, so yo

[perl #65390] 'our %*h' blows up in Rakudo

2010-03-09 Thread Will Coleda via RT
On Tue May 05 00:16:21 2009, masak wrote: > rakudo: our %*h; %*h.push: $*IN.slurp.join.comb.map(-> $k > {$k=>1}); say %*h.perl > rakudo 4d7fe5: OUTPUT«get_pmc_keyed_str() not implemented in > class 'String' [...] > huh? > rakudo: our %*h > rakudo 4d7fe5: OUTPUT«get_pmc_keyed_str() not implemen

[perl #73434] [BUG] An empty hash boolifies to a true value in Rakudo

2010-03-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73434] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73434 > rakudo: say ?{} rakudo df743f: OUTPUT«1␤» * moritz_ calls BUG * moritz_ hilights masak

[perl #73442] [BUG] Too many &&'s in the 'ambiguous dispatch' error in Rakudo

2010-03-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73442] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73442 > rakudo: multi a(&a) { }; multi a(&a) { }; a sub { }; rakudo 8f9054: OUTPUT«Ambiguous d

[perl #62264] [BUG] r35458 Method '!.^' not found for invocant of class 'Exception'

2010-03-09 Thread Will Coleda via RT
On Mon Jan 12 14:51:01 2009, publiustemp-perl6compil...@yahoo.com wrote: > Revision: 35458 > > perl6 $ perl6 -e 'try { die "Goodbye cruel world!" };say > $!.^isa("Exception")' > Method '!.^' not found for invocant of class 'Exception' > current instr.: '_block14' pc 102 (EVAL_20:56) > called from

[perl #73442] [BUG] Too many &&'s in the 'ambiguous dispatch' error in Rakudo

2010-03-09 Thread Carl Mäsak via RT
On Mon Mar 08 08:15:46 2010, masak wrote: > rakudo: multi a(&a) { }; multi a(&a) { }; a sub { }; > rakudo 8f9054: OUTPUT«Ambiguous dispatch to multi 'a'. > Ambiguous candidates had signatures:␤:(&&a)␤:(&&a) [...] > * masak submits rakudobug Fixed in 49749c0. Closing.

Functional-style pattern matching

2010-03-09 Thread Little Walker
Hi there, I've been looking around to see if there's been any discussion of introducing functional programming-style pattern matching for method/ function dispatch. Could someone point me to any such discussions? I've seen that perl6 is taking on a lot of ideas from the functional world (lazy ev

Calling All Google Summer of Code Mentors

2010-03-09 Thread Jonathan Leto
Howdy, I am working on the application for The Perl Foundation and Parrot Foundation to participate in Google Summer of Code 2010 [0]. GSoC is a program where Google funds eligible students to hack on open source projects for a summer. It is a great opportunity for the students and the communities