Re: [perl #35305] [PATCH] skip threads 'detatch' test on win32

2005-05-17 Thread Leopold Toetsch
Vladimir Lipsky wrote: parrot (r8016): no change. hangs w/98% cpu. here's the -t output: As stated already, this (and possibly other thread) test(s) can't succeed as long as Win32 has no event loop that passes the terminate event on to the running interpreter. The last two pmc's are allocated fr

Re: t/src/manifest.t failed

2005-05-17 Thread Leopold Toetsch
Dino Morelli wrote: I'm seeing the following test failure at r8113 t/src/manifestNOK 6# Failed test (t/src/manifest.t at line 79) I'd say we just drop this test. Whenever you do reasoanble work in the working tree, you got test files, editor swap file and whatnot. leo

t/src/manifest.t failed

2005-05-17 Thread Dino Morelli
I'm seeing the following test failure at r8113 t/src/manifestNOK 6# Failed test (t/src/manifest.t at line 79) # Extra files: # dynclasses/build.pl # editor/imc.vim # install_config.fpmc # t/src/.manifest.t.swp # test.imc # test.pbc # Looks like you faile

Re: Quick question: '1.28' * '2.56'

2005-05-17 Thread Sam Vilain
Larry Wall wrote: : pugs> '1.28' * '2.56' : 3.2768 : What is (or should be) going on here here? : [1] role NumRole { : method infix:<*> returns Num (NumRole $x, NumRole $y: ) { ... } : } : Str.does(NumRole); : [3] multi sub prefix:<+> (Str $x) returns Num { ... } : multi s

Re: Quick question: '1.28' * '2.56'

2005-05-17 Thread Sam Vilain
Rob Kinyon wrote: If that's the case, then if I change a variable that isa Str (that isa Num), does it change what it inherits from? Please don't use "inherits" when talking about these core types. Classical inheritance just doesn't work with the varied sets of numbers. All those stories you were

Re: Could not locate Inc.pm

2005-05-17 Thread Andrew Moore
On 5/17/05, Jovial Shah <[EMAIL PROTECTED]> wrote: > /opt/third-party/pkg/perl-5.6.1/bin/perl > -I/workplace/workingDirectory/CodeCoverage/Devel-Cover-0.53/lib/ > -MDevel::Cover ../SamplePerlProgram/cc-1.pl > > I get an error message. > > Can't locate Devel/Cover/Inc.pm in @INC (@INC contains: >

Re: Could not locate Inc.pm

2005-05-17 Thread chromatic
On Tue, 2005-05-17 at 12:14 -0700, Jovial Shah wrote: > Then when I checked in the ..Devel-Cover-0.53/lib/Devel/Cover/ > directory, Inc.pm did not exist. > Does Inc.pm get generated or it didn't exist in the 0.53 tar ball ? > Whats the work around ? My version has the following line:

Re: [perl #35305] [PATCH] skip threads 'detatch' test on win32

2005-05-17 Thread Vladimir Lipsky
parrot (r8016): no change. hangs w/98% cpu. here's the -t output: parrot -t test_b.pasm 0 find_global P5, "_foo" - P5=SArray=PMC(0x7d5a50), 3 new P2, 18 - P2=PMCNULL, 6 find_method P0, P2, "thread3"- P0=PMCNULL, P2=ParrotThread=PMC(0x7d5a08), 10 new P6, 54 - P6=PMCN

Re: Pugs Windows binaries distribution

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 04:37:42PM +0200, Gr嶲oire P嶧n wrote: > First congrats for the advancement on implementing Perl 6, it's impressive. Thanks for your kind words! :-) > I'm the author of PXPerl, a Perl binary distribution for Windows. I > just released a new version, and I added Pugs to it >

Re: Pugs 6.2.3 released!

2005-05-17 Thread Nathan Gray
On Tue, May 17, 2005 at 08:21:33AM -0700, [EMAIL PROTECTED] wrote: > 1) Do you need parrot to install PUGS 6.2.3 on windows, or is parrot > optional? I believe parrot is still optional (at least, you can compile without embedded parrot). > 2) I mainly want to play with perl 6 rules. If someone c

