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(Slurpy). :)
Also, shouldn't the *args there be [EMAIL PROTECTED] Is it really okay
to
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(Slurpy).
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 steam
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:+ (Str
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 /^ number $/;
?
Maybe
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
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
Num), does
Hey grep { !/Luke/ } @Larry,
luquimulti foo(Foo, Bar: Baz); # manhattan on Foo and Bar
luquimulti foo(Foo: Bar: Baz); # leftmost on Foo and Bar
autrijus wtf?
autrijus multiple colons?
Is that still the case? I don't recall us getting rid of it, but it
doesn't seem to
On Tue, May 17, 2005 at 01:50:48PM +, Luke Palmer wrote:
: Hey grep { !/Luke/ } @Larry,
:
: luquimulti foo(Foo, Bar: Baz); # manhattan on Foo and Bar
: luquimulti foo(Foo: Bar: Baz); # leftmost on Foo and Bar
: autrijus wtf?
: autrijus multiple colons?
:
: Is that
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-story
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
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 parrot
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
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 ||
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 documented
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
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.
Jeff
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
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 haskell.
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
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 svn:ignore
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 and $w)
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
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.
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
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
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 sort
of
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 an
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 no x
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
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 :=
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);
:
:
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 sub
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)
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 when
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 like
[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 real
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:
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, even if (a) matched
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
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, but i can't
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:)
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 {
:
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
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:
#
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:
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
On Tue, May 17, 2005 at 04:37:42PM +0200, Groire Pn 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
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 -
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
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 sub
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
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
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
54 matches
Mail list logo