Re: To :D or not to :D

2015-10-12 Thread Patrick R. Michaud
On Mon, Oct 12, 2015 at 09:51:13PM +0200, Mark Overmeer wrote: > > method new(MyClassHere:U: *@args) { ... } > > > > in the constructor, which would be quite hostile to newbies. It's still > > not clear to me how to avoid that. > > It is also unclear to me what this means. It is a method

Re: To :D or not to :D

2015-10-12 Thread Patrick R. Michaud
On Tue, Oct 13, 2015 at 12:32:01AM +0200, Mark Overmeer wrote: > Yes, that what I started realizing when I saw all the pain Perl6 goes to > ignore the existence of a real "undef" in the language. (I follow Perl6 > from a short distance since its start, read all original designs, but > this penny

Re: memory leak I think.

2013-12-19 Thread Patrick R. Michaud
On Thu, Dec 19, 2013 at 11:27:32AM +0800, Richard Hainsworth wrote: I've been running a perl6 program that runs through a loop, dumps intermediate results and starts again with new initialisation values. [...] Looking at system resources, the program chews up memory resources continually.

Re: Licensing: Perl 6 specification and test suite

2013-11-05 Thread Patrick R. Michaud
On Tue, Nov 05, 2013 at 03:36:47PM +0100, Moritz Lenz wrote: Somehow I have always worked under the assumption that it is under the Artistic License 2, just as Rakudo and NQP, and community concensus seem to agree with me. Therefor I've added an AL2 LICENSE file to the perl6/roast repository,

Re: Licensing: Perl 6 specification and test suite

2013-11-05 Thread Patrick R. Michaud
On Tue, Nov 05, 2013 at 04:21:12PM +0100, Jan Ingvoldstad wrote: Considering that the specification is sortof actually a language specification, I think there should at least be some terms regarding how this should apply. Just to nit semantics a bit and push a little harder on something I've

Re: Licensing: Perl 6 specification and test suite

2013-11-05 Thread Patrick R. Michaud
On Tue, Nov 05, 2013 at 11:00:59AM -0600, Patrick R. Michaud wrote: Forking the documentation, or creating derivative works, shouldn't be a problem, as long as it doesn't change the specification in itself, and thereby create confusion regarding what the Perl 6 specification

Re: Class attribute introspection

2013-10-28 Thread Patrick R. Michaud
On Mon, Oct 28, 2013 at 05:17:37PM +0400, Richard Hainsworth wrote: Pardon the ignorance, but what is the MOP. I sometimes get floored by the jargon. Whatever answer we get should go into S99. https://github.com/perl6/specs/blob/master/S99-glossary.pod Pm

Re: Introduction to Synopses

2013-09-29 Thread Patrick R. Michaud
On Sun, Sep 29, 2013 at 01:28:48PM +0800, Richard Hainsworth wrote: However, the Synopses are now primary specification and the Apocalypses have only historical significance. Also there are more Synopses than Apocalypses. One correction: The test suite (roast) is the primary specification

Re: Introduction to Synopses

2013-09-29 Thread Patrick R. Michaud
On Mon, Sep 30, 2013 at 02:03:43AM +0800, Richard Hainsworth wrote: Not wising to disagree with PM, but |docs/feather/syn_index.html states on line 1:| The Synopsis documents are to be taken as the formal specification for Perl 6 implementations What follows is just my opinion, there's plenty

Re: Are set operations needed?

2013-07-18 Thread Patrick R. Michaud
On Thu, Jul 18, 2013 at 07:07:20PM +0800, Richard Hainsworth wrote: I wondered whether the desire to have sets in perl6 was driven by mathematical fashion sensitivity (in some roundabout unconscious way) and because sets are important to mathematical foundations. [...] Sets do not implement

Rakudo Star 2013.05 released

2013-05-30 Thread Patrick R. Michaud
## A useful, usable, early adopter distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the May 2013 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball and Windows .MSI for the May 2013 release are available from

Re: Rakudo Star 2013.05 released

2013-05-30 Thread Patrick R. Michaud
On Thu, May 30, 2013 at 11:08:13PM -0500, Patrick R. Michaud wrote: This Star release includes [release 2013.05] of the [Rakudo Perl 6 compiler], version 5.2.0 of the [Parrot Virtual Machine] ... Oops. The 2013.05 release actually contains Parrot 5.3.0. Sorry about the typo. Pm

Re: Panda on Windows

2013-03-20 Thread Patrick R. Michaud
On Wed, Mar 20, 2013 at 01:49:21PM +0100, Tadeusz Sośnierz wrote: On 03/20/2013 10:21 AM, phi...@free.fr wrote: Hello, when I type panda on the Windows command line, I get the following message: D:\users\mepanda connect failed: A connection attempt failed because the connected party did

Re: Perl 6 in Perl 6?

2012-10-18 Thread Patrick R. Michaud
On Thu, Oct 18, 2012 at 09:59:21AM +0200, Moritz Lenz wrote: On 10/18/2012 09:02 AM, Darren Duncan wrote: Something (PyPy et al) got me wondering, is it a goal in the Perl community before too long to have a (compiling) implementation of Perl 6 written entirely in Perl 6? A fair amount of

Rakudo Star 2012.09 released

2012-09-30 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the September 2012 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the September 2012 release is available from http://github.com/rakudo/star/downloads. A Windows .MSI version of Rakudo

Rakudo Star 2012.08 released

2012-09-01 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the August 2012 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the August 2012 release is available from http://github.com/rakudo/star/downloads. A Windows .MSI version of Rakudo Star

Re: The trouble with awesome

2012-05-28 Thread Patrick R. Michaud
On Sat, May 26, 2012 at 05:34:18AM +0530, Siddhant Saraf wrote: Rakud[o] is not _the_ reference implementation of Perl 6. Actually, there is no reference implementation for Perl 6. There never will be. Whoever wants to make a perl6 implementation is free to do so. Just follow the spec and you

Re: How to make a new operator.

2012-03-23 Thread Patrick R. Michaud
On Thu, Mar 22, 2012 at 11:07:08AM -0500, Bruce Gray wrote: Well, it works in Niecza. It does not (yet) work in Rakudo: 15:25 Util perl6: my @squares := 0, (- *@a { @a.elems ** 2 }) ... *; say ~@squares[^11]; 15:25 p6eval ..niecza v15-4-g1f35f89: OUTPUT0 1 4 9 16 25 36 49 64 81

Re: How to make a new operator.

2012-03-22 Thread Patrick R. Michaud
On Fri, Mar 23, 2012 at 03:03:09PM +1300, Martin D Kealey wrote: On Thu, 22 Mar 2012, Carl Mäsak wrote: Jonathan Lang (), Daniel ():    1, 2, 4 ... 100 # same as 1,2,4,8,16,32,64 That last one doesn't work on Rakudo :-( And it never will. Note that 100 is not a power of 2, and that

Re: [perl6/specs] a7cfe0: [S32] backtraces overhaul

2011-08-23 Thread Patrick R. Michaud
On Tue, Aug 23, 2011 at 05:36:27PM +0200, Damian Conway wrote: And I'd like there to be a more consistent approach than that (though I don't really care what it actually is). +1 to consistency. Pm