Could not locate Inc.pm

2005-05-17 Thread Jovial Shah
Hi I am trying out coverage metrics for a perl script using Devel-Cover-0.53. When I run the script, with these parameters /opt/third-party/pkg/perl-5.6.1/bin/perl -I/workplace/workingDirectory/CodeCoverage/Devel-Cover-0.53/lib/ -MDevel::Cover ../SamplePerlProgram/cc-1.pl I get an error messa

Re: Closures and CALLER

2005-05-17 Thread Larry Wall
On Tue, May 17, 2005 at 01:01:48PM -0500, Rod Adams wrote: : Aaron Sherman wrote: : : >Ok, so log and log10: : > : >multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base); : >&log10<> := &log<>.assuming:base(10); : > : >What does log get in this case: : > : > for @x {

Re: Multiple colons

2005-05-17 Thread Larry Wall
On Wed, May 18, 2005 at 04:02:16AM +0800, Autrijus Tang wrote: : Hmm. How does this play with Larry's suggestion: : : I suppose one could even install a colon on the end of the return : type to request that explicitly. : : Does it mean that: : : multi sub foo(Foo: Bar: Baz:) returns

Re: Parrot as an extension language

2005-05-17 Thread jerry gay
On 5/17/05, Autrijus Tang <[EMAIL PROTECTED]> wrote: > On Tue, May 17, 2005 at 05:31:32PM +0100, Colin Paul Adams wrote: > > I take it SS stands for String-to-String? > > Yes. "PPC" would stand for PMC -> PMC -> String, i.e. take two PMCs > and returns a String. > of course, you meant PPS here,

Re: Parrot as an extension language

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 05:31:32PM +0100, Colin Paul Adams wrote: > I take it SS stands for String-to-String? Yes. "PPC" would stand for PMC -> PMC -> String, i.e. take two PMCs and returns a String. > Which section within http://www.parrotcode.org/docs/ covers this sort > of thing? `perldoc ex

Re: Nested captures

2005-05-17 Thread Jonathan Scott Duff
On Tue, May 17, 2005 at 03:02:12PM -0400, Mark Reed wrote: > > > > On 2005-05-17 14:14, "Peter Haworth" <[EMAIL PROTECTED]> wrote:\ > > > > Does numbering of captures after an alternation continue as if the > > alternative with the most captures matched? > > > > # $1$1 $2$3, eve

Re: Multiple colons

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 02:45:58PM +, Luke Palmer wrote: > Just for the folks not following along on IRC, I don't think I implied > that. But Autrijus apparently inferred it :-). My apologies. It's a misparse on my part. > Anyway, there is no MMD whatsoever on the final level, so that: > >

[perl #35824] [TODO] Remove .cvsignore files

2005-05-17 Thread Bernhard Schmalhofer via RT
> [bernhard - Mo 16. Mai. 2005, 02:42:49]: > > > i. Migrate the changes in .cvsignore file into the svn:ignore property > Done. > > ii. Tell manicheck.pl to query the SVN properties t/src/manifest.t verifies that MANIFEST.SKIP is consistent with the svn:ignore properties. This make manicheck.pl

Re: Nested captures

2005-05-17 Thread Mark Reed
On 2005-05-17 14:14, "Peter Haworth" <[EMAIL PROTECTED]> wrote:\ > > Does numbering of captures after an alternation continue as if the > alternative with the most captures matched? > > # $1$1 $2$3, even if (a) matched > rx/ [ (a) | (b) (c) ] (d) /; I thought that was still l

Re: Multiple colons

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 07:26:54AM -0700, Larry Wall wrote: > It does seem that the signature that provides more information should > be "rewarded" for that somehow. Maybe it's most useful if non-invocant > args (or non-invocant-YET args, in this case) are just considered to > be at "Any" distance

Re: Nested captures

2005-05-17 Thread Peter Haworth
On Mon, 09 May 2005 22:51:53 +1000, Damian Conway wrote: > # Perl 6... ># $1 $2$3 $4$5 $6 > $tune_up6 = rx/ (don't) (ray) (me) (for) (solar tea), (d'oh!) ># $1 $2 $3$4$5 >| (every) (

Re: Closures and CALLER

2005-05-17 Thread Rod Adams
Aaron Sherman wrote: Ok, so log and log10: multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base); &log10<> := &log<>.assuming:base(10); What does log get in this case: for @x { log10(); } Does the curried log10 execute the defaulting for the

Re: Quick question: '1.28' * '2.56'

2005-05-17 Thread Larry Wall
On Tue, May 17, 2005 at 09:04:19PM +0800, Autrijus Tang wrote: : Imagine: : : pugs> '1.28' * '2.56' : 3.2768 : : What is (or should be) going on here here? : : [1] role NumRole { : method infix:<*> returns Num (NumRole $x, NumRole $y: ) { ... } : } : Str.does(NumRole); : :

Closures and CALLER

2005-05-17 Thread Aaron Sherman
Is it a bad sign that I'm still on the first section of S29, getting up to speed? Sigh... I'll get there, really. This is another question from my reading this morning. Ok, so log and log10: multi sub Math::Basic::log (: Num ?$x = $CALLER::_, Num +$base); &log10<> := &log<>.assu

Re: Parrot as an extension language

2005-05-17 Thread Jeff Horwitz
On 17 May 2005, Colin Paul Adams wrote: > Actually, examples in any language are fine. > I'm actually writing in Eiffel, but I shall use an interface generator > to automatically build low-level bridging classes from the C header > files. > I intend to make it available as a general extension mech

Re: multi sub and invocants (related to colon question from earlier)

2005-05-17 Thread Luke Palmer
On 5/17/05, Aaron Sherman <[EMAIL PROTECTED]> wrote: > Let's say that that's true. You can certainly still end up in conflict: > > class A {...} > my A $a = A.new() but role { method x() {...} } > eval 'multi sub x(A $i:) {...}'; > > Now, the eval should work because A has

Re: Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: >> Why's that a but? Haskell's a good language. Jeff> no argument there -- just assumed you were looking for Jeff> examples in C! :) Actually, examples in any language are fine. I'm actually writing in Eiffel, but I shall use

