On Sat, Mar 12, 2005 at 03:14:33PM +0800, Autrijus Tang wrote:
: Oh, btw, is there some more documents for the &statement:<> level
: parsing and handling somewhere, or at least a general overview of
: how those things are defined? :)
Below is an excerpt of something I sent Patrick last month that
theUser BL <[EMAIL PROTECTED]> wrote:
> But I see two problems:
> 1. the license
I can't comment on that, IANAL.
> 2. Parrot is written by Perl-people for Perl
No, definitely not. I'm for example just an occasional Perl user.
> I think it would be better, if there existing a group of 2 Perl pe
Nicholas Clark <[EMAIL PROTECTED]> wrote:
>==30847== Invalid read of size 1
>==30847==at 0x1B904AE0: memcpy (mac_replace_strmem.c:285)
>==30847==by 0x80E36D2: mmd_expand_x (mmd.c:430)
Yeah, that seems to be it. But I've no clue yet, why there's a
difference here with gcc 3.3.3 - I can't se
[ shoud have gone to the list probaby ]
Original Message
Subject: Re: Another task for the interested - t/pmc/pmc.t
Date: Sat, 12 Mar 2005 07:50:04 +0100 (CET)
From: Steven Schubiger <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
On 9 Mar, Leopold Toetsch wrote:
The test file t/pmc/pm
Aldo Calpini <[EMAIL PROTECTED]> wrote:
> Leopold Toetsch wrote:
> > 1) ICU should be optional
> >
> > If configured --without-icu the Makefile shouldn't contain ICU stuff,
> > and function calls to ICU (mainly in string_primitives) should be
> > wrapped inside #if PARROT_HAS_ICU.
> I'm gonna take
Using Ken's ExtUtils::CBuilder, wrapped in an eval block in case it barfs,
I've added a utility function to MakeMaker::Test::Utils to check if there
is a compiler suitable for XS builds. You can see this used in t/xs.t in
the repository.
http://svn.schwern.org/svn/CPAN/ExtUtils-MakeMaker/trunk/t/x
Hola,
Object::Realize::Later and friends in perl5 get the job done, but
have many caveats.
Will there be a mechanism to provide a way to do inplace replacement
of an object's, err, thingyness (class, data), without losing it's
identity?
I would like a way to transpose objects between classes in
An old exegesis says that ~ is "foo bar". It was still _('foo',
'bar') back then, though. This behaviour I couldn't find in the
Synopses, but it wouldn't be the first time I completely overlook
important information while looking for it.
I think having it stringify as "foobar" is more useful, beca
Juerd skribis 2005-03-12 20:32 (+0100):
> My gut prefers that both scalar reverse LIST and ~LIST join LIST on ''.
scalar reverse LIST probably returns an arrayref.
I meant ~reverse LIST, which should probably do ~LIST at some point
instead of join($sep, LIST), for consistency, and my request is t
I have tried gcc 3.2 and gcc 3.4 and these both fail the same tests.
I then tried gcc 2.72 and this also fails make test.
./parrot parrot-config.imc VERSION DEVEL
make: *** [runtime/parrot/include/config.fpmc] Segmentation fault
(core dumped)
make: *** Deleting file `runtime/parrot/include/config
On Sat, Mar 12, 2005 at 21:21:23 +0200, Yuval Kogman wrote:
> Hola,
>
> Object::Realize::Later and friends in perl5 get the job done, but
> have many caveats.
FYI, Juerd told me how to clean this up with Data::Swap (err,
Data::Alias) more cleanly in perl 5.
Thanks!
--
() Yuval Kogman <[EMAIL
On Sat, Mar 12, 2005 at 08:37:52PM +0100, Juerd wrote:
: Juerd skribis 2005-03-12 20:32 (+0100):
: > My gut prefers that both scalar reverse LIST and ~LIST join LIST on ''.
:
: scalar reverse LIST probably returns an arrayref.
:
: I meant ~reverse LIST, which should probably do ~LIST at some poin
Hello Pugs developers!
I tried to compile Pugs 6.0.10 with ghc 6.4 and got some error
messages. Fortunately they were not hard to resolve. I had to
do the following:
- remove getEnvironment from src/Posix.hs (it collided with
System.Environment.getEnvironment).
- not import the ful
Larry Wall skribis 2005-03-12 12:26 (-0800):
> Well, we thrashed that one around a lot at one of our meetings, and
> the general consensus was that array interpolation and the default
> stringification of arrays should probably work the same for consistency.
> (Likewise for hashes.) And that the d
%foo
is really
%foo{'bar'}
and
:foo
is actually
:foo('bar')
naturally,
:foo, 'baz'
is
:foo('bar'), 'baz'
but is
reverse, 'baz'
then
reverse('bar'), 'baz'
? And if that is so, then is
reverse , 'baz'
any different?
Juerd
--
http://convolutio
Juerd wrote:
Larry Wall skribis 2005-03-12 12:26 (-0800):
And arguably, the current structure of join is that the delimiter is
the invocant, so cat should be defined as
''.join(@foo)
This is what Python does. It does not make any sense to me, and I can't
wrap my mind around it at all. R
This may be just a minor issue but ...
If you have committed to Pugs and doesn't see their name in the
distro's AUTHORS file, you should add yourself.
That makes it easier to know at a glance everyone who is involved.
Likewise, if anyone has not actually committed but you know they
provided sign
On 14.Feb.2005 09:01PM -0800, chromatic wrote:
> Here's my list of suggestions for each:
>
> 1) label, description
> 2) directive, instruction
> 3) diagnostic
>
> I want to avoid the word "comment" altogether, making the
> optionalness of #1 and #3 evident in their words, the
> activeness of #2
Without introduction, I'll just present the syntax idea:
f/%03d %15s/$foo, $bar/;
This gives s?printf to any expression with short and concise syntax,
making printf redundant, which means I won't even have to start a
discussion about sayf :)
printf "%03d %15s", $foo, $bar;
vs
print
darcs [1] is slow in a few places, and I'm working on benchmarking tool
in Perl to help monitor the performance. I'm got some questions about
the best way to proceed.
1. http://www.darcs.net/
So far: I've divided the task into a couple specific problems:
A. What repos to use for testing?
B. A
On 30.Nov.2004 09:57AM -0600, Andy Lester wrote:
>plan tests => 14, have( "Foo::Wango" ), moon_phase eq "waning", etc;
Where does the reason fit into this syntax?
--
Ian Langworth
Project Guerrilla
Northeastern University
College of Computer and Information Science
On Sat, Mar 12, 2005 at 11:02:45PM +, Mark Stosberg wrote:
> My solution?
>
> my $out = `time $bin diff 1/1 2>&1`;
>
># XXX Parsing of time output may be fragile
>$out =~ m/\s*([\d\.]*\s+real.*)/;
>
> Ouch.
>
> Perhaps my whole approach is wrong. Am I overlooking a good open sou
On Sat, Mar 12, 2005 at 09:40:46PM +0100, Juerd wrote:
: %foo
:
: is really
:
: %foo{'bar'}
:
: and
: :foo
:
: is actually
:
: :foo('bar')
But it's not--it's actually
:foo{'bar'}
What's happening is that :foo is using the subscript syntax oddly.
: naturally,
:
: :f
Juerd wrote:
Without introduction, I'll just present the syntax idea:
f/%03d %15s/$foo, $bar/;
This gives s?printf to any expression with short and concise syntax,
making printf redundant, which means I won't even have to start a
discussion about sayf :)
printf "%03d %15s", $foo, $bar;
vs
Rod Adams skribis 2005-03-12 17:41 (-0600):
> Why not just rename C< sprintf > to C< format > and ditch printf and sayf?
Because format is almost as much typing as sprintf, and in many
circumstances needs both parens and quotes:
format("%03d %15s", $foo, $bar), $baz, ...
compared to
f/%
Juerd <[EMAIL PROTECTED]> wrote:
> Without introduction, I'll just present the syntax idea:
>
> f/%03d %15s/$foo, $bar/;
>
> Of course, this is s///-like in quoting behaviour, so f[][] or f"""
> should work just as well. The RHS is not a string, but parsed as an
> expression in list context.
On Sat, Mar 12, 2005 at 11:57:39PM +0100, Juerd wrote:
: Without introduction, I'll just present the syntax idea:
:
: f/%03d %15s/$foo, $bar/;
:
: This gives s?printf to any expression with short and concise syntax,
: making printf redundant, which means I won't even have to start a
: discuss
Brent 'Dax' Royal-Gordon skribis 2005-03-12 15:51 (-0800):
> Besides, I think "as" will do just fine, especially since you can now
> interpolate method calls as well. You can even do something like this
> if you want to perform bulk formatting:
> say join ' ', ($n1, $n2, $n3) >>.as('%d');
> Or
Larry Wall skribis 2005-03-12 15:55 (-0800):
> Well, we do already have:
> print $foo.as('%03d'), $bar.as('%15s')
> which works on interpolated values as well. It als puts the variable
> name out front, since the name is more important than the pattern in
> most cases.
It puts the variable na
On Sat, Mar 12, 2005 at 03:13:37PM -0600, Rod Adams wrote:
: Obviously this can't happen for everything, but for the builtin methods
: and classes, I don't see a penalty for supporting both forms. Consider:
:
:$str.split($rule);
:$rule.split($str);
:
: I can see using both of those. But
On Sat, Mar 12, 2005 at 09:21:23PM +0200, Yuval Kogman wrote:
: Hola,
:
: Object::Realize::Later and friends in perl5 get the job done, but
: have many caveats.
:
: Will there be a mechanism to provide a way to do inplace replacement
: of an object's, err, thingyness (class, data), without losing
On Sun, Mar 13, 2005 at 12:58:50AM +0100, Juerd wrote:
: I'm really getting the feeling I'm the only one who uses sprintf because
: it *separates* and lets you write complex things on one simple line.
: That, and I use it a lot in one liners.
Then you should feel much better after you read my mess
Juerd wrote:
Rod Adams skribis 2005-03-12 17:41 (-0600):
Why not just rename C< sprintf > to C< format > and ditch printf and sayf?
Because format is almost as much typing as sprintf, and in many
circumstances needs both parens and quotes:
format("%03d %15s", $foo, $bar), $baz, ...
compa
Larry Wall wrote:
I don't see that this buys us anything over just shortening "sprintf"
to something shorter, like:
print as '%03d %15s', $foo, $bar;
And your argument list falls out naturally from making "as" a listop.
Plus it naturally lets you say other "as-ly" things:
print as MyBigInt, $
Larry Wall wrote:
I don't see that this buys us anything over just shortening "sprintf"
to something shorter, like:
print as '%03d %15s', $foo, $bar;
And your argument list falls out naturally from making "as" a listop.
Plus it naturally lets you say other "as-ly" things:
print as MyBigInt, $
I'm trying to come up to speed with a lot of things, including
subversion, which I've not used before (haven't used cvs either).
I'm eager not to stuff anything up. Also, this note might help
other newbies in future.
After installing svn 1.1.3 on Linux, I issued the command:
svn checkout http://s
Andrew Savige writes:
> # pwd
> /home/andrew/mypugs/examples
> # ls -l golf
> total 28
> -rwxr-xr-x 1 andrew andrew 47 Mar 13 11:14 head.p6
> -rwxr-xr-x 1 andrew andrew 91 Mar 13 11:14 mid.p6
> -rwxr-xr-x 1 andrew andrew 70 Mar 13 11:14 rev.p6
> -rwxr-xr-x 1 andrew andrew 96 Mar 13 11:1
Are the following all legal and equivalent?
for 1..10 -> $a, $b { say $a, $b };
for 1..10 { say $^a, $^b };
sub foo ($a, $b) { say $a, $b };
for 1..10 &foo;
What happens with:
for 1..10 -> [EMAIL PROTECTED] { say @a };
-- Rod Adams
Rod Adams writes:
> Are the following all legal and equivalent?
>
>for 1..10 -> $a, $b { say $a, $b };
>
>for 1..10 { say $^a, $^b };
>
>sub foo ($a, $b) { say $a, $b };
>for 1..10 &foo;
Almost. The last one should be:
for 1..10, &foo;
> What happens with:
>
>for 1.
Luke Palmer wrote:
Rod Adams writes:
Are the following all legal and equivalent?
for 1..10 -> $a, $b { say $a, $b };
for 1..10 { say $^a, $^b };
sub foo ($a, $b) { say $a, $b };
for 1..10 &foo;
Almost. The last one should be:
for 1..10, &foo;
Doh! I knew that.
What happens
On Sun, Mar 13, 2005 at 01:01:39AM +0100, Juerd wrote:
: It puts the variable name out front, which is great, but it also puts
: the second variable name a the way to the right, after the line
: noise.
print $foo.as('%03d'),
$bar.as('%15s');
Larry
Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote:
> Besides, I think "as" will do just fine, especially since you can now
> interpolate method calls as well. You can even do something like this
> if you want to perform bulk formatting:
>
> say join ' ', ($n1, $n2, $n3) >>.as('%d');
What ab
Matt Diephouse wrote:
Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote:
Besides, I think "as" will do just fine, especially since you can now
interpolate method calls as well. You can even do something like this
if you want to perform bulk formatting:
say join ' ', ($n1, $n2, $n3) >>.as('%
Ian Langworth wrote:
> On 30.Nov.2004 09:57AM -0600, Andy Lester wrote:
>
>
>> plan tests => 14, have( "Foo::Wango" ), moon_phase eq "waning", etc;
>
>
> Where does the reason fit into this syntax?
well, this syntax doesn't exist in Test::More at the moment (though I
probably should get ar
On 12.Mar.2005 11:41PM -0500, Geoffrey Young wrote:
> nevertheless, what you are replying to was just a discussion
> about a feature that doesn't exist in the standard Test::More
> toolkit but was brought up because Apache-Test's plan() works
> a bit differently and there are enough people who lik
On Sat, Mar 12, 2005 at 09:38:57PM +0100, Edwin Steiner wrote:
> I tried to compile Pugs 6.0.10 with ghc 6.4 and got some error
> messages. Fortunately they were not hard to resolve. I had to
> do the following:
Hi. Unfortunately we have already fixed this in the trunk,
so 6.0.11, due out today,
Barring objections, I'm going to attempt to compile a S29.
Plan of attack:
I'm using a recent copy of Perl 5's perlfunc as a very rough template.
At some point, I'll drudge through the A's and S's to look for functions
new to Perl 6. I'll try not to make up too many new ones on my own, but
I'll
47 matches
Mail list logo