Re: Pugs 6.2.0 released.

2005-05-04 Thread trewth_seeker
I see here another case of a common erroneous approach to problem-solving. People are trying to enumerate definitions to impose on something, rather than starting with the thing at hand and exhausting any clues it may provide before moving on. This can lead to serious and, in hindsight, embarras

Re: Perl 6 Summary for 2004-04-26 through 2005-05-03

2005-05-04 Thread Michele Dondi
On Tue, 3 May 2005, Matt Fowles wrote: Perl 6 Summary for 2004-04-26 through 2005-05-03 ^^ ^^ Wow! Michele -- Why should I read the fucking manual? I know how to fuck! In fact the problem is that the fucking manual only gives you theoretica

Re: disassemble segfaults

2005-05-04 Thread Leopold Toetsch
Bob Rogers wrote: . . . but I can't figure out why. I thought the patch below would help, but it appears that the value of c is itself broken somehow. The memory handling was broken and disassemble didn't know how to handle PMC constants. Fixed - rev 7971. Thanks for testing, leo

Re: [perl #35195] [PATCH] @MAIN defined twice - behavior documented and tested

2005-05-04 Thread Leopold Toetsch
Jerry Gay <[EMAIL PROTECTED]> wrote: > i couldn't find documentation on the behavior of IMCC if the @MAIN > subpragma was defined on more than one subroutine, so i modified the > documentation to reflect the system behavior, and provided a test. > BTW the system runs the last subroutine marked as

Re: [perl #35195] [PATCH] @MAIN defined twice - behavior documented and tested

2005-05-04 Thread Leopold Toetsch
jerry gay (via RT) wrote: i couldn't find documentation on the behavior of IMCC if the @MAIN subpragma was defined on more than one subroutine I've now added a test for multipe @LOADs too - works fine. leo

Re: Junctions of classes, roles, etc.

2005-05-04 Thread Thomas Sandlaß
Abhijit Mahabal wrote: When you dispatch, what happens would depend upon WALKMETH (according to the pseudocode for CALLONE in A12). Usually the first inherited method would get called. Ohh, yes, that thing. I forget about it. And actually I hope that there's a version among the standard pragmas t

Signatures and option specs [was: Open and pipe]

2005-05-04 Thread Gaal Yahas
On Mon, May 02, 2005 at 09:52:35PM +0200, Juerd wrote: > I already suggested a syntax like '+$write|w' for having multiple > ways to say the same thing. I don't like an explicit :mode. Let > Perl figure that out based on passed named arguments. I'd like to see this specced. What you're suggesting

Re: Signatures and option specs [was: Open and pipe]

2005-05-04 Thread Juerd
Gaal Yahas skribis 2005-05-04 13:48 (+0300): > * canonical representations (eg, :w in your example should probably set > $write) Or, possibly, $w := $write. > * mutually exclusive options (for open modes, :write should exclude > :append) I don't really care if this goes in the signature. Run

reduce metaoperator

2005-05-04 Thread Larry Wall
I propose that reduce become a metaoperator that can be applied to any binary operator and turns it syntactically into a list operator. I am currently thinking that the metaoperator is a prefix spelled \\ (though there are certainly lots of other possibilities that I've laid awake all night thinkin

Re: Open and pipe

2005-05-04 Thread Aaron Sherman
On Mon, 2005-05-02 at 22:51, Uri Guttman wrote: > > "LW" == Larry Wall <[EMAIL PROTECTED]> writes: > > LW> multi sub opensocket ( > LW> Str +$mode = 'rw', > LW> Str +$encoding = 'auto', > LW> Str [EMAIL PROTECTED]) returns IO; > > a

Re: Open and pipe

2005-05-04 Thread Aaron Sherman
On Mon, 2005-05-02 at 16:13, Mark Reed wrote: > On 2005-05-02 15:52, "Juerd" <[EMAIL PROTECTED]> wrote: > > > Gaal Yahas skribis 2005-05-02 22:25 (+0300): > >> > open 'ls', '|-'; # or even > >> > open 'ls', :pipe => 'from' > > > > I dislike the hard-to-tell-apart symbols '<'

Re: reduce metaoperator

2005-05-04 Thread Juerd
Are these equivalent? (Assuming reduce isn't going away) Larry Wall skribis 2005-05-04 5:36 (-0700): > $sum = \\+ @array; > $fact = \\* 1..$num; $sum = reduce &infix:<+>, @arrayd; $fact = reduce &infix:<*>, 1..$num; > $firsttrue = \\|| @args; > $firstdef = \\// @args; >

Re: Open and pipe

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 08:47:17AM -0400, Aaron Sherman wrote: : I would expect "open" to be a bit of an anachronism in P6, but still : used fairly often. For the most part, I would expect that: : : my IO $read_fh = '/some/path' => 'r'; # Get an IO::File (is IO) : my IO $write_fh = '/o

Re: reduce metaoperator

2005-05-04 Thread Juerd
Juerd skribis 2005-05-04 14:53 (+0200): > @foo ==> zip <== @bar H... @quux || || \/ @foo ==> zip <== @bar /\ || || @xyzzy :) Juerd -- http://convolution.nl/maak_juerd_blij.html

Re: reduce metaoperator

2005-05-04 Thread Rob Kinyon
This may be a naive question, but what's wrong with just having a keyword called reduce()? Why do we need an operator for everything? I'm worried that the list of P6 operators is going to be as long as the list of P5 keywords, with a lot of them looking something like: I propose that if you're t

Re: reduce metaoperator

2005-05-04 Thread Aaron Sherman
On Wed, 2005-05-04 at 08:36, Larry Wall wrote: > I propose that reduce become a metaoperator that can be applied to > any binary operator and turns it syntactically into a list operator. Sounds very cool! I like it... but... > $sum = ®+ @array; I don't think you can do that workably. In the

Re: reduce metaoperator

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 02:53:54PM +0200, Juerd wrote: : Hm, if ==> and <== are made special syntax, maybe this would be : possible? : : @foo ==> zip <== @bar It's already the case that <== binds tighter, so it should work the same as @foo ==> (zip <== @bar) or zip <== @bar <== @fo

Re: reduce metaoperator

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 09:00:46AM -0400, Aaron Sherman wrote: : That said, let me try to be helpful, and not just complain: : : $sum = (+) @array; : : I've not thought through all of the implications to the parser, but I : think this works, and it certainly ends up looking very mnemonic fo

Re: reduce metaoperator

2005-05-04 Thread Juerd
Aaron Sherman skribis 2005-05-04 9:00 (-0400): > > $sum = ®+ @array; > I don't think you can do that workably. In the font I use, I was > scratching my head asking "how does @ work there?!" Yep, I can't tell ® > and @ apart without getting REAL close to the screen. Perhaps this just means tha

Re: reduce metaoperator

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 08:59:04AM -0400, Rob Kinyon wrote: : This may be a naive question, but what's wrong with just having a : keyword called reduce()? Why do we need an operator for everything? Because it's an operator/macro in any event, with weird unary or listop parsing: reduce(+) @arr

Re: reduce metaoperator

2005-05-04 Thread Michele Dondi
On Wed, 4 May 2005, Larry Wall wrote: I propose that reduce become a metaoperator that can be applied to any binary operator and turns it syntactically into a list operator. I second that. By all means! (But I thin it would be desirable to have a 'plain' reduce operator as well) Michele -- The re

Re: Open and pipe

2005-05-04 Thread Uri Guttman
> "AS" == Aaron Sherman <[EMAIL PROTECTED]> writes: AS> On Mon, 2005-05-02 at 22:51, Uri Guttman wrote: >> > "LW" == Larry Wall <[EMAIL PROTECTED]> writes: >> LW> multi sub opensocket ( LW> Str +$mode = 'rw', LW> Str +$encoding = 'auto', LW> Str [EMAIL PROTECTED]) returns IO

Circular dereference?

2005-05-04 Thread Autrijus Tang
What should this do, if not infinite loop? my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1; Thanks, /Autrijus/ pgp9rBdIQIdVk.pgp Description: PGP signature

Re: reduce metaoperator

2005-05-04 Thread Juerd
Larry Wall skribis 2005-05-04 6:10 (-0700): > On Wed, May 04, 2005 at 08:59:04AM -0400, Rob Kinyon wrote: > : This may be a naive question, but what's wrong with just having a > : keyword called reduce()? Why do we need an operator for everything? > Because it's an operator/macro in any event, wit

Re: reduce metaoperator

2005-05-04 Thread Rob Kinyon
Using that argument, every keyword is really an operator/macro. Instead of sub/method/multimethod, we could use a special character. sub foo { ... } becomes &&& foo { ... } A method is >&&, a multimethod is *&&, and so on. (I don't have a Unicode mail client or I'd look for a Unicode character.

Re: reduce metaoperator

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 02:58:14PM +0200, Juerd wrote: : Juerd skribis 2005-05-04 14:53 (+0200): : > @foo ==> zip <== @bar : : H... : :@quux : || : || : \/ : @foo ==> zip <== @bar : /\ : || :

Re: Circular dereference?

2005-05-04 Thread Juerd
Autrijus Tang skribis 2005-05-04 21:13 (+0800): > What should this do, if not infinite loop? > my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1; I'm still against any explict scalar dereferencing, so: fail, complaining about $x not being an arrayreference (not knowing how to handle &postcircumfix:<[

Re: reduce metaoperator

2005-05-04 Thread Uri Guttman
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> I propose that reduce become a metaoperator that can be applied to LW> any binary operator and turns it syntactically into a list operator. LW> I am currently thinking that the metaoperator is a prefix spelled \\ LW> (though there ar

Re: Circular dereference?

2005-05-04 Thread Juerd
Juerd skribis 2005-05-04 15:18 (+0200): > I'm still against any explict scalar dereferencing, so: fail, > complaining about $x not being an arrayreference (not knowing how > to handle &postcircumfix:<[ ]>). Ehm :) s/explicit/implicit/ Juerd -- http://convolution.nl/maak_juerd_blij.html http://

Re: reduce metaoperator

2005-05-04 Thread Uri Guttman
> "J" == Juerd <[EMAIL PROTECTED]> writes: J> Juerd skribis 2005-05-04 14:53 (+0200): >> @foo ==> zip <== @bar J> H... J>@quux J> || J> || J> \/ J> @foo ==> zip <== @bar J> /\ J> ||

Re: reduce metaoperator

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 09:18:46AM -0400, Uri Guttman wrote: : > "LW" == Larry Wall <[EMAIL PROTECTED]> writes: : LW> $fact = \\* 1..$num; : : shouldn't that be s/fact/prod/ ? sure the input makes it a factorial but : the general case would be a product. not that what var names you choos

Re: reduce metaoperator

2005-05-04 Thread Aaron Sherman
On Wed, 2005-05-04 at 09:06, Larry Wall wrote: > On Wed, May 04, 2005 at 09:00:46AM -0400, Aaron Sherman wrote: > : That said, let me try to be helpful, and not just complain: > : > : $sum = (+) @array; > It's certainly one of the ones I considered, along with all the other > brackets, and |+

Re: reduce metaoperator

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 03:15:09PM +0200, Juerd wrote: : Larry Wall skribis 2005-05-04 6:10 (-0700): : > On Wed, May 04, 2005 at 08:59:04AM -0400, Rob Kinyon wrote: : > : This may be a naive question, but what's wrong with just having a : > : keyword called reduce()? Why do we need an operator for

Re: reduce metaoperator

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 09:34:28AM -0400, Aaron Sherman wrote: : Oh hey, I just made up "list:..." There's nothing for that listed in : A12, and that handy table from A12 doesn't show up in S12 or S13... is : that an oversight? Have new categories been added? List ops are probably just prefix: wit

Re: Circular dereference?

2005-05-04 Thread Autrijus Tang
On Wed, May 04, 2005 at 06:24:34AM -0700, Larry Wall wrote: > Yes, it doesn't immediately deref as an array, so it fails. Oh. So autodereference is only one level? I got it all wrong in Pugs, then. I wonder where I got that impression... > Now @$x would infinite loop according to what I said a

Re: reduce metaoperator

2005-05-04 Thread Juerd
Uri Guttman skribis 2005-05-04 9:23 (-0400): > you are brainfucking me! stop it now!! +++[>++<-]>+++.<[>><<-]>>. <<[><-]>-.---.<+++[>+++<-]>.<+ ++[>--<-]>+.>.<<+++[>+++<-]>.+.>.<<+++[>--<-]> .-.+..>.<<[>+<-]>++.<+++[>

Cmmposition binop

2005-05-04 Thread Michele Dondi
I had implicitly touched on this in the past, but speaking of binops - and of functional features in Perl6, is there any provision of a (list associative?) composition binop? I had naively thought about ==> and/or <==, but that's somewhat on a different level. What I refer to now is something

Re: Circular dereference?

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 03:18:29PM +0200, Juerd wrote: : Autrijus Tang skribis 2005-05-04 21:13 (+0800): : > What should this do, if not infinite loop? : > my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1; : : I'm still against any explict scalar dereferencing, so: fail, : complaining about $x not b

Re: reduce metaoperator

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 09:34:28AM -0400, Aaron Sherman wrote: : On Wed, 2005-05-04 at 09:06, Larry Wall wrote: : > On Wed, May 04, 2005 at 09:00:46AM -0400, Aaron Sherman wrote: : > : That said, let me try to be helpful, and not just complain: : > : : > : $sum = (+) @array; : : > It's certainl

Coroutine Question

2005-05-04 Thread Joshua Gatcomb
All, I am not the only one who has found porting p5 to working p6 code relatively easy and similar looking: http://perlmonks.org/index.pl?node_id=453821 In that thread, the author raised the question of coroutine support in Perl. I looked up coroutines in the "Perl6 Timeline By Apocalypse" threa

Re: Circular dereference?

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 09:38:58PM +0800, Autrijus Tang wrote: : On Wed, May 04, 2005 at 06:24:34AM -0700, Larry Wall wrote: : > Yes, it doesn't immediately deref as an array, so it fails. : : Oh. So autodereference is only one level? I got it all wrong : in Pugs, then. I wonder where I got tha

Re: reduce metaoperator

2005-05-04 Thread Aaron Sherman
On Wed, 2005-05-04 at 09:23, Uri Guttman wrote: > > "J" == Juerd <[EMAIL PROTECTED]> writes: > > J> Juerd skribis 2005-05-04 14:53 (+0200): > >> @foo ==> zip <== @bar > > J> H... > > J>@quux > J> || > J> || > J> \/ > J>

Re: reduce metaoperator

2005-05-04 Thread Aaron Sherman
On Wed, 2005-05-04 at 09:45, Larry Wall wrote: > On Wed, May 04, 2005 at 09:34:28AM -0400, Aaron Sherman wrote: > : Hmmm... > : > : $sum = [+] @array > : > : Nice. > > I just thought that'd be visually confusing in a subscript: > > @foo[0..9; [;[EMAIL PROTECTED]; 0..9] Now, why did I

Re: Coroutine Question

2005-05-04 Thread Aaron Sherman
On Wed, 2005-05-04 at 09:47, Joshua Gatcomb wrote: > So without asking for S17 in its entirety to be written, is it > possible to get a synopsis of how p6 will do coroutines? A coroutine is just a functional unit that can be re-started after a previous return, so I would expect that in Perl, a co

Re: Coroutine Question

2005-05-04 Thread Joshua Gatcomb
On 5/4/05, Luke Palmer <[EMAIL PROTECTED]> wrote: > On 5/4/05, Joshua Gatcomb <[EMAIL PROTECTED]> wrote: > > So without asking for S17 in its entirety to be written, is it > > possible to get a synopsis of how p6 will do coroutines? I ask > > because after reading Dan's "What the heck is: a corou

Re: Cmmposition binop

2005-05-04 Thread Stuart Cook
> What I refer to now is something that takes two {coderefs,anonymous > subs,closures} and returns (an object that behaves like) another anonymous > sub, precisely the one that acts like the former followed by the latter > (or vice versa!). Do you mean like the mathematical 'f o g'? i.e. (f o g)(

Re: Cmmposition binop

2005-05-04 Thread Rob Kinyon
What about the function compose() that would live in the module "keyword", imported by the incantation "use keyword qw( compose );"? (NB: My P6-fu sucks right now) multimethod compose (@*List) { return { $_() for @List; }; } On 5/4/05, Michele Dondi <[EMAIL PROTECTED]> wrote: > I

Coroutine Question

2005-05-04 Thread Luke Palmer
On 5/4/05, Joshua Gatcomb <[EMAIL PROTECTED]> wrote: > Ok - this isn't what I was expecting at all. That doesn't make it a > bad thing. Given something that looks a lot more like a typical > coroutine: > > sub example is coroutine { > yield 1; > yield 2; > yield 3; > } > > I would exp

Re: Pugs 6.2.0 released.

2005-05-04 Thread Mark A. Biggar
[EMAIL PROTECTED] wrote: I see here another case of a common erroneous approach to problem-solving. People are trying to enumerate definitions to impose on something, rather than starting with the thing at hand and exhausting any clues it may provide before moving on. This can lead to serious an

Re: Open and pipe

2005-05-04 Thread Gaal Yahas
On Wed, May 04, 2005 at 08:47:17AM -0400, Aaron Sherman wrote: > I would expect "open" to be a bit of an anachronism in P6, but still > used fairly often. For the most part, I would expect that: > > my IO $read_fh = '/some/path' => 'r'; # Get an IO::File (is IO) > my IO $write_fh = '/o

Re: Coroutine Question

2005-05-04 Thread Ingo Blechschmidt
Hi, Joshua Gatcomb wrote: > On 5/4/05, Luke Palmer <[EMAIL PROTECTED]> wrote: >> On 5/4/05, Joshua Gatcomb <[EMAIL PROTECTED]> wrote: >> > So without asking for S17 in its entirety to be written, is it >> > possible to get a synopsis of how p6 will do coroutines? I ask >> > because after reading

Re: Coroutine Question

2005-05-04 Thread Joshua Gatcomb
On 5/4/05, Luke Palmer <[EMAIL PROTECTED]> wrote: > On 5/4/05, Joshua Gatcomb <[EMAIL PROTECTED]> wrote: > > Ok - this isn't what I was expecting at all. That doesn't make it a > > bad thing. Given something that looks a lot more like a typical > > coroutine: > > > > sub example is coroutine { >

Re: Coroutine Question

2005-05-04 Thread Aaron Sherman
On Wed, 2005-05-04 at 10:07, Aaron Sherman wrote: > On Wed, 2005-05-04 at 09:47, Joshua Gatcomb wrote: > > > So without asking for S17 in its entirety to be written, is it > > possible to get a synopsis of how p6 will do coroutines? > > A coroutine is just a functional unit that can be re-started

Re: Cmmposition binop

2005-05-04 Thread Ingo Blechschmidt
Hi, Rob Kinyon wrote: > What about the function compose() that would live in the module > "keyword", imported by the incantation "use keyword qw( compose );"? FWIW, I like "o" better -- function composing is very often used in FP, and should therefore have a short name. Luckily, it's very easy t

Plethora of operators

2005-05-04 Thread Rob Kinyon
I just started following the list again after a few months (though I have been skimming the bi-weekly summaries) and I'm a little alarmed at what seems to be a trend towards operaterizing everything in sight and putting those operators in the core. My understanding of P6 after the reading the AES

Re: Open and pipe

2005-05-04 Thread Juerd
Gaal Yahas skribis 2005-05-04 17:24 (+0300): > Ah yes, that's another thing I was wondering about: what does opening a > pipe return. If it's a one-way pipe, okay, this may be a single handle; > but for bidirectional opens, we need $in, $out, and $err handles; and That'd be tridirectional, then.

Re: Open and pipe

2005-05-04 Thread Rob Kinyon
Would that mean that a filehandle opened readonly would throw an exception if you attempted to either print or warn on it? On 5/4/05, Juerd <[EMAIL PROTECTED]> wrote: > Gaal Yahas skribis 2005-05-04 17:24 (+0300): > > Ah yes, that's another thing I was wondering about: what does opening a > > pipe

Re: Open and pipe

2005-05-04 Thread Gaal Yahas
On Wed, May 04, 2005 at 04:59:21PM +0200, Juerd wrote: > > Ah yes, that's another thing I was wondering about: what does opening a > > pipe return. If it's a one-way pipe, okay, this may be a single handle; > > but for bidirectional opens, we need $in, $out, and $err handles; and > > That'd be tri

Re: Open and pipe

2005-05-04 Thread Juerd
Rob Kinyon skribis 2005-05-04 11:02 (-0400): > Would that mean that a filehandle opened readonly would throw an > exception if you attempted to either print or warn on it? I don't know what warning on a filehandle should be or do, but ignoring that bit, yes, an exception would be the right thing t

Re: Open and pipe

2005-05-04 Thread Juerd
Gaal Yahas skribis 2005-05-04 18:15 (+0300): > Yes, if $h is the not-very-primitive version of IO. Surely the type of > $h.in is not the same as $h itself? Why not? $h does IO::Handle::Tridirectional, and $h.in does not, even though $h and $h.in are-a IO::Handle. Or whatever the classes will be,

Re: Open and pipe

2005-05-04 Thread Rob Kinyon
> Rob Kinyon skribis 2005-05-04 11:02 (-0400): > > Would that mean that a filehandle opened readonly would throw an > > exception if you attempted to either print or warn on it? > > I don't know what warning on a filehandle should be or do, but ignoring > that bit, yes, an exception would be the r

Re: Open and pipe

2005-05-04 Thread Juerd
Rob Kinyon skribis 2005-05-04 11:20 (-0400): > $h.print() goes to $h.out > $h.readline() goes to $h.in > $h.warn() goes to $h.err > Making the tri-directional trifecta complete. It's sort-of consistent, but I don't like it, because warnings are much more complicated than just things that are print

Re: Circular dereference?

2005-05-04 Thread Thomas Sandlaß
Autrijus Tang wrote: What should this do, if not infinite loop? my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1; Hmm, after the my both $x and $y store an undef. Then $x stores a ref to undef. Then $y stores a ref to ref of undef. I see no circle. Now let's look at $x = 1. I think it goes down to th

Re: Pugs 6.2.0 released.

2005-05-04 Thread Patrick R. Michaud
On Wed, May 04, 2005 at 07:29:35AM -0700, Mark A. Biggar wrote: > Except that xor or ^^ is only a binary operation, there is no > "xor(p1,p2,...)", only "p1 xor p2 xor ..." which can really only be > understood if you add () to disambiguate the order that the binary ops > are performed. Fortunat

embedding initialization

2005-05-04 Thread Jeff Horwitz
i'm neck deep in writing the IMC eval code for pugs. if i've already loaded bytecode using Parrot_readbc/loadbc, i can then successfully call the PIR compiler and eval code at will from C/Haskell. great! however, without the Parrot_readbc step, everything bombs out because the packfile isn't set

Re: Circular dereference?

2005-05-04 Thread Autrijus Tang
On Wed, May 04, 2005 at 05:30:48PM +0200, Thomas Sandlaï wrote: > Autrijus Tang wrote: > >What should this do, if not infinite loop? > > > >my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1; > > Hmm, after the my both $x and $y store an undef. > Then $x stores a ref to undef. Then $y stores > a ref t

Re: Circular dereference?

2005-05-04 Thread Thomas Sandlaß
Autrijus Tang wrote: If the reference semantics changed drastically, please reflect it prominiently in the relevant Synopsis. :) Unfortunately I don't feel entitled to do so. I'm just an interessted bystander, not a member of the design team. Sorry. -- TSa (Thomas Sandlaß)

Useful task -- Character properties

2005-05-04 Thread Patrick R. Michaud
On Tue, May 03, 2005 at 09:22:11PM +0100, Nicholas Clark wrote: > > Whilst I confess that it's unlikely to be me here, if anyone has the time > to contribute some help, do you have a list of useful self-contained tasks > that people might be able to take on? Actually, overnight I realized there's

Re: Yet Another TODO Model for Test.pm

2005-05-04 Thread Nathan Gray
On Tue, May 03, 2005 at 01:37:43PM -0400, Stevan Little wrote: > On May 3, 2005, at 12:32 PM, Nathan Gray wrote: > >Can you put the definitions of each attribute in one of the README > >files? > > I will put these common ones in there yes. However, the nice aspect of > using the TODO "reason" at

Re: reduce metaoperator

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 09:55:57AM -0400, Aaron Sherman wrote: : I don't think there's a perfect solution for what you want, but this is : pretty darned close. Yes, and I was always a little fond of the bracket solution since it lets you visually distinguish $x = [»+«] @foo; $x = [+]« @f

Re: Useful task -- Character properties

2005-05-04 Thread Dan Sugalski
At 10:21 AM -0500 5/4/05, Patrick R. Michaud wrote: On Tue, May 03, 2005 at 09:22:11PM +0100, Nicholas Clark wrote: Whilst I confess that it's unlikely to be me here, if anyone has the time to contribute some help, do you have a list of useful self-contained tasks that people might be able to ta

Re: Circular dereference?

2005-05-04 Thread Juerd
Thomas Sandlaß skribis 2005-05-04 17:30 (+0200): > >my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1; > Hmm, after the my both $x and $y store an undef. > Then $x stores a ref to undef. Then $y stores > a ref to ref of undef. I see no circle. No, again, please do not make the mistake of thinking VAL

Re: Circular dereference?

2005-05-04 Thread Aaron Sherman
On Wed, 2005-05-04 at 11:30, Thomas Sandlaß wrote: > Autrijus Tang wrote: > > What should this do, if not infinite loop? > > > > my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1; > > Hmm, after the my both $x and $y store an undef. > Then $x stores a ref to undef. Then $y stores > a ref to ref of u

Re: Plethora of operators

2005-05-04 Thread Larry Wall
On Wed, May 04, 2005 at 10:58:22AM -0400, Rob Kinyon wrote: : I just started following the list again after a few months (though I : have been skimming the bi-weekly summaries) and I'm a little alarmed : at what seems to be a trend towards operaterizing everything in sight : and putting those opera

Re: PMC flags

2005-05-04 Thread Nicholas Clark
On Mon, May 02, 2005 at 08:58:43AM +0200, Leopold Toetsch wrote: > Nicholas Clark <[EMAIL PROTECTED]> wrote: > > Parrot gives each PMC class 8 private flag bits. I was wondering how to use > > these most efficiently for ponie. My thoughts so far are > > > 1 bit for SVf_IOK > > 1 bit for SVf_NOK >

Re: PMC flags

2005-05-04 Thread Dave Mitchell
On Wed, May 04, 2005 at 05:26:25PM +0100, Nicholas Clark wrote: > On Mon, May 02, 2005 at 08:58:43AM +0200, Leopold Toetsch wrote: > > Nicholas Clark <[EMAIL PROTECTED]> wrote: > > > Parrot gives each PMC class 8 private flag bits. I was wondering how to > > > use > > > these most efficiently for

Re: PMC flags

2005-05-04 Thread Nicholas Clark
On Mon, May 02, 2005 at 12:24:04AM +0100, Dave Mitchell wrote: > On Sun, May 01, 2005 at 11:36:02PM +0100, Nicholas Clark wrote: > > in the common cases be able to access the PObj structure members directly. > > I may be speaking here like someone at the back who hasn't been paying > attention, bu

Re: Perl 6 Summary for 2004-04-26 through 2005-05-03

2005-05-04 Thread Bernhard Schmalhofer
Matt Fowles schrieb: imc http server Markus Amslser wanted to write a tiny webserver in imc. This led to the discovery of that the binary to ascii transcoding is absent. Leo suggested several possible solutions. Actually Markus Amsler did write a working tiny w

Favicon.ico for http://www.parrotcode.org

2005-05-04 Thread Bernhard Schmalhofer
Hi, I noticed that the favicon.ico for http://www.parrotcode.org is a Camel. Can we have a Parrot for that, in order to do the many non-Perl Parrot based languages justice? Putting that favicon.ico into 'docs' would also make 'examples/io/httpd.imc' happy. CU, Bernhard

Re: Open and pipe

2005-05-04 Thread Uri Guttman
> "J" == Juerd <[EMAIL PROTECTED]> writes: J> Rob Kinyon skribis 2005-05-04 11:20 (-0400): >> $h.print() goes to $h.out >> $h.readline() goes to $h.in >> $h.warn() goes to $h.err >> Making the tri-directional trifecta complete. J> It's sort-of consistent, but I don't like it, bec

Re: Plethora of operators

2005-05-04 Thread Rob Kinyon
> Are there any particular other operators you're worried about? > I think the current design does a pretty good job of factoring out the > metaoperators so that the actual set of underlying basic operators *is* > relatively small. Yes, you can now say something like > > $x = [»+^=«] @foo; >

Re: Coroutine Question

2005-05-04 Thread John Macdonald
On Wed, May 04, 2005 at 10:43:22AM -0400, Aaron Sherman wrote: > On Wed, 2005-05-04 at 10:07, Aaron Sherman wrote: > > On Wed, 2005-05-04 at 09:47, Joshua Gatcomb wrote: > > > > > So without asking for S17 in its entirety to be written, is it > > > possible to get a synopsis of how p6 will do coro

Re: Circular dereference?

2005-05-04 Thread Thomas Sandlaß
Aaron Sherman wrote: Squint harder ;-) I'm trying! If we agree that the first say should print 7, then we must conclude that either we've changed the value of undef to 7, or we've created a circular reference. In my view of refs 7 is printed, indeed. But I've difficulty to understand what you mean

[perl #35223] [PATCH] PGE Makefile with MinGW

2005-05-04 Thread François
# New Ticket Created by FranÃois PERRAD # Please include the string: [perl #35223] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=35223 > Small building problem with MinGW32. make[1]: Entering directory `D:/Documents/DEV

Re: Useful task -- Character properties

2005-05-04 Thread Patrick R. Michaud
On Wed, May 04, 2005 at 12:30:48PM -0400, Dan Sugalski wrote: > At 10:21 AM -0500 5/4/05, Patrick R. Michaud wrote: > >Actually, overnight I realized there's a relatively good-sized > >project that needs figuring out -- identifying character properties > >such as isalpha, islower, isprint, etc. He

Re: Coroutine Question

2005-05-04 Thread Patrick R. Michaud
On Wed, May 04, 2005 at 02:22:43PM -0400, John Macdonald wrote: > On Wed, May 04, 2005 at 10:43:22AM -0400, Aaron Sherman wrote: > > On Wed, 2005-05-04 at 10:07, Aaron Sherman wrote: > > > A coroutine is just a functional unit that can be re-started after a > > > previous return, so I would expect

Re: Useful task -- Character properties

2005-05-04 Thread Leopold Toetsch
Patrick R. Michaud wrote: [ see below for some more ] Actually, overnight I realized there's a relatively good-sized project that needs figuring out -- identifying character properties such as isalpha, islower, isprint, etc. Here I'll briefly sketch how I'd like it to work, and maybe someone enter

Re: PMC flags

2005-05-04 Thread Leopold Toetsch
Nicholas Clark wrote: [ CCs cleared by some ] ... However there's a lot of source outside pp*.c and the SV/AV/HV/CV/GV manipulation code. A lot of that are helper functions for pp code, but anyway yes, the code exists and is an API. Which is the stuff we're trying to keep working unchanged. If it

Re: PMC flags

2005-05-04 Thread Leopold Toetsch
Dave Mitchell wrote: So pseduo-code like if (pmc->vtable->is_IOK()) ... else if (pmc->vtable->is_NOK()) ... becomes status = pmc->vtable->status(); if (status & IOK) ... else if (status & NOK) That would still need to rewrite all but 1% of perl5 code and

Re: Type system questions.

2005-05-04 Thread Larry Wall
On Tue, May 03, 2005 at 09:53:59PM +0800, Autrijus Tang wrote: : On Tue, May 03, 2005 at 05:32:44AM -0700, Larry Wall wrote: : > : # Type Instantiation? : > : sub apply (&fun<::a> returns ::b, ::a $arg) returns ::b { : > : &fun($arg); : > : } : > : > The first parameter would be &fun

Re: embedding initialization

2005-05-04 Thread Leopold Toetsch
Jeff Horwitz wrote: i'm neck deep in writing the IMC eval code for pugs. if i've already loaded bytecode using Parrot_readbc/loadbc, i can then successfully call the PIR compiler and eval code at will from C/Haskell. great! however, without the Parrot_readbc step, everything bombs out because the

Re: Coroutine Question

2005-05-04 Thread Rod Adams
John Macdonald wrote: The most common (and what people sometimes believe the *only* usage) is as a generator - a coroutime which creates a sequence of values as its "chunk" and always returns control to its caller. (This retains part of the subordinate aspect of a subroutine. While it has the abi

Re: [perl #35223] [PATCH] PGE Makefile with MinGW

2005-05-04 Thread Patrick R. Michaud
On Wed, May 04, 2005 at 09:23:50AM -0700, François PERRAD wrote: > # New Ticket Created by François PERRAD > # Please include the string: [perl #35223] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/rt3/Ticket/Display.html?id=35223 > > > Small b

Re: Coroutine Question

2005-05-04 Thread Damian Conway
[Not back, just sufficiently irritated...] Luke Palmer wrote: in my proposal, when you call a coroutine, it returns an iterator (and doesn't call anything): my $example = example(); =$example; # 1 =$example; # 2 The thing this buys over the traditional (which I refer to as the "stupid

Re: Coroutine Question

2005-05-04 Thread John Macdonald
On Wed, May 04, 2005 at 03:02:41PM -0500, Rod Adams wrote: > John Macdonald wrote: > > >The most common (and what people sometimes believe the > >*only* usage) is as a generator - a coroutime which creates a > >sequence of values as its "chunk" and always returns control > >to its caller. (This r

Re: Coroutine Question

2005-05-04 Thread Damian Conway
John Macdonald wrote a lovely summary of coroutines [omitted]. Then added: > I'd use "resume" instead of "coreturn" We've generally said we'd be using "yield". > and the interface for resume would allow values to be sent > in as well as out. Indeed. As John suggested, the "yield" keyword (or whatev

Re: Coroutine Question

2005-05-04 Thread Rod Adams
John Macdonald wrote: On Wed, May 04, 2005 at 03:02:41PM -0500, Rod Adams wrote: If there are good uses for coroutines that given/take does not address, I'll gladly change my opinion. But I'd like to see some examples. FWIW, I believe that Patrick's example of the PGE returning matches could b

Re: PMC flags

2005-05-04 Thread Aaron Sherman
On Wed, 2005-05-04 at 01:51, Leopold Toetsch wrote: > Aaron Sherman wrote: > > On Mon, 2005-05-02 at 08:58 +0200, Leopold Toetsch wrote: > > Here is some example P5 source from pp_pow in pp.c: > > I presume that Ponie eventually will run Parrot opcodes. pp_pow() is > like all these functions par

pugs-commit e-mailing list

2005-05-04 Thread Sam Vilain
Hi all, So, there I was setting up an OpenFoundry account for another project, http://utilvserver.openfoundry.org/, when they wanted to get commit e-mails with diffs. So I logged a feature request at http://xrl.us/fy3j, but that didn't give me commit e-mails straight away, so instead I decided to

Re: reduce metaoperator

2005-05-04 Thread John Williams
$sum = reduce(+) @array; # macro $sum = reduce &infix:<+> @array; # regular sub $sum = [+] @array; # meta operator ($sum = 0) >>+=<< @array;# hyper tricks use My::Cool::Reduce::Mixin; # unless in core $sum = @array.reduce(+);

  1   2   >