Re: Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes: Autrijus> You may wish to use Parrot_call_sub's "SS" form, where Autrijus> you pass in a string and get back a string. I take it SS stands for String-to-String? Which section within http://www.parrotcode.org/docs/ covers this

multi sub and invocants (related to colon question from earlier)

2005-05-17 Thread Aaron Sherman
There's some ambiguity in A/S 6 that I wanted to ask about. A6 says: Ordinary subs never have an invocant. If you want to declare a non-method subroutine that behaves as a method, you should declare a submethod instead. But S6 changes that without fully explaining itself:

Re: Pugs 6.2.3 released!

2005-05-17 Thread Grégoire Péan
Hi, No, Pugs is stand alone. No need for Parrot. A pugs.exe file is produced by the Haskell compiler; it has no dependencies except the provided libs. Regards, Grégoire On 17 May 2005 08:27:26 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I just asked a question about installing 6.2.3 on

Re: Pugs 6.2.3 released!

2005-05-17 Thread [EMAIL PROTECTED]
I just asked a question about installing 6.2.3 on windows. This may have been addressed by Gregoire Pean's installer, which he just mentioned in a simultaneous post. http://groups-beta.google.com/group/perl.perl6.compiler/browse_frm/thread/a28bef89de27ef42?hl=en I'm going to go try this out.

Re: Pugs 6.2.3 released!

2005-05-17 Thread [EMAIL PROTECTED]
1) Do you need parrot to install PUGS 6.2.3 on windows, or is parrot optional? 2) I mainly want to play with perl 6 rules. If someone could point me to some simple programs that demonstrate perl 6 rules with pugs, that would be great. Sorry if this has been covered somewhere else; I am new to th

