Re: Perl6 Modules - Documentation

2010-08-01 Thread Moritz Lenz
Am 30.07.2010 09:24, schrieb Richard Hainsworth: The number of modules available to proto has grown considerably. I am not aware that there is a convenient way of obtaining a short description about each module, other than just the name? http://modules.perl6.org/ contains a short description,

[perl #76830] [BUG] misleading error message for 'our Str a'

2010-08-01 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #76830] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76830 > $ perl 6 > our Str a In "our" declaration, typename Str must be predeclared (or mark

[perl #76820] [BUG] Null PMC access when doing xor= in Rakudo

2010-08-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76820] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76820 > rakudo: my $foo = 1; $foo xor= 1; say $foo rakudo 50e0e7: OUTPUT«Null PMC access in in

[perl #76828] Rakudo Star 'make' fails on Darwin/PPC

2010-08-01 Thread via RT
# New Ticket Created by James Keenan # Please include the string: [perl #76828] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76828 > On July 29 I successfully built Perl 6 from the Rakudo Star distribution on two Linux/

Re: Rakudo Star installation under MacOS X

2010-08-01 Thread Christian Aperghis-Tramoni
Alberto Simões a écrit : Hello After installing Rakudo Star on my MacOS X under /opt/rakudo, and adding /opt/rakudo/bin to the PATH env, I get: [a...@rachmaninoff ~]$ perl6 src/io/api.c:306: failed assertion 'pmc' Backtrace - Obtained 22 stack frames (max trace depth is 32). 0 libparrot.dylib

rakudo star performance

2010-08-01 Thread Ben Bowers
I've compiled and run rakudo star on a couple of pieces of code that i wrote. One generates random strings with pick. the other builds a couple of hashes and checks to find commonality between them. Compared with Rakudo Moscow (April release), both pieces of code run about 50% slower with Rakudo S

[perl #76856] [BUG] building rakudo fails with PERL_UNICODE=SAL

2010-08-01 Thread via RT
# New Ticket Created by Christopher J. Madsen # Please include the string: [perl #76856] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76856 > I tried to build Rakudo Star 2010.07, but it failed with src/gen/c

[perl #76844] The REPL crashes on class B { method f { ... } }; B.new.f

2010-08-01 Thread via RT
# New Ticket Created by Gabor Szabo # Please include the string: [perl #76844] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76844 > class B { method f { ... } }; B.new.f Gabor

[perl #76828] Rakudo Star 'make' fails on Darwin/PPC

2010-08-01 Thread James Keenan via RT
On Fri Jul 30 06:20:30 2010, coke wrote: > > How much memory do you have in the box (physical), ... >From 'top': PhysMem: 46.3M wired, 137M active, 68.7M inactive, 252M used, 3.68M free >From System Profiler: Memory: 256 MB > and do you have a ulimit set? Apparently not: $ ulimit -a

Re: Rakudo Module-Starter?

2010-08-01 Thread Aaron Sherman
2010/7/30 Alberto Simões > > Hello > > I am out of Perl 6/Parrot for some time, but trying to get back and help > with Perl 6 (at least, modules). > > As there are already some modules available, I am wondering if anyone > already prepared a module-starter-like module to bootstrap a Perl 6 module.

[perl #69498] [BUG] Null PMC access when calling routines with forward-referring parameters (which shouldn't compile in the first place) in Rakudo

2010-08-01 Thread Carl Mäsak via RT
On Tue Jul 27 19:44:19 2010, coke wrote: > On Wed Sep 30 06:50:05 2009, masak wrote: > > rakudo: sub foo($a = $default, :$default = 42) {}; say > "alive" > > rakudo c8181a: OUTPUT«alive␤» > > std: sub foo($a = $default, :$default = 42) {} > > std 28514: OUTPUT«ok 00:02 104m␤» > > rakudo: sub f

Re: implementing every(N)

2010-08-01 Thread Moritz Lenz
Hi, Ted Zlatanov wrote: > I have a Perl 5 module called Every which provides, simply, > > every(5); # true on invocation 5, 10, etc. > every(seconds => 5); # true at 5, 10, etc. seconds > > It's really nice in endless loops, logging, etc. I'd like to translate > it to Perl 6 (using Rakudo speci

[perl #76884] [BUG] Null PMC access on grammar match object

2010-08-01 Thread via RT
# New Ticket Created by Tadeusz Sośnierz # Please include the string: [perl #76884] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76884 > The following code: grammar grr { token TOP { * }

cannot install perl6 compiler

2010-08-01 Thread Grizzly(Francis Smit)
ok I'm trying to install rakudo-star-2010.07 which I got from git hub http://github.com/downloads/rakudo/star/rakudo-star-2010.07.tar.gz and I get this error when I try to run perl Configure.pl --gen-parrot Reading configuration information from install/bin/parrot_config ... ===SORRY!=== Par

[perl #76880] [BUG] [PATCH] make install (again)

2010-08-01 Thread via RT
# New Ticket Created by Reini Urban # Please include the string: [perl #76880] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76880 > Apparently nobody does a package or an install (sigh) Attached are the needed make insta

r31885 -[S06] fix an obvious typo

2010-08-01 Thread pugs-commits
Author: sorear Date: 2010-08-01 11:18:45 +0200 (Sun, 01 Aug 2010) New Revision: 31885 Modified: docs/Perl6/Spec/S06-routines.pod Log: [S06] fix an obvious typo Modified: docs/Perl6/Spec/S06-routines.pod === --- docs/Perl6/Spec/S0

[perl #76888] REPL crash - Method 'key' not found for invocant of class 'String' and Contextual $*PATH not found

2010-08-01 Thread via RT
# New Ticket Created by Gabor Szabo # Please include the string: [perl #76888] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76888 > Just a few random crashes in the REPL: $ perl6 > say %*ENV ===SORRY!=== Method 'key' not

[perl #69176] [BUG] Less than helpful error message when writing %*foo instead of *%foo in parameter list in Rakudo

2010-08-01 Thread Carl Mäsak via RT
On Wed Jul 28 10:01:02 2010, pmichaud wrote: > On Wed Jul 28 07:44:27 2010, coke wrote: > > On Wed Sep 16 14:47:06 2009, masak wrote: > > > $ perl6 -e 'class A { method foo(%*opts) {} }' > > > Invalid twigil used in signature parameter. at line 1, near ") {} }" > > > > > > Suggest making the error

[perl #76890] [BUG] Can't .perl %*ENV in Rakudo

2010-08-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76890] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76890 > rakudo: say %*ENV.perl rakudo 9b6189: OUTPUT«Method 'key' not found for invocant of cl

Re: rakudo star performance

2010-08-01 Thread Jan Ingvoldstad
On Fri, Jul 30, 2010 at 23:31, Ben Bowers wrote: > I've compiled and run rakudo star on a couple of pieces of code that i > wrote. > One generates random strings with pick. the other builds a couple of > hashes and checks to find commonality between them. > Compared with Rakudo Moscow (April rel

[perl #76892] [BUG] There's nothing in $0 et al. after doing a regex match with infix: in Rakudo

2010-08-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76892] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76892 > rakudo: my $a = "fool!"; $a ~~ / (foo) /; say $0 rakudo 9b6189: OUTPUT«foo␤» rakudo:

Natural Language and Perl 6

2010-08-01 Thread Timothy S. Nelson
Hi. I'm wondering if any thought has been given to natural language processing with Perl 6 grammars. :) - | Name: Tim Nelson | Because the Creator is,| | E-mail: wayl...@wayland.id.au| I a

[perl #76894] [BUG] not re-implemented in Rakudo after the refactor

2010-08-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76894] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76894 > rakudo: "foo" ~~ / o/; say $/.from # should say 2 rakudo 9b6189: OUTPUT«Method 'after'

Re: Natural Language and Perl 6

2010-08-01 Thread Alberto Simões
Hello On 01/08/2010 11:46, Timothy S. Nelson wrote: > Hi. I'm wondering if any thought has been given to natural language > processing with Perl 6 grammars. I Think Perl 6 grammars can implement the most advanced parsing algorithms like Generic LR, that that will not really solve the problem

Re: cannot install perl6 compiler

2010-08-01 Thread Grizzly(Francis Smit)
On 01/08/10 23:59, Moritz Lenz wrote: Hi, Grizzly(Francis Smit) wrote: ok I'm trying to install rakudo-star-2010.07 which I got from git hub http://github.com/downloads/rakudo/star/rakudo-star-2010.07.tar.gz and I get this error when I try to run Don't just paste the error here,

Re: Rakudo Module-Starter?

2010-08-01 Thread Alberto Simões
Hello, Again On 01/08/2010 15:04, Moritz Lenz wrote: > Alberto Simões wrote: >> Hello >> >> On 30/07/2010 21:50, Aaron Sherman wrote: >>> 2010/7/30 Alberto Simões Hello I am out of Perl 6/Parrot for some time, but trying to get back and help with Perl 6 (at least, modules

Re: cannot install perl6 compiler

2010-08-01 Thread Grizzly(Francis Smit)
On 02/08/10 01:08, Grizzly(Francis Smit) wrote: On 01/08/10 23:59, Moritz Lenz wrote: Hi, Grizzly(Francis Smit) wrote: ok I'm trying to install rakudo-star-2010.07 which I got from git hub http://github.com/downloads/rakudo/star/rakudo-star-2010.07.tar.gz and I get this error wh

Re: cannot install perl6 compiler

2010-08-01 Thread Patrick R. Michaud
On Sun, Aug 01, 2010 at 04:33:15AM +1000, Grizzly(Francis Smit) wrote: > ok I'm trying to install rakudo-star-2010.07 which I got from git hub > > > http://github.com/downloads/rakudo/star/rakudo-star-2010.07.tar.gz > > > and I get this error when I try to run > > perl Configure.pl --gen-parro

Extending the sockets library

2010-08-01 Thread Oliver Charles
Hi folks, I was inspired by Ksplice's recent article on traceroute [1] to write my own traceroute in Perl 6 - but came upon problems in that the current socket library does not seem to be complete enough. I'd love to submit some patches for this, but after briefly discussing this with pmicha

Re: Smart match isn't on Bool

2010-08-01 Thread TSa (Thomas Sandlaß)
HaloO, On Saturday, 31. July 2010 20:47:49 Patrick R. Michaud wrote: > On Sat, Jul 31, 2010 at 10:56:47AM -0600, David Green wrote: > > It's not unreasonable, especially if that's what you expect. > > But it's even more reasonable to expect this to work: > > given $something { > >

r31886 -[S03] remove Subst type, which appears nowhere else

2010-08-01 Thread pugs-commits
Author: moritz Date: 2010-08-01 20:01:49 +0200 (Sun, 01 Aug 2010) New Revision: 31886 Modified: docs/Perl6/Spec/S03-operators.pod Log: [S03] remove Subst type, which appears nowhere else Modified: docs/Perl6/Spec/S03-operators.pod ===

Perl 6 User Documentation

2010-08-01 Thread Offer Kaye
Hi, Following the release of Rakudo Star I've been playing around with learning Perl 6 and noticed a distinct lack of user-facing documentation. After some IRC chats with pmichaud++ I thought it would be a good idea if I got the ball rolling, assuming of course it doesn't reach a sharp incline, rol

Re: Suggested magic for "a" .. "b"

2010-08-01 Thread Martin D Kealey
On Wed, 28 Jul 2010, Darren Duncan wrote: > I think that a general solution here is to accept that there may be more > than one valid way to sort some types, strings especially, and so > operators/routines that do sorting should be customizable in some way so > users can pick the behaviour they wan

Re: Smart match isn't on Bool

2010-08-01 Thread Darren Duncan
TSa (Thomas Sandlaß) wrote: ... unless you want C to do a value-and-type check, in which case it doesn't exactly follow the pattern for smartmatching of the other builtin types (which only check value equivalence, not type equivalence). This is true only if you want to distinguish 1 and True wh

Re: cannot install perl6 compiler

2010-08-01 Thread Grizzly(Francis Smit)
On 02/08/10 02:54, Patrick R. Michaud wrote: On Sun, Aug 01, 2010 at 04:33:15AM +1000, Grizzly(Francis Smit) wrote: ok I'm trying to install rakudo-star-2010.07 which I got from git hub http://github.com/downloads/rakudo/star/rakudo-star-2010.07.tar.gz and I get this error when I try to

Re: Smart match isn't on Bool

2010-08-01 Thread Jonathan Worthington
Darren Duncan wrote: TSa (Thomas Sandlaß) wrote: ... unless you want C to do a value-and-type check, in which case it doesn't exactly follow the pattern for smartmatching of the other builtin types (which only check value equivalence, not type equivalence). This is true only if you want to dis

Re: Suggested magic for "a" .. "b"

2010-08-01 Thread Darren Duncan
Martin D Kealey wrote: On Wed, 28 Jul 2010, Darren Duncan wrote: I think that a general solution here is to accept that there may be more than one valid way to sort some types, strings especially, and so operators/routines that do sorting should be customizable in some way so users can pick the

rounding method adverbs

2010-08-01 Thread Darren Duncan
Martin D Kealey said (in the a..b thread): >> So then, "a" cmp "ส้" is always defined, but users can change the >> definition. > > I take the opposite approach; it's always undefined (read, unthrown > exception) unless the user tells us how they want it treated. That can be a > command-line switch

Re: "Perlito" MiniPerl6 5.0 - more bootstrapped backends, more Perl 6 compatibility

2010-08-01 Thread Guy Hulbert
I tried this and I like it. On Mon, 2010-19-07 at 20:36 +0200, Flavio S. Glock wrote: > Perlito is a compiler that implements a subset of Perl 6. > Perlito compiles "MiniPerl6" programs (such as itself) into one of the > 'backend' languages: Go, Common Lisp, Perl 5, Javascript, and Python > 2. T

Re: Rakudo Module-Starter?

2010-08-01 Thread Moritz Lenz
Alberto Simões wrote: > Hello > > On 30/07/2010 21:50, Aaron Sherman wrote: >> 2010/7/30 Alberto Simões >>> >>> Hello >>> >>> I am out of Perl 6/Parrot for some time, but trying to get back and help >>> with Perl 6 (at least, modules). >>> >>> As there are already some modules available, I am won

[perl #76896] perl6 - sub/hash syntax

2010-08-01 Thread via RT
# New Ticket Created by Ekkehard Horner # Please include the string: [perl #76896] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76896 > The script: use v6; my %fs = (); %fs{ lc( 'A' ) } = &fa; sub fa()

Re: Rakudo Module-Starter?

2010-08-01 Thread Moritz Lenz
Alberto Simões wrote: > By the way, is there any wiki with the list of Perl 6 modules already > available, and respective git/svn/cvs/whatever repositories? Not a wiki, but http://modules.perl6.org/ There's a project list file in the "proto" repo from which this data is obtained - if you want to

Smart-matching and m//

2010-08-01 Thread Moritz Lenz
Consider 'abc' ~~ m/b/; By current spec this would 1) temporary set $_ = 'abc' 2) call m/b/, which matches against $_ 3) produce a Match object 4) calls .ACCEPTS($_) on the Match object 5) return False Likewise 'abc' ~~ .uc ends up comparing 'abc' to 'ABC and return False. I guess that's not

Re: cannot install perl6 compiler

2010-08-01 Thread Grizzly(Francis Smit)
On 01/08/10 23:59, Moritz Lenz wrote: Hi, Grizzly(Francis Smit) wrote: ok I'm trying to install rakudo-star-2010.07 which I got from git hub http://github.com/downloads/rakudo/star/rakudo-star-2010.07.tar.gz and I get this error when I try to run Don't just paste the error here,

Re: cannot install perl6 compiler

2010-08-01 Thread Moritz Lenz
Hi, Grizzly(Francis Smit) wrote: > ok I'm trying to install rakudo-star-2010.07 which I got from git hub > > > http://github.com/downloads/rakudo/star/rakudo-star-2010.07.tar.gz > > > and I get this error when I try to run Don't just paste the error here, read it! It tells exactly what to do.

Re: rakudo star performance

2010-08-01 Thread Ben Bowers
Thanks for the Chromatic blog link - that cleared up a lot. Sounds like not much room for optimizing the gcc compile. As for the code, the first one was: time perl6 -e 'say ("a".."z").pick ~ ("a".."z").pick for ^1000;' > /dev/null For my 32-bit linux box, bash's time reports Rakudo Star 2010.07

[perl #76898] Rakudo requires an implementation of require

2010-08-01 Thread via RT
# New Ticket Created by Timothy Totten # Please include the string: [perl #76898] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76898 > Currently there is no 'require' statement in Rakudo. It should support two formats, t

Re: cannot install perl6 compiler

2010-08-01 Thread Grizzly(Francis Smit)
On 02/08/10 08:00, Grizzly(Francis Smit) wrote: On 02/08/10 02:54, Patrick R. Michaud wrote: On Sun, Aug 01, 2010 at 04:33:15AM +1000, Grizzly(Francis Smit) wrote: ok I'm trying to install rakudo-star-2010.07 which I got from git hub http://github.com/downloads/rakudo/star/rakudo-s

Re: Suggested magic for "a" .. "b"

2010-08-01 Thread Leon Timmermans
On Sun, Aug 1, 2010 at 11:39 PM, Martin D Kealey wrote: > In any case I'd much rather prefer that the behaviour be lexically scoped, > with either adverbs or pragmata, not with the action-at-a-distance that's > caused by tagging something as fundamental as a String. In many cases the collation is

Yapsi 2010.08 Released!

2010-08-01 Thread Carl Mäsak
It is with vertiginous modesty that I want to announce, on behalf of the Yapsi development team, the August 2010 release of Yapsi, a Perl 6 compiler written in Perl 6. (Am I using, too many, commas?) You can get it here -- as a bonus, if you download within 24 hours, the bits in your download will

Re: rakudo star performance

2010-08-01 Thread Stefan O'Rear
On Sun, Aug 01, 2010 at 12:04:55PM -0400, Ben Bowers wrote: > I've also noticed that 64 bit linux binaries for rakudo builds are ~2x > the size of the 32 bit builds, FWIW. That shouldn't suprise anyone. The perl6 fakecutable (don't call it a binary, please) consists of several million Parrot in

Re: Natural Language and Perl 6

2010-08-01 Thread Jason Switzer
On Sun, Aug 1, 2010 at 5:46 AM, Timothy S. Nelson wrote: >Hi. I'm wondering if any thought has been given to natural language > processing with Perl 6 grammars. > No specific tool is best suited for natural language processing. There was apparently a time in which everyone thought that a

Re: [perl #76920] AutoReply: Re: BUG: @array.^methods.sort() returns duplicates.

2010-08-01 Thread Tom Dignan
Never mind, this is not a bug. There are duplicates in @array.^methods; because of inheritance. On Sun, Aug 1, 2010 at 10:43 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: >        "Re: BUG: @arr

[perl #76920] Re: BUG: @array.^methods.sort() returns duplicates.

2010-08-01 Thread via RT
# New Ticket Created by Tom Dignan # Please include the string: [perl #76920] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76920 > Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights

[perl #76918] BUG: @array.^methods.sort() returns duplicates.

2010-08-01 Thread via RT
# New Ticket Created by Tom Dignan # Please include the string: [perl #76918] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76918 > Hi Rakudo, I tested this on rakudo star on Windows 7, but will test it on linux later as