Jeff Horwitz wrote:
[ mmd test code ]
the pmc version of bar() is never called, even when passing a PMC.
This is fixed now. A differing argument count had a too low distance
penalty. But please note that the MMD system still has no clue what is
an invocant and what a plain call argument bec
Juerd wrote:
An array in scalar context evaluates to a reference to itself.
A hash in scalar context evaluates to a reference to itself.
An array in list context evaluates to a list of its elements.
A hash in list context evaluates to a list of its elements (as pairs).
Array context is a scal
"TSa (Thomas Sandlaß)" skribis 2005-05-25 10:47 (+0200):
> I have understand what you mean and how you---and other p6l'er---
> derive [EMAIL PROTECTED] == 1 from @a = [1,2,3]. But allow me to regard this
> as slightly inconsistent, asymmetric or some such.
If you STILL don't understand that it has
On Wed, May 25, 2005 at 01:29:51PM +0800, [EMAIL PROTECTED] wrote:
> hi
>
> python on parrot already have not develop?
That question doesn't make sense as is - I think it lost something in
translation. By "develop" did you mean "developers" (humans) or "development"
(as in a sense
Luke Palmer <[EMAIL PROTECTED]> writes:
> On 5/6/05, J Matisse Enzer <[EMAIL PROTECTED]> wrote:
>> I've become scared that if Perl is to continue to be viable for large,
>> complex, multi-developer projects that the tools need to serious
>> catch-up with what is available for Java, for example. Th
> However, I'm completely unfamiliar with the .spork format, and I'm
> fraid of what google will tell me it is.
Spork is 'slide presentation (only really kwiki)'.
What it does is let you write slides in a kwiki like language.
A quick introduction would be to get it from the CPAN, do 'spork
-make
Adrian Taylor <[EMAIL PROTECTED]> writes:
> Hi,
>
> Over the weekend I added some tests on 'undef' behaviour
> (t/builtins/undef.t):
>
> These behave as expected:
>
> eval_is('undef * 2', undef, 'undef * 2');
That's not what I'd expect. I'd expect it to return 0 and throw a warning
about numifica
Piers Cawley wrote:
One of the 'mental apps' that's been pushing some of the things I've been
asking for in Perl 6's introspection system is a combined
refactoring/debugging/editing environment for the language. One of the
annoyances of the 'only perl can parse Perl' thing is not so much the trut
Juerd wrote:
If you STILL don't understand that it has nothing to do with
inconsistency or asymmetry, then please allow me to at this point give
up and stop trying to explain.
I would bewail that, because your explainations are very clear.
And it might appear different but I'm just trying to un
Hi,
I lost myself a few weeks ago, and still not found: I'm unable to compile
Pugs. On IRC, about a week ago, Autrijus helped me, but still not working
(but the light are closer).
I've Debian Sid (but a lot of things are from source, so it's not true),
GHC 6.4 compiled from source, Perl 5.8.
"TSa (Thomas Sandlaß)" skribis 2005-05-25 13:53 (+0200):
> >>%a = ( a => 1, b => 2, c => 3 ) # @a = (1,2,3)
> >HASH = THREE PAIRS
> I look at it as &infix:{'='}:( Hash, List of Pair : --> Ref of Hash )
> and then try to understand how it behaves. BTW, I'm neither sure
> of the type of the second i
Aaron Sherman <[EMAIL PROTECTED]> writes:
> On Wed, 2005-05-18 at 10:51, Luke Palmer wrote:
>
>> Except that mixins like this always treat things as "virtual".
>> Whenever you mixin a role at runtime, Perl creates an empty, anonymous
>> subclass of the current class and mixes the role in that cla
The OrderedHash PMC provides indexed access by a (string) key as well as
indexed access by insertion order. It's currently implemented as an hash
holding the index value into the data array.
The problem is of course deleting items (and adding items w/o string
key). The former is done by storing
[EMAIL PROTECTED] wrote:
> I distinctly get the impression that I'm on of the few dumb Americans
> participating in all this. So far, there hasn't been a single
> English-language
> presentation offered.
Dan Sugalski posted some slides he presented last August:
http://www.sidhe.org/~dan/prese
On Tue, May 24, 2005 at 11:24:50PM -0400, Jeff 'japhy' Pinyan wrote:
> I wish was allowed. I don't see why has to be confined
> to zero-width assertions.
I don't either actually. One thing that occurred to me while responding
to your original email was that might have slightly wrong
huffmaniz
src/list.c is the base for several array-ish PMC inside classes. But
it's mostly outdone by other PMCs like ResizableIntegerPMC.
OTOH it has some features which are not covered by other array classes:
- implementation of splice, shift, unshift, ...
- chunked allocation with (limited) support for
thanks, applied (r8164)
On 5/24/05, Vladimir Lipsky <[EMAIL PROTECTED]> wrote:
> > I notice that building with Perl 5.6.1 (on Win32 with Perl 5.6.1
> > ActiveState-build 635 and MinGW) causes problem.
> >
> > $ parrot
> > Assertion failed: (int)io->image->bufused >= 0, file src/pmc_freeze.c,
> >
On Wed, May 25, 2005 at 02:44:47PM +0200, BÁRTHÁZI András wrote:
>
> I've Debian Sid (but a lot of things are from source, so it's not true),
> GHC 6.4 compiled from source, Perl 5.8.6 (from source), Parrot 0.2.0 devel
> r8065, and Pugs the latest from SVN.
>
> If I try to link Pugs with Parrot
Juerd wrote:
If assigning a ref to a hash uses the hashref's elements, then the same
is to be expected for an array.
Same feeling here. But I would let the array concede.
Because this behaviour is unwanted for
arrays (because you then can't assign a single arrayref anymore without
doubling t
Jonathan Scott Duff wrote:
On Tue, May 24, 2005 at 11:24:50PM -0400, Jeff 'japhy' Pinyan wrote:
I wish was allowed. I don't see why has to be confined
to zero-width assertions.
I don't either actually. One thing that occurred to me while responding
to your original email was that might h
Autrijus Tang <[EMAIL PROTECTED]> writes:
> So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build):
>
> use Digest--perl5;
>
> my $cxt = Digest.SHA1;
> $cxt.add('Pugs!');
>
> # This prints: 66db83c4c3953949a30563141f08a848c4202f7f
> say $cxt.hexdigest;
>
> This i
[1,2,3] is not an array or a list. It is a reference to an anonymous array.
It is not 3 values; it¹s 1 value, which happens to point to a list of size
3. If you assign that to an array via something like @a = [1,2,3], I would
expect at least a warning and possibly a compile-time error.
If it do
On May 25, Jonathan Scott Duff said:
On Tue, May 24, 2005 at 11:24:50PM -0400, Jeff 'japhy' Pinyan wrote:
I wish was allowed. I don't see why has to be confined
to zero-width assertions.
I don't either actually. One thing that occurred to me while responding
to your original email was that
On May 25, 2005, at 5:39 AM, Piers Cawley wrote:
One of the 'mental apps' that's been pushing some of the things I've
been
asking for in Perl 6's introspection system is a combined
refactoring/debugging/editing environment for the language.
Maybe I have been reading too much about Smalltalk me
On May 25, Mark A. Biggar said:
Jonathan Scott Duff wrote:
On Tue, May 24, 2005 at 11:24:50PM -0400, Jeff 'japhy' Pinyan wrote:
I wish was allowed. I don't see why has to be confined to
zero-width assertions.
I don't either actually. One thing that occurred to me while responding
to your
At 3:34 PM +0200 5/25/05, Leopold Toetsch wrote:
The OrderedHash PMC provides indexed access by a (string) key as
well as indexed access by insertion order. It's currently
implemented as an hash holding the index value into the data array.
The problem is of course deleting items (and adding item
Jeff 'japhy' Pinyan wrote:
On May 25, Mark A. Biggar said:
Jonathan Scott Duff wrote:
On Tue, May 24, 2005 at 11:24:50PM -0400, Jeff 'japhy' Pinyan wrote:
I wish was allowed. I don't see why has to be
confined to zero-width assertions.
I don't either actually. One thing that occurred
Is [EMAIL PROTECTED] the correct way to get a hash slice using elements of an
array?
(it's giving me a compilation error with pugs)
Cheers,
Carl
On Wed, May 25, 2005 at 05:00:39PM +0100, Carl Franks wrote:
> Is [EMAIL PROTECTED] the correct way to get a hash slice using elements of
> an array?
Yep.
> (it's giving me a compilation error with pugs)
Works just fine for me. What version of pugs are you using? Perhaps
you need to upgrade.
Autrijus Tang wrote:
So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build):
use Digest--perl5;
my $cxt = Digest.SHA1;
$cxt.add('Pugs!');
# This prints: 66db83c4c3953949a30563141f08a848c4202f7f
say $cxt.hexdigest;
This includes the "Digest.pm" from Perl 5.
On 5/25/05, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote:
> Works just fine for me. What version of pugs are you using? Perhaps
> you need to upgrade.
Ok, I've just realised I had missed a '->' to '.' in my perl5 to perl6
conversion,
I was trying to do
[EMAIL PROTECTED] = $obj->list;
I wasn't
On 5/9/05, jerry gay <[EMAIL PROTECTED]> wrote:
> much better! one failing test now...
my initial exuberance was unfounded. one test fails in
t/pmc/threads.t, but hundreds fail in the rest of the test suite. it
seems this line (from above) is the culprit:
> -# ifdef _MCS_VER1
> +# ifdef _MCS_VE
On 5/25/05, Deborah Pickett <[EMAIL PROTECTED]> wrote:
> I'm afraid that because of the dynamic parse/execute nature of Perl, it
> may be a theoretically intractable problem to parse Perl safely.
Yep. It's not really possible for the parser to distinguish between:
BEGIN {
%main::{'&
Autrijus Tang wrote:
So, this now works in Pugs with (with a "env PUGS_EMBED=perl5" build):
use Digest--perl5;
my $cxt = Digest.SHA1;
$cxt.add('Pugs!');
# This prints: 66db83c4c3953949a30563141f08a848c4202f7f
say $cxt.hexdigest;
This includes the "Digest.pm" from Perl 5. DBI.
TSa (Thomas Sandlaß) wrote:
You mean @a = [[1,2,3]]? Which is quite what you need for multi
dimensional arrays anyway @m = [[1,2],[3,4]] and here you use
of course @m[0][1] to pull out the 2. I'm not sure if this automatically
makes the array multi-dimensional to the type system though. That is
--- Rod Adams <[EMAIL PROTECTED]> wrote:
> TSa (Thomas Sandlaß) wrote:
>
> >
> > You mean @a = [[1,2,3]]? Which is quite what you need for multi
> > dimensional arrays anyway @m = [[1,2],[3,4]] and here you use
> > of course @m[0][1] to pull out the 2. I'm not sure if this
> automatically
> > mak
Austin Hastings wrote:
--- Rod Adams <[EMAIL PROTECTED]> wrote:
TSa (Thomas Sandlaß) wrote:
You mean @a = [[1,2,3]]? Which is quite what you need for multi
dimensional arrays anyway @m = [[1,2],[3,4]] and here you use
of course @m[0][1] to pull out the 2. I'm not sure if this
The Perl 6 Summary for the week ending 2005-05-24
Note to self: It's generally not a good idea to go installing Tiger on
the day you return from holiday. It's especially not a good idea to fail
to check that it didn't completely and utterly radish your Postfix
configuration. And you
(This post references the discussion at
http://www.perlmonks.org/?node_id=458728, particularly dragonchild's
response at the bottom.)
For those who don't know, cribbage is a game where each player has
access to 4 cards, plus a community card. Various card combinations
score points. The one in ques
Mark Reed skribis 2005-05-25 10:49 (-0400):
> [1,2,3] is not an array or a list. It is a reference to an anonymous array.
> It is not 3 values; it¹s 1 value, which happens to point to a list of size
Just for accuracy: it points to an array, which is still not a list in
our jargon.
> 3. If you a
On 2005-05-25 13:54, "Juerd" <[EMAIL PROTECTED]> wrote:
>> 3. If you assign that to an array via something like @a = [1,2,3], I would
>> expect at least a warning and possibly a compile-time error.
>>
>> If it does work, it probably gets translated into @a = ([1,2,3]), which
>
> That's not
Mark Reed skribis 2005-05-25 14:09 (-0400):
> > That's not a translation. Parens, when not postfix, serve only one
> > purpose: group to defeat precedence. $foo and ($foo) are always the same
> > thing, regardless of the $foo.
> So, you could then do this to make an array of size 3 in Perl6?
>
Juerd wrote:
Mark Reed skribis 2005-05-25 14:09 (-0400):
That's not a translation. Parens, when not postfix, serve only one
purpose: group to defeat precedence. $foo and ($foo) are always the same
thing, regardless of the $foo.
So, you could then do this to make an array of size 3 in
On Wed, May 25, 2005 at 01:38:27PM -0500, Rod Adams wrote:
> Or use
>
>@a <== 1,2,3;
I would just like to say that I like this idiom immensely.
my @foo <== 1, 2, 3;
reads extremely well to me, especially since I've always disliked the
usage of '=' as an operator with side effects. (I'm
# New Ticket Created by Dino Morelli
# Please include the string: [perl #35971]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=35971 >
I implemented unit testing for subrules. I added new code to
Parrot::Test::PGE which ac
On 5/25/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote:
> src/list.c is the base for several array-ish PMC inside classes. But
> it's mostly outdone by other PMCs like ResizableIntegerPMC.
>
> OTOH it has some features which are not covered by other array classes:
> - implementation of splice, shif
Hi,
Lookat your src/Pugs/pugs_config.h and make sure that the PUGS_HAS_PERL5 thing
is defined to 1. Also rm src/Pugs/Embed/Perl5.o and Perl5.hi before
continuing -- you may need to rm the other .o files that depend on it
too.
It helps for that error, but not for the other one. Still get this:
On Wed, 25 May 2005, [EMAIL PROTECTED] wrote:
hi
python on parrot already have not develop?
Hi there,
I'm not sure I understand your question either...
But maybe this will help?
http://pirate.tangentcode.com/
- Michal
http://withoutane.com/
jerry gay wrote:
On 5/25/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote:
i've added pop to ResizablePMCArray. i'll make sure the others are
added and move on to FixedPMCArray next.
Great, thanks. WRT fixed arrays - its a policy thing: do these map to
not resizable, not changable (Python tupl
Hi all,
So I'm still thinking about a generic
wrapper for python modules. I would like
to be able to recompile the python standard
library (and other libraries) to run on parrot
with only a few minor patches.
I realize this is probably completely foolish,
but I'm lazy, so... :)
I've done ex
On 5/25/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote:
> jerry gay wrote:
> > On 5/25/05, Leopold Toetsch <[EMAIL PROTECTED]> wrote:
>
> > i've added pop to ResizablePMCArray. i'll make sure the others are
> > added and move on to FixedPMCArray next.
>
> Great, thanks. WRT fixed arrays - its a po
On Wed, May 25, 2005 at 06:08:42PM -0400, Michal Wallace wrote:
> So: Py_INCREF(x) could be rewritten to (for example)
> append a reference to x in a parrot array,
> and Py_DECREF(x) would pop it off the array.
I think that you can use Parrot_register_pmc and Parrot_unregister_pmc
IIRC they coun
> "w" == wolverian <[EMAIL PROTECTED]> writes:
w> On Wed, May 25, 2005 at 01:38:27PM -0500, Rod Adams wrote:
>> Or use
>>
>> @a <== 1,2,3;
w> I would just like to say that I like this idiom immensely.
w> my @foo <== 1, 2, 3;
w> reads extremely well to me, especially sinc
On Wed, May 25, 2005 at 07:07:02PM -0400, Uri Guttman wrote:
> please don't use <== for simple assignments as it will confuse too many
> newbies and auch. it (and its sister ==>) are for pipelining ops like
> map/grep and for forcing assignment to the slurpy array arg of funcs
> (hey, i think i sai
> "w" == wolverian <[EMAIL PROTECTED]> writes:
w> On Wed, May 25, 2005 at 07:07:02PM -0400, Uri Guttman wrote:
>> please don't use <== for simple assignments as it will confuse too many
>> newbies and auch. it (and its sister ==>) are for pipelining ops like
>> map/grep and for forcin
Hi,
I'd like to suggest a module that I came up with to test CGI file
uploading logic. I have not found anything else like it.
If anyone has any thoughts on its usefulness or knows of something else
that does a similar job, please let me know.
Thanks!
Simon
NAME
# New Ticket Created by Will Coleda
# Please include the string: [perl #35976]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=35976 >
The attached patch provides a (possibly naive) implementation of the remaining
escape c
They certainly can. Tickets can have child tickets, or pre-requisite tickets,
each of which can have its own takers.
The long term planning is the sort of thing that could also go in docs/ROADMAP.
Regards.
Leopold Toetsch wrote:
Yeah. As these are several steps, I'd like to have some takers f
imcc/docs/syntax.pod has the following:
=item 'char constant'
Are delimited by B<'>. They are taken to be C encoded. No escape
sequences are processed.
But in fact B<'> behaves like B<"> without escapes or encoding/charset
prefixes:
[EMAIL PROTECTED]> cat foo.
On 5/26/05, Juerd <[EMAIL PROTECTED]> wrote:
> You could, if you changed the precedence of , to be tighter than =.
>
> However, by default, = has higher precedence than ,, so that you need
> parens to override this decision: @a = (1,2,3);
Is giving "=" a higher precedence than "," still considere
On 5/26/05, Stuart Cook <[EMAIL PROTECTED]> wrote:
> my $a, $b = 1, 2; # $b should contain 2, not 1
> my @foo = 3, 4, 5; # @foo should contain (3, 4, 5), not (list 3)
>
> What justification for the status quo could be so compelling that we
> feel the need to prevent both of these from doing the 'n
Michal Wallace wrote:
It seems that instead of looking at the *count*
of references, the DOD system actually walks
through the graph of references. So it seems
you could fake refcounting just by adding references and removing
pointers from somewhere in the tree that gets walked.
Yes, as Nick
Will Coleda (via RT) wrote:
The attached patch provides a (possibly naive) implementation of the remaining
escape characters from:
Withouht further looking: can't you use
src/string.c:string_unescape_cstring(), which has all these escapes already?
leo
Bob Rogers wrote:
A syntax for specifying multiple characters without escapes seems like a
useful thing, a la Perl5, but being unable to specify an encoding or
charset seems less useful, even for a single character.
This is probably rather simply to fix: attach the same lexer rules to
CHARCON
64 matches
Mail list logo