Re: Multiple colons

2005-05-17 Thread TSa (Thomas Sandlaß)
Autrijus Tang wrote: So does it mean that a "3-story" multisub with two colons will always win against one with one colon? multi sub foo (Any $x: Str $y: Str $z, Str $w) { 1 } multi sub foo (Str $x, Str $y: Str $z, Str $w) { 2 } say foo("x", "y", "z", "w"); # 1 Is the final level ($z an

Re: Remove .cvsignore?

2005-05-17 Thread Juergen Boemmels
On Friday 13 May 2005 18:55, Bernhard Schmalhofer wrote: > Juergen Boemmels schrieb: > >Hello, > > > >In the current SVN repository are 76 .cvsignore files. In SVN they aren't > > used any more. SVN uses the property 'svn:ignore' on a directory instead. > > > >During the cvs => svn transition the s

Re: Multiple colons

2005-05-17 Thread Luke Palmer
On 5/17/05, Larry Wall <[EMAIL PROTECTED]> wrote: > On Tue, May 17, 2005 at 10:10:22PM +0800, Autrijus Tang wrote: > : Is the final level ($z and $w) participating in the MMD at all > : as tiebreakers? Luke mentioned that in all levels but the final > : one, Manhattan distance (sum of inheritance

Re: Parrot as an extension language

2005-05-17 Thread Jeff Horwitz
On 17 May 2005, Colin Paul Adams wrote: > Jeff> also have a look at the mod_parrot source > Jeff> (http://www.smashing.org/mod_parrot), which is one of the > Jeff> few apps embedding parrot at the moment. the other is pugs > Jeff> (http://www.pugscode.org), but it's written in has

Re: [perl #35450] Null pointer dereference in classes/sub.pmc

2005-05-17 Thread Leopold Toetsch
Adrian Taylor <[EMAIL PROTECTED]> wrote: > Hi Leo, > OK, you've confused me now :-) You're getting the same results as me > (which I also get with the latest parrot, shown below). I had missed that Parrot is run anyway. Should be fixed now as of Parrot rev 8110. leo

Re: Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: Jeff> you'll probably want to use the Parrot_call_sub_* API to Jeff> call individual subroutines and get return values. "perldoc Jeff> extend.c" in the parrot source for more info. you might Thanks - I'll take a look at that.

Pugs Windows binaries distribution

2005-05-17 Thread Grégoire Péan
Hi, First congrats for the advancement on implementing Perl 6, it's impressive. I'm the author of PXPerl, a Perl binary distribution for Windows. I just released a new version, and I added Pugs to it (http://pixigreg.com/?pxperl). I have clearly mentioned in several places of PXPerl that Pugs is

Re: Multiple colons

2005-05-17 Thread Larry Wall
On Tue, May 17, 2005 at 10:10:22PM +0800, Autrijus Tang wrote: : On Tue, May 17, 2005 at 07:00:23AM -0700, Larry Wall wrote: : > On Tue, May 17, 2005 at 01:50:48PM +, Luke Palmer wrote: : > : Is that still the case? I don't recall us getting rid of it, but it : > : doesn't seem to be documente

Re: Quick question: '1.28' * '2.56'

2005-05-17 Thread TSa (Thomas Sandlaß)
Autrijus Tang wrote: Imagine: pugs> '1.28' * '2.56' 3.2768 What is (or should be) going on here here? My personal favorite is [5] none of the above -- that should be a type error. ;) But only if MMD doesn't find a unique handler. That is I would favor 'type error' =:= 'no handler || ambiguo

Re: Parrot as an extension language

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 03:00:14PM +0100, Colin Paul Adams wrote: > But when I look at http://www.parrotcode.org/docs/embed.html, I can > see no way of getting information back from the script - not even an > exit code. Is there anyway of doing this that I have missed? You may wish to use Parrot_c

Re: Parrot as an extension language

2005-05-17 Thread Jeff Horwitz
you'll probably want to use the Parrot_call_sub_* API to call individual subroutines and get return values. "perldoc extend.c" in the parrot source for more info. you might also have a look at the mod_parrot source (http://www.smashing.org/mod_parrot), which is one of the few apps embedding parro

Re: Multiple colons

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 07:00:23AM -0700, Larry Wall wrote: > On Tue, May 17, 2005 at 01:50:48PM +, Luke Palmer wrote: > : Is that still the case? I don't recall us getting rid of it, but it > : doesn't seem to be documented in the AES. > > We didn't get rid of it. So does it mean that a "3-

Re: Multiple colons

2005-05-17 Thread Larry Wall
On Tue, May 17, 2005 at 01:50:48PM +, Luke Palmer wrote: : Hey grep { !/Luke/ } @Larry, : : multi foo(Foo, Bar: Baz); # manhattan on Foo and Bar : multi foo(Foo: Bar: Baz); # leftmost on Foo and Bar : wtf? : multiple colons? : : Is that still the case? I don't r

Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
Hello, I am writing an XSLT 2.0 processor, and I want to give users the option to write their own message and error handling routines and the like in their favourite scripting language. So I thought of using parrot. But when I look at http://www.parrotcode.org/docs/embed.html, I can see no way of

Multiple colons

2005-05-17 Thread Luke Palmer
Hey grep { !/Luke/ } @Larry, multi foo(Foo, Bar: Baz); # manhattan on Foo and Bar multi foo(Foo: Bar: Baz); # leftmost on Foo and Bar wtf? multiple colons? Is that still the case? I don't recall us getting rid of it, but it doesn't seem to be documented in the AES.

Re: Quick question: '1.28' * '2.56'

2005-05-17 Thread Luke Palmer
On 5/17/05, Rob Kinyon <[EMAIL PROTECTED]> wrote: > > Maybe s/Num/NumLike/ or something? Anyway, that's how I think of it > > at least: not that a Str is converted into a Num, but rather that > > certain Strs are Nums. > > If that's the case, then if I change a variable that isa Str (that isa > N

Re: Quick question: '1.28' * '2.56'

2005-05-17 Thread Rob Kinyon
> Maybe s/Num/NumLike/ or something? Anyway, that's how I think of it > at least: not that a Str is converted into a Num, but rather that > certain Strs are Nums. If that's the case, then if I change a variable that isa Str (that isa Num), does it change what it inherits from? Rob

Re: Quick question: '1.28' * '2.56'

2005-05-17 Thread Luke Palmer
On 5/17/05, Autrijus Tang <[EMAIL PROTECTED]> wrote: > Imagine: > > pugs> '1.28' * '2.56' > 3.2768 > > What is (or should be) going on here here? > ... > [6] something else? I still don't quite have a handle on the object system. Maybe: subtype Num of Str where /^ $/; ? Maybe s/

Quick question: '1.28' * '2.56'

2005-05-17 Thread Autrijus Tang
Imagine: pugs> '1.28' * '2.56' 3.2768 What is (or should be) going on here here? [1] role NumRole { method infix:<*> returns Num (NumRole $x, NumRole $y: ) { ... } } Str.does(NumRole); [2] multi sub infix:<*> (Str $x, Str $y) returns Num { ... } [3] multi sub prefix:<+>

Re: not 4,3,2,1,0;

2005-05-17 Thread Juerd
Larry Wall skribis 2005-05-17 1:24 (-0700): > : How about is context(Item) versus is context(Slurpy). :) > I've been kind of leaning towards Item lately for the Any type, but > the other one could just be whatever we end up calling lazy lists, > which is probably not Slurpy. Well, slurping and st

Re: not 4,3,2,1,0;

2005-05-17 Thread Larry Wall
On Tue, May 17, 2005 at 02:42:43PM +0800, Autrijus Tang wrote: : On Mon, May 16, 2005 at 04:06:15PM -0700, Larry Wall wrote: : > That's : > : > sub not (*args is context(Scalar)) : > : > or whatever we end up calling the Any/Scalar type. : : How about is context(Item) versus is context(Slurp