Re: Encapsulating the contents of container types

2011-08-22 Thread Patrick R. Michaud
On Mon, Aug 22, 2011 at 06:39:25AM +0100, Nicholas Clark wrote: Is it? If, at the implementation layer, all accesses to objects are actually function calls called via vtables, then surely it's *relatively* simple to change the vtable to replace * mutator methods with methods which croak (the

Re: Encapsulating the contents of container types

2011-08-20 Thread Patrick R. Michaud
On Sat, Aug 20, 2011 at 04:41:08PM -0700, Darren Duncan wrote: I believe the general solution to this problem is to make all objects immutable, with the only exception being explicit references, and so mutating an object isn't an option; rather you have to derive a new object. Values of all

Re: Close($file) required in Perl 6, unlike Perl 5

2011-07-18 Thread Patrick R. Michaud
On Mon, Jul 18, 2011 at 10:41:30AM -0400, Peter Lobsinger wrote: On Sun, Jul 17, 2011 at 11:00 AM, Patrick R. Michaud pmich...@pobox.com wrote: On Sun, Jul 17, 2011 at 10:21:19AM +0200, Moritz Lenz wrote: Question to the Parrot developers: How could I implement DESTROY methods in Rakudo

Re: Close($file) required in Perl 6, unlike Perl 5

2011-07-18 Thread Patrick R. Michaud
On Mon, Jul 18, 2011 at 11:26:49AM -0400, Andrew Whitworth wrote: On Mon, Jul 18, 2011 at 10:41 AM, Peter Lobsinger plobs...@gmail.com wrote: The destructor does exactly that, but is not triggered by global teardown. That seems wrong to me, we should be sweeping pools and destroying PMCs on

Re: Close($file) required in Perl 6, unlike Perl 5

2011-07-17 Thread Patrick R. Michaud
On Sun, Jul 17, 2011 at 10:21:19AM +0200, Moritz Lenz wrote: Question to the Parrot developers: How could I implement DESTROY methods in Rakudo? Is there any vtable I can override, or so? Note that such a method might itself allocate new GCables. While not urgent, it's important for us in

Re: Bug?

2011-07-17 Thread Patrick R. Michaud
On Sun, Jul 17, 2011 at 10:40:01AM +0200, Moritz Lenz wrote: On 07/14/2011 11:47 PM, Parrot Raiser wrote: When a subroutine is invoked with an empty parameter list, as follows: run_stuff(); sub run_stuff { my ($parm) = @_; say Parameter is $parm; } @_[0] contains

Announce: Rakudo Star 2011.04 released

2011-04-27 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the April 2011 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the April 2011 release is available from http://github.com/rakudo/star/downloads. Rakudo Star is aimed at early adopters

Re: Enumerating prefix operators, and spec changes

2011-03-09 Thread Patrick R. Michaud
On Wed, Mar 09, 2011 at 04:40:19PM -0800, Stefan O'Rear wrote: This is a more general problem: the distinction between prefix ops and functions is not well defined. For instance, 'defined 1 0' is parsed as defined(1) 0 by Rakudo, but as defined(1 0) by STD and derivatives. I think STD

Announce: Rakudo Star 2010.12 released

2011-01-28 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the January 2011 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the January 2011 release is available from http://github.com/rakudo/star/downloads. Starting with this January 2011

Announce: Rakudo Star 2011.01 released

2011-01-28 Thread Patrick R. Michaud
(Resending, since I had the wrong date in the subject line of my previous post. Apologies to everyone for the duplicates! --Pm) On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the January 2011 release of Rakudo Star, a useful and usable distribution of Perl 6. The

Announce: Rakudo Star 2010.12 released

2010-12-30 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the December 2010 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the December 2010 release is available from http://github.com/rakudo/star/downloads. Rakudo Star is aimed at early

Announce: Rakudo Star 2010.11 released

2010-11-25 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the November 2010 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the November 2010 release is available from http://github.com/rakudo/star/downloads. Rakudo Star is aimed at early

Re: IO Multiplexing

2010-11-12 Thread Patrick R. Michaud
On Fri, Nov 12, 2010 at 11:21:10AM -0800, Stefan O'Rear wrote: TIMTOWDI. Perl without system calls is not Perl. +1 This is why S16 is junk - too much blue-sky thinking, not enough pragmatism and practical experience. Agreed. Forbidding things out of idealistic concerns like API purity is

Re: Unicode Categories

2010-11-10 Thread Patrick R. Michaud
On Wed, Nov 10, 2010 at 01:03:26PM -0500, Chase Albert wrote: Sorry if this is the wrong forum. I was wondering if there was a way to specify unicode categorieshttp://www.fileformat.info/info/unicode/category/index.htmin a regular expression (and hence a grammar), or if there would be any

Re: Unicode Categories

2010-11-10 Thread Patrick R. Michaud
On Wed, Nov 10, 2010 at 01:21:57PM -0500, Chase Albert wrote: That's exactly what I was looking for*. Awesome, thank you. * Almost. E.g. isL would be nice to have as well. Those exist also: $ ./perl6 say 'abCD34' ~~ / isL / a say 'abCD34' ~~ / isN / 3 Pm

Announce: Rakudo Star 2010.10 released

2010-10-28 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the October 2010 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the October 2010 release is available from http://github.com/rakudo/star/downloads. Rakudo Star is aimed at early

Announce: Rakudo Star 2010.09 released

2010-09-29 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the September 2010 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the September 2010 release is available from http://github.com/rakudo/star/downloads. Rakudo Star is aimed at early

Re: [perl6/specs] 761178: remove some some duplicate words words

2010-09-08 Thread Patrick R. Michaud
On Wed, Sep 08, 2010 at 04:02:10PM +0400, Richard Hainsworth wrote: I do want the diffs back: its the only way I have to keep at least some idea of what is changing any why. We know that a lot of people would like to see the diffs available through the commit messages, but afaik none of us

Announce: Rakudo Star 2010.08 released

2010-08-26 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the August 2010 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the August 2010 release is available from http://github.com/rakudo/star/downloads. Rakudo Star is aimed at early

Re: pattern alternation (was Re: How are ...)

2010-08-05 Thread Patrick R. Michaud
On Thu, Aug 05, 2010 at 12:29:38AM -0700, Darren Duncan wrote: Carl Mäsak wrote: Darren (): Read what I said again. I was proposing that the namespace comprised of names matching a pattern like this: /^ [A..Z]+ | [a..z]+ $/ /^ [[A..Z]+ | [a..z]+] $/ Are the square brackets necessary

Re: pattern alternation (was Re: How are ...)

2010-08-05 Thread Patrick R. Michaud
On Thu, Aug 05, 2010 at 10:27:50AM -0400, Aaron Sherman wrote: On Thu, Aug 5, 2010 at 7:55 AM, Carl Mäsak cma...@gmail.com wrote: I see this particular thinko a lot, though. Maybe some Perl 6 lint tool or another will detect when you have a regex containing ^ at its start, $ at the end, |

Re: Smart match isn't on Bool

2010-07-31 Thread Patrick R. Michaud
On Sat, Jul 31, 2010 at 11:47:13AM -0400, Brandon S Allbery KF8NH wrote: [...], and if the point is to be a general case statement then when expr block should smartmatch expr against $_ instead of evaluating it with $_ available as a shorthand/topic. This is exactly what when expr block

Re: Smart match isn't on Bool

2010-07-31 Thread Patrick R. Michaud
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 { when True { say That's the truth! } when 42 { say Good

Re: Smart match isn't on Bool

2010-07-31 Thread Patrick R. Michaud
On Sat, Jul 31, 2010 at 04:29:00PM -0400, Aaron Sherman wrote: My problem with that is that it's a really odd use of given/when, and given the implicit smart-match, it doesn't make much sense. Now, to slightly backtrack, I do agree that there should be at least one way to do something, and if

Rakudo Star - a useful, usable, early adopter distribution of Perl 6

2010-07-29 Thread Patrick R. Michaud
On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the July 2010 release of Rakudo Star, a useful and usable distribution of Perl 6. The tarball for the July 2010 release is available from http://github.com/rakudo/star/downloads. Rakudo Star is aimed at early adopters of

Re: Array membership test?

2010-07-29 Thread Patrick R. Michaud
On Fri, Jul 30, 2010 at 01:52:18AM +0200, Jonathan Worthington wrote: Mark J. Reed wrote: Possibly a FAQ, but is there a simple way of asking if an item is contained in an array? my @x = 1,2,3; say ?...@x.grep(2); say ?...@x.grep(4); 1 0 Though more efficient would be: my @x =

Rakudo 'ng' branch is now 'master'

2010-02-14 Thread Patrick R. Michaud
I've just completed the rename of the 'ng' branch to become the new 'master' branch. The old 'master' branch is now called 'alpha'. If you have an existing checkout (clone) of the Rakudo repository, it's probably a good idea to get a new fresh clone rather than trying to pull updates from the

Re: Gripes about Pod6 (S26)

2010-02-10 Thread Patrick R. Michaud
On Fri, Feb 05, 2010 at 03:43:04PM -0500, Austin Hastings wrote: Second, POD is not XML, and it definitely isn't DOCBOOK. Why do I need magic reserved words like TOC and APPENDIX? I'm not writing a book, I'm writing code. And if I was writing a book, I wouldn't be dumb enough to write it in

Re: One-pass parsing and forward type references

2010-02-01 Thread Patrick R. Michaud
On Sun, Jan 31, 2010 at 06:35:14PM +0100, Carl Mäsak wrote: I found two ways. Either one uses Caugment (the language construct formerly known as Cis also): class B {} class A { sub foo { B::bar } } augment class B { sub bar { A::foo } } ...or one may use the C:: notation to index a

Announce: Rakudo Perl 6 Development Release #25 (Minneapolis)

2010-02-01 Thread Patrick R. Michaud
[This notice is going out a bit late; the release was indeed produced on time, but I was delayed in sending out this notice. With apologies for the delay... --Pm] On behalf of the Rakudo development team, I'm pleased to announce the January 2010 development release of Rakudo Perl #25

Re: One-pass parsing and forward type references

2010-02-01 Thread Patrick R. Michaud
On Mon, Feb 01, 2010 at 05:55:47PM +0100, Carl Mäsak wrote: Is it allowed to do 'class B { ... }' several times in different files before finally declaring the real B? If so, then I'd consider it equivalent to my proposed keyword, and thus there'd be no need for the latter. Yes. And

Re: One-pass parsing and forward type references

2010-02-01 Thread Patrick R. Michaud
On Mon, Feb 01, 2010 at 05:56:09PM +0100, Jan Ingvoldstad wrote: On Mon, Feb 1, 2010 at 17:46, Patrick R. Michaud pmich...@pobox.com wrote: There's a third way: class B { ... }# introduce B as a class name without definition class A { sub foo { B::bar } } class B { sub

Re: Debugging Grammars

2009-12-27 Thread Patrick R. Michaud
On Sun, Dec 27, 2009 at 01:30:18AM -0800, Ovid wrote: my $config = Config::Tiny::Grammar.parse($text); #say $config ?? 'yes' || 'no'; say $config.perl; Currently this matches, but if I add a \s* before the final \n in the section token, it fails to match. I don't know why

Re: r29381 - docs/Perl6/Spec

2009-12-19 Thread Patrick R. Michaud
On Sat, Dec 19, 2009 at 03:29:21PM -0800, Jon Lang wrote: What if I need to make a new type that, like junctions, should not derive from Any, but isn't a junction? Is it that explicitly deriving from a type that's already outside of Any (such as Mu or junction) automatically disables the

Re: p6 Q: How do I metaprogram this?

2009-12-09 Thread Patrick R. Michaud
On Wed, Dec 09, 2009 at 12:16:32AM -0500, Austin Hastings wrote: But I'm curious if there's some P6 feature I've forgotten about (which I've forgotten most of them, excepting the rev number) that would let me do this without having to go too far away from the metal. Coming at this from a

Re: error installing Perl6

2009-11-12 Thread Patrick R. Michaud
On Thu, Nov 12, 2009 at 12:49:01PM -0800, Darren Duncan wrote: I think that a best practice these days is to download and build Parrot separately (which can be in a custom location) and then separately download and configure Rakudo to use Parrot's location, rather than use gen_parrot.

Re: Implicit die in CATCH blocks

2009-09-22 Thread Patrick R. Michaud
On Sat, Sep 19, 2009 at 06:35:45PM -0400, Kodi Arfer wrote: In the process of writing some more tests for CATCH blocks, I've noticed what appears to be a contradiction between Synopsis 4 on the one hand and pugs/t/spec/S04-statements/try.t and Rakudo's current behavior on the other.

Re: How can i contribute for perl 6 ?

2009-09-15 Thread Patrick R. Michaud
On Tue, Sep 15, 2009 at 10:02:02PM +1000, Timothy S. Nelson wrote: On Tue, 15 Sep 2009, Saravanan Thiyagarajan wrote: Would like to be a volunteer in working for perl-6. Can some one help me to get into right direction ? Sure. The best way to help depends on your skill-set. One place

Re: How can i contribute for perl 6 ?

2009-09-15 Thread Patrick R. Michaud
On Tue, Sep 15, 2009 at 11:16:56AM -0500, Kyle Hasselbacher wrote: On Mon, Sep 14, 2009 at 11:00 PM, Saravanan Thiyagarajan perlsa...@gmail.com wrote: Would like to be a volunteer in working for perl-6. Can some one help me to get into right direction ? This is how I did it:

Re: r28196 - docs/Perl6/Spec

2009-09-07 Thread Patrick R. Michaud
On Mon, Sep 07, 2009 at 09:56:51AM -0700, yary wrote: I just saw the intent for this in the split up compilation of the setting thread- that it is useful to: Enable a class stub syntax that allows us to declare a given symbol as being a valid class without having to declare the body of the

Re: r28113 - docs/Perl6/Spec

2009-08-31 Thread Patrick R. Michaud
On Mon, Aug 31, 2009 at 01:28:08PM -0700, Darren Duncan wrote: This is a great move; thanks for this change. So now writing things like 5/43 in code will DWIM and produce a Rat which maintains the intended value exactly, with no floating-point imprecision; and so plain 5/43 is now a plain

Re: [perl #64566] @a[1..*] adds trailing undef value

2009-08-21 Thread Patrick R. Michaud
On Wed, Aug 19, 2009 at 04:54:10AM -0700, Moritz Lenz via RT wrote: On Wed Apr 08 14:59:19 2009, moritz wrote: 23:55 @moritz_ rakudo: my @a = 1..4; say @a[1..*].perl 23:56 p6eval rakudo 6b9755: OUTPUT«[2, 3, 4, undef]␤» It should just be [2, 3, 4]. Since the discussion came up on

Re: Embedded comments: two proposed solutions to the comment-whole-lines problem

2009-08-10 Thread Patrick R. Michaud
On Mon, Aug 10, 2009 at 06:46:34PM +0100, smuj wrote: Although I can see some minimal uses for embedded comments, I think in general the cost/benefit ratio isn't enough to warrant their existence. I could be wrong of course! :-) I'd like to know if anyone has made much use of them in

Re: Rukudo-Star = Rakudo-lite?

2009-08-09 Thread Patrick R. Michaud
On Sun, Aug 09, 2009 at 04:30:07PM +0400, Richard Hainsworth wrote: Referring to Patrick's blog about an official 'useable' version of Rakudo, a suggestion: Since Rakudo* (not sure how it is to be written) is intended to be a cut-down version of perl6.0.0 that is useable, how about

Re: Rukudo-Star = Rakudo-lite?

2009-08-09 Thread Patrick R. Michaud
On Sun, Aug 09, 2009 at 10:57:16PM +0100, Tim Bunce wrote: Since Rakudo* (not sure how it is to be written) is intended to be a cut-down version of perl6.0.0 that is useable, how about Rakudo-lite? Hmmm, that's a very reasonable name. Over the past few days I've become a little

Re: Rukudo-Star = Rakudo-lite?

2009-08-09 Thread Patrick R. Michaud
On Sun, Aug 09, 2009 at 04:35:42PM -0600, David Green wrote: On 2009-Aug-9, at 3:57 pm, Tim Bunce wrote: Perhaps it's worth asking what we might call the release after that one. Rakudo not-quite-so-lite? Rakudo ** (aka Rakudo Exponentiation)? Though I think Patrick is optimistic that

Re: S05 (regex) Q: after

2009-08-08 Thread Patrick R. Michaud
On Sat, Aug 08, 2009 at 05:45:40PM -0400, Austin Hastings wrote: [...] Specifically, is token { ... ?after x } going to match the same pattern as rule { ... ?after x } ?? I ask because (I just did it, and) with rules encouraging the liberal use of whitespace, and implicitly

Re: r27888 - docs/Perl6/Spec

2009-08-07 Thread Patrick R. Michaud
On Fri, Aug 07, 2009 at 08:17:30AM +0200, Moritz Lenz wrote: pugs-comm...@feather.perl6.nl wrote: Author: jimmy Date: 2009-08-07 05:02:42 +0200 (Fri, 07 Aug 2009) New Revision: 27888 Log: [Spec]fixed the wrong space, now it's \x20, not \xC2A0 What was wrong with the non-breaking

Re: Placeholder variable misuse.

2009-07-30 Thread Patrick R. Michaud
On Thu, Jul 30, 2009 at 10:29:04AM -0500, Kyle Hasselbacher wrote: In Rakudo right now, this lives: {$foo;$^foo}(1) However, the spec test expects it to die during compilation (see the end of S06-signature/positional-placeholders.t). It says, A non-twigil variable should not precede a

Re: Parameter binding

2009-07-25 Thread Patrick R. Michaud
On Thu, Jul 23, 2009 at 05:56:31PM +0200, TSa wrote: Hmm, it seems to be the case that the binding is defined to be a readonly binding to the variable. I consider this a bad thing. We should have my $x = 1; foo($x++,$x,$x++); to call foo(1,2,2) and not foo(1,3,2) or even foo(2,3,1). The

Re: XOR does not work that way.

2009-06-24 Thread Patrick R. Michaud
On Thu, Jun 25, 2009 at 02:47:55PM +1000, Timothy S. Nelson wrote: What would happen if we had an operator that returned the number of true values? Say we call it boolean plus, or bop. ...why an operator? sub bop(*...@values) { + grep { $_ }, @values } To give one example:

Rakudo Perl 6 development release #18 (Pittsburgh)

2009-06-18 Thread Patrick R. Michaud
On behalf of the Rakudo development team, I'm pleased to announce the June 2009 development release of Rakudo Perl #18 Pittsburgh. Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. The tarball for the June 2009 release is available from

Re: Module naming conventions

2009-06-03 Thread Patrick R. Michaud
On Tue, Jun 02, 2009 at 02:56:46AM +0200, Daniel Carrera wrote: Jon Lang wrote: On Mon, Jun 1, 2009 at 5:44 PM, Daniel Carrera daniel.carr...@theingots.org wrote: I think we might need to come up with some sort of standard naming convention to distinguish dependencies. Something that the

Re: Module naming conventions

2009-06-03 Thread Patrick R. Michaud
On Tue, Jun 02, 2009 at 10:58:21AM +0200, Daniel Carrera wrote: John M. Dlugosz wrote: The front-end should figure out which binary is proper for your platform. I don't like that idea in the slightest. (1) It is not Perl's job to know if you have a C compiler, C libraries and tool chain.

Re: CPAN -- moving forward

2009-06-03 Thread Patrick R. Michaud
On Mon, Jun 01, 2009 at 06:34:02PM +0200, Daniel Carrera wrote: I am in IRC working with Rakudo folk on how Rakudo is going to store modules on the disk. Once that is done, one can begin talking about a package format and an installer, and then go from there. So far the discussion has

Re: Feature request: Grammar debugging support

2009-05-29 Thread Patrick R. Michaud
On Fri, May 29, 2009 at 11:20:20AM -0700, Larry Wall wrote: Can't help you with PGE, but STD supports a trace facility by setting the STD5DEBUG environent variable to -1, or a set of bits defined in src/perl6/Cursor.pmc in the pugs repo. I'll look at what STD is using for its traces and see if

Re: Amazing Perl 6

2009-05-29 Thread Patrick R. Michaud
On Fri, May 29, 2009 at 10:04:39AM -0700, Larry Wall wrote: On Fri, May 29, 2009 at 09:50:36AM -0700, yary wrote: : Show that much of the basics still work: : my @x=('a' .. 'z'); @x[3,4]=qw(DeeDee Ramone); : say @x.splice(2,4).join(',') : c,DeeDee,Ramone,f That qw is not a good example

Re: Meditations on a Loop

2009-05-26 Thread Patrick R. Michaud
On Mon, May 25, 2009 at 12:37:34PM -0700, yary wrote: That's an enjoyable and educational read, thanks! There's one form under TMTOWTDI that I'd like to see, but can't figure out myself. It's the version analogous to this perl5 snippet- sub odd {$_ % 2} say grep odd,0..6; -where the

Re: Unexpected behaviour with @foo.elems

2009-05-26 Thread Patrick R. Michaud
On Tue, May 26, 2009 at 06:43:40PM -0500, John M. Dlugosz wrote: Daniel Carrera daniel.carrera-at-theingots.org |Perl 6| wrote: The following construction doesn't do what a user might expect: for 0...@foo.elems - $k { do_something($k,@foo[$k]) } Write ^...@foo.elems as a shortcut of

Re: Meditations on a Loop

2009-05-26 Thread Patrick R. Michaud
On Tue, May 26, 2009 at 04:10:45PM -0700, yary wrote: On Tue, May 26, 2009 at 1:57 PM, Patrick R. Michaud pmich...@pobox.com wrote: On Mon, May 25, 2009 at 12:37:34PM -0700, yary wrote: How about...?    sub odd { ^$a % 2 } typo. sub odd {$^a % 2} works (caret goes between

Rakudo Perl 6 development release #17 (Stockholm)

2009-05-21 Thread Patrick R. Michaud
On behalf of the Rakudo development team, I'm pleased to announce the May 2009 development release of Rakudo Perl #17 Stockholm. Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. The tarball for the May 2009 release is available from http://github.com/rakudo/rakudo/downloads

Re: Meditations on a Loop

2009-05-20 Thread Patrick R. Michaud
On Wed, May 20, 2009 at 07:55:55PM -0500, John M. Dlugosz wrote: If you would be so kind, please take a look at http://www.dlugosz.com/Perl6/web/med-loop.html. The page currently says: The reason this [.prime] works is because the method-call syntax will call an ordinary

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Patrick R. Michaud
On Tue, Apr 28, 2009 at 01:28:40PM -0400, Mark J. Reed wrote: On Tue, Apr 28, 2009 at 10:22 AM, Larry Wall la...@wall.org wrote: Does anyone know offhand whether the Unicode Consortium has an explicit policy against use of punctuation in a charname?  So far they only seem to use hyphen and

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Patrick R. Michaud
On Tue, Apr 28, 2009 at 07:22:18AM -0700, Larry Wall wrote: On Mon, Apr 27, 2009 at 11:04:03AM +0200, Helmut Wollmersdorfer wrote: Std.pm allows e.g. \x[ 41 , 42 , 43 ] For convenience - especially with long charnames - it should be possible to write \c[ SPACE,

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Patrick R. Michaud
On Tue, Apr 28, 2009 at 03:08:05PM -0400, Mark J. Reed wrote: On Tue, Apr 28, 2009 at 2:27 PM, Patrick R. Michaud pmich...@pobox.com wrote: * The Unicode character name database [2] has parens in the  name property field for many characters    000A;control;Cc;0;B;N;LINE FEED (LF

Oslo Perl 6 Hackathon Notes

2009-04-13 Thread Patrick R. Michaud
As some of you are aware, this week is the Nordic Perl Workshop [1], and in the days immediately following the workshop we will have the Oslo Perl 6 Hackathon [2]. During the first day of the hackathon Gabor Szabo will be doing a Hands-on Perl 6 training course [3], the other two days will be for

Re: S08 Draft questions (Captures and Signatures)

2009-04-01 Thread Patrick R. Michaud
On Wed, Apr 01, 2009 at 09:55:37AM -0300, Daniel Ruoso wrote: Em Qua, 2009-04-01 às 05:41 -0700, Jon Lang escreveu: ...nor would I expect it to. I'm just wondering if (@_, %_) _are_ still part of a placeholder-generated signature. In short, is there a way to access a slurpy array or hash

Re: On Junctions

2009-03-28 Thread Patrick R. Michaud
On Fri, Mar 27, 2009 at 05:49:02PM -0400, Henry Baragar wrote: I believe that there are hands where $p = 15|26 which would not beat a hand where $d = 17. I believe that the correct way to calculate the value of the hand is: my $p = ([+] @p).map{.eigenstates}.grep{$_ 21}.max; Since the

Re: Junction Algebra

2009-03-28 Thread Patrick R. Michaud
On Sat, Mar 28, 2009 at 02:08:22PM +0300, Richard Hainsworth wrote: 3) Conjecture: The following is true of all junction types, eg., junc(..., junc(...)) === junc(..., ...) The conjecture is false for one/none junctions: one(0, one(1, 1)) # true one(0, 1, 1) #

Re: Junction Algebra

2009-03-28 Thread Patrick R. Michaud
On Sat, Mar 28, 2009 at 10:19:31AM -0500, Patrick R. Michaud wrote: On Sat, Mar 28, 2009 at 02:08:22PM +0300, Richard Hainsworth wrote: 3) Conjecture: The following is true of all junction types, eg., junc(..., junc(...)) === junc(..., ...) The conjecture is false for one/none junctions

deciphering infix:cmp

2009-03-26 Thread Patrick R. Michaud
Rakudo gives some strange results when sorting a list of mixed strings and numbers, which leads me to look for some clarification on infix:cmp (which S03:2866 says that sort uses by default). Here's the case I found in Rakudo: say ('a', 1, 'b', 2 , 'c', 3, 'd', 4).sort.perl; [a, b, c, 1,

Re: Logo considerations - 3 logos needed

2009-03-25 Thread Patrick R. Michaud
On Wed, Mar 25, 2009 at 10:36:56AM -0400, Mark J. Reed wrote: Rakudo is a particular implementation of Perl 6 using Parrot. While it is a separate project from both Perl 6 and Parrot, it is intimately tied to both, and I think its logo should reflect that. I don't see much point in having

Re: Logo considerations

2009-03-24 Thread Patrick R. Michaud
On Tue, Mar 24, 2009 at 10:24:47AM -0700, Larry Wall wrote: I want something with gut appeal on the order of Tux. In particular I want a logo for Perl 6 that is: Fun Cool Cute Named Lively Punable [...] +2 to this approach. Pm

Rakudo Perl development release #15 (Oslo)

2009-03-20 Thread Patrick R. Michaud
On behalf of the Rakudo development team, I'm pleased to announce the March 2009 development release of Rakudo Perl #15 Oslo. Rakudo is an implementation of Perl 6 on the Parrot Virtual Machine [1]. The tarball for the March 2009 release is available from

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 there

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 ws is equivalent to C space+ . The definitions of ws and space above are incorrect, or at least

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 ws (which may need to include comment whitespace), the Parrot Compiler Toolkit also provides an optimized ww rule that matches only between a pair of word

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 ww 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 !ww a number of times,

Re: r25102 - docs/Perl6/Spec

2009-01-30 Thread Patrick R. Michaud
On Fri, Jan 30, 2009 at 08:30:25AM -0800, Larry Wall wrote: So anyway, just because other languages call it a prelude doesn't mean that we have to. Perl is the tail that's always trying to wag the dog... What is the sound of one tail wagging? For my dog Sally, the sound of one tail wagging

  1   2   3   4   >