These examples:
pugs -e 'say shift [1, 2, 3].shift'
pugs -e 'say shift([1, 2, 3].shift)'
pugs -e 'say shift([1, 2, 3]).shift'
do not ever return, but yet does not seem to chew up the CPU either.
Meanwhile, these examples:
pugs -e 'say pop [1, 2, 3].pop'
pugs
Okay, more edge cases here.
Both these examples:
pugs -e 'my @a = (1 .. Inf); shift(@a);'
pugs -e 'my @a = (1 .. Inf); unshift(@a, 10);'
take forever (or rather, however long Inf is, but that is a discussion
for another list).
I think this might be the wrong behavior. I would expect that for pop(
On Sun, 2005-04-17 at 10:14 -0700, Nick Glencross wrote:
> These typos were part of a patch in #34989, but I confused everyone with
> patch #34988 which got created through an accident.
>
> This patch supersedes typos3.patch in #34989. I also made reference to
> 'rellocation' perhaps being 'rel
I am working on edge cases and error cases for some of the t/builtin/
tests.
I know its a silly thing to do, but how should push and pop behave with
(0 .. Inf) lists?
I read through this thread:
http://www.mail-archive.com/perl6-all@perl.org/msg39891.html
But I did not see an "answer",
On Sun, Apr 17, 2005 at 08:00:00PM -0700, Brent 'Dax' Royal-Gordon wrote:
: Larry Wall <[EMAIL PROTECTED]> wrote:
: > : First, context of hash slices:
: > : Hash slices with {} notation are trivially either scalars or lists:
: > : $h{'foo'} = want(); # Scalar
: > : $h{'foo','bar'} = want(); # Lis
Larry Wall <[EMAIL PROTECTED]> wrote:
> : First, context of hash slices:
> : Hash slices with {} notation are trivially either scalars or lists:
> : $h{'foo'} = want(); # Scalar
> : $h{'foo','bar'} = want(); # List
>
> Right.
Tangentially, that makes me wonder: is there a difference between
sca
On Sun, Apr 17, 2005 at 09:50:28AM +0200, Leopold Toetsch wrote:
: Larry Wall <[EMAIL PROTECTED]> wrote:
: > Is there a bitarray lookup by native int?
:
: Yes. All array lookups support a native int index.
Good, good. Speaking of bitarrays (uint1 in the Perl panoply of
types), is there any built
On 4/15/05, Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote:
> Aaron Sherman <[EMAIL PROTECTED]> wrote:
> > What I'd really like to say is:
> >
> > throwawaytmpvar $sql = q{...};
> > throwawaytmpvar $sql = q{...};
>
> Anything wrong with:
>
>my $sql = q{...};
>temp $sql
On Sun, Apr 17, 2005 at 07:54:18PM +0300, Roie Marianer wrote:
: Hi all,
: I'm back with more quoting construct madness.
Kewl, d00d.
: First, context of hash slices:
: Hash slices with {} notation are trivially either scalars or lists:
: $h{'foo'} = want(); # Scalar
: $h{'foo','bar'} = want();
On Sun, Apr 17, 2005 at 04:26:32PM -0700, David Wheeler wrote:
> On Apr 17, 2005, at 3:12 PM, Michael G Schwern wrote:
> >Perhaps the DynAPI folks might be interested.
> >http://dynapi.sourceforge.net/dynapi/
>
> Perhaps, But then the mail lists are simply hosted by SourceForge. Ick.
Sorry, the p
At least for the usage described in this thread, I don't see any need
at all to add new syntax to Perl 6. The existing syntax provides for
a much simpler solution yet, which also is in Perl 5.
This is the format of what I do to solve the same problem right now
in my Locale::KeyedText test suit
On Apr 17, 2005, at 3:12 PM, Michael G Schwern wrote:
Perhaps the DynAPI folks might be interested.
http://dynapi.sourceforge.net/dynapi/
Perhaps, But then the mail lists are simply hosted by SourceForge. Ick.
And then there's the whole Ajax thing which I'm not really up on enough
to detect if ther
I definitely like the hyper stuff how it is; maybe the answer is to
just define an infix:<[[]]> operator which returns the crosswise slice
of a nested list of lists. In any case it could be shunted aside to
some package and certainly does not need to be in core.
David
my @transposed = @matrix>
On Fri, 15 Apr 2005, Nigel Sandever wrote:
> I struck me a while back that there is a contradiction in idea of a shared,
> 'my' variable.
>
> I want to say lexical, but a var declared with 'our' is in some sense lexical.
Shared-between-threads and shared-between-scopes are orthogonal properties;
u
BÃRTHÃZI AndrÃs writes:
> Hi,
>
> In Perl5 there can be a flag on a variable, that shows, if it's tainted
> or not. I would like you to ask, if it will be possible the same with
> Perl 6, or - and I'm most interested in this -, if it's possible to
> create something like this by me (defining me
David Christensen writes:
> Quick thought ---
>
> Does the current design of Perl 6's hyper operators allow for
> "hyper-slices"? I.e., if I want to model a matrix by using a list of
> lists, is the following code valid/useful?
>
> my @matrix=([1,2,3],[4,5,6],[7,8,9]);
>
> my @row = @matrix[0];
On Sun, Apr 17, 2005 at 05:23:56PM -0400, jesse wrote:
> I'm betting there is no javascript community organization we can
> leverage.
Perhaps the DynAPI folks might be interested.
http://dynapi.sourceforge.net/dynapi/
And then there's the whole Ajax thing which I'm not really up on enough
to dete
Aaron Sherman skribis 2005-04-17 18:23 (-0400):
> On Fri, 2005-04-15 at 18:04 +0200, Juerd wrote:
> > > throwawaytmpvar $sql = q{...};
> > > throwawaytmpvar $sql = q{...};
> > I like the idea and propose "a", aliased "an" for this.
> Too short.
There is a rule of thumb, I don't know who came
> Well, you should know that there are a now a number of people I know of
> who are working on JSAN-y things in parallel. I've Cc'd them on this
> message. Maybe we should set up a mail list somewhere an coordinate our
> efforts? What would be the proper venue for that?
I'm betting there is n
On Fri, 2005-04-15 at 18:04 +0200, Juerd wrote:
> Aaron Sherman skribis 2005-04-15 11:45 (-0400):
> > What I'd really like to say is:
> > throwawaytmpvar $sql = q{...};
> > throwawaytmpvar $sql = q{...};
>
> I like the idea and propose "a", aliased "an" for this.
Too short. Having such a
Michael G Schwern wrote:
tie() always returns an object.
The object returned by the "new" method is also
returned by the "tie" function, which would be useful if you
want to access other methods in CLASSNAME.
Your insight's and Kevin's were incorporate
Hi,
In Perl5 there can be a flag on a variable, that shows, if it's tainted
or not. I would like you to ask, if it will be possible the same with
Perl 6, or - and I'm most interested in this -, if it's possible to
create something like this by me (defining meta information on
variables, that no
On Apr 16, 2005, at 3:00 PM, Adam Kennedy wrote:
It's going to totally depend on what you want to wrap around it...
Do you want the human interacty mode? Or the machine county mode.
"machine county mode"? Just that, I think.
Forget the document object for a moment, you are more accurately in
the e
On Apr 16, 2005, at 2:53 PM, Adam Kennedy wrote:
JSPANTS, you mean? I think we need a CJSPAN, first. Alias?
Yes well... I'm getting there slowly.
JavaScript::Librarian + Algorithm::Dependency + YAML ought to be
enough to get some basics sorted out...
Well, you should know that there are a now a nu
# New Ticket Created by Nick Glencross
# Please include the string: [perl #35020]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=35020 >
These typos were part of a patch in #34989, but I confused everyone with
patch #3498
> "Tony" == Tony Bowden <[EMAIL PROTECTED]> writes:
Tony> Negative quality for anyone whose files appear to have been edited in
Tony> emacs!
Now, them's fightin' words!
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
http://www.stonehenge.com/merlyn/>
Perl/Un
On Sun, Apr 17, 2005 at 04:33:57PM +0200, BÁRTHÁZI András wrote:
> Hi,
>
> Just a short question I'm interested in: where will be, and how will
> work (I just asking for a general description about it) the regular
> expression / rules part of Parrot?
The regular expression / rules part of Parro
On Sun, Apr 17, 2005 at 08:42:52PM +0300, Roie Marianer wrote:
> Attached patch, because the svn repository is down.
Thanks, applied to svn.perl.org and will mergeback tomorrow to openfoundry.
Great work!
Enjoy,
/Autrijus/
pgpTl3e9m9NTh.pgp
Description: PGP signature
Attached patch, because the svn repository is down.
1. Remove old qq code (it's all in the q code now)
2. Make <<>> work
3. Regular expressions are parsed as qq//, but with no backslash protection at
all. (Should it be partial backslash protection for \qq and \?)
4. Hash subscripts using <> or <<
> -Original Message-
> From: Paul Hodges [mailto:[EMAIL PROTECTED]
> Sent: Sunday, April 17, 2005 1:30 PM
> To: Larry Wall; perl6-language@perl.org
> Subject: Re: should we change [^a-z] to <-[a..z]> instead of <-[a-z]>?
>
>
> --- Larry Wall <[EMAIL PROTECTED]> wrote:
> . . .
> > <-
--- Larry Wall <[EMAIL PROTECTED]> wrote:
. . .
> <-[a..z]>
>
> should be allowed/encouraged/required. It greatly improves the
> readability in my estimation. The only problem with requiring .. is
> that people *will* write <[a-z]> out of habit, and we would probably
> have to outlaw the
--- Larry Wall <[EMAIL PROTECTED]> wrote:
> On Fri, Apr 15, 2005 at 11:28:31AM -0500, Rod Adams wrote:
> : David Wheeler wrote:
> :
> : >But the first person to write <[a...]> gets what's comin' to 'em.
> :
> : Is that nothing (since '.' lt 'a'), or everything after 'a'?
>
> Might as well make
On Saturday 16 April 2005 7:40 pm, Larry Wall wrote:
> : Basically I'm wondering if there's a detailed
> : specification of how <<>> should work.
>
> That's a really good question, and since I don't offhand know the
> right answer, I'll put this up onto the fence so it can topple over
> into p6l-la
Hi all,
I'm back with more quoting construct madness.
First, context of hash slices:
Hash slices with {} notation are trivially either scalars or lists:
$h{'foo'} = want(); # Scalar
$h{'foo','bar'} = want(); # List
With <> notation the same thing happens:
$h = want(); # Scalar
$h = want(); #
So I am trying to implement throws_ok into Test.pm and I ran into this
bug:
pugs -e 'sub foo (Sub $code, Str $a, Str ?$b) { ref($a).say }; foo ->
{ "test" }, "test", "test2";'
prints:
List
I also tried a number of other versions of this as well this one is the
only one which works:
pugs -e
BÁRTHÁZI András wrote:
Hi,
Just a short question I'm interested in: where will be, and how will
work (I just asking for a general description about it) the regular
expression / rules part of Parrot?
I mean, if it will be at the language (Perl 6, Python, etc.) level, or
at the virtual machine le
On Sun, Apr 17, 2005 at 10:11:47AM -0500, David Christensen wrote:
> Enclosed is a patch for t/operators/hyper.t to test for some corner
> cases with list extension.
Nice, applied.
> Let me know if the unicode ">>" are coming
> through correctly; I am not seeing them as such in my email.
Indee
# New Ticket Created by Will Coleda
# Please include the string: [perl #35018]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=35018 >
More of an implied patch. ^_^
The recent conversion to mostly defaulting to ascii has b
> The rsync off of cvs.perl.org::parrot-HEAD as suggested on parrotcode.org
> contains .svn directories. This doesn't seem right.
Fixed.
Juergen Boemmels <[EMAIL PROTECTED]> wrote:
> I changed the test to calculate a mersenne prime number. I have tested it
> on amd 64 and it finds amd64.
> Ok to commit?
Ook? Ook!
> boe
leo
Jens Rieks <[EMAIL PROTECTED]> wrote:
> On Sunday 17 April 2005 10:11, Leopold Toetsch wrote:
>> > Log:
>> > - show backtrace in real_exception if debug mode is turned on
>> Shouldn't that be on always?
> That's the question. There were a some test failures due to the changed
> output. I'll simply
Enclosed is a patch for t/operators/hyper.t to test for some corner
cases with list extension. Let me know if the unicode ">>" are coming
through correctly; I am not seeing them as such in my email.
Thanks,
David Christensen
---
Index: hyper.t
===
Matt Diephouse wrote:
William Coleda <[EMAIL PROTECTED]> wrote:
6) avoid using ".local" to mean something different based on context (macro or not)
I'm not sure what you mean.
.local inside a macro is actually a label, not a variable. From the imcc
docs:
---
Macros support labels, defined using
On Tue, Apr 12, 2005 at 06:22:13PM +0200, Thomas Sandlaß wrote:
>
> I've edited the above syntax into S06 and A06. The two patches
> are attached but I don't know if you are the right one to sent
> them to. Whom should I sent such patches? I just saw you applying
> other patches as well.
Applied,
Quick thought ---
Does the current design of Perl 6's hyper operators allow for
"hyper-slices"? I.e., if I want to model a matrix by using a list of
lists, is the following code valid/useful?
my @matrix=([1,2,3],[4,5,6],[7,8,9]);
my @row = @matrix[0]; # first row
my @col = @matrix>>[0]; #first
On Sun, Apr 17, 2005 at 02:52:27PM +0200, Steven Philip Schubiger wrote:
> A spelling mistake and a word, that supposedly has been forgotten.
>
> Steven
Applied, thanks!
Pm
> --- apo/A06.pod Sun Apr 17 14:34:16 2005
> +++ apo/A06.pod Sun Apr 17 14:42:37 2005
> @@ -
On Sun, Apr 17, 2005 at 07:29:33AM -0700, Larry Wall wrote:
> On Sun, Apr 17, 2005 at 08:56:46PM +1000, Brad Bowman wrote:
> :
> : Hi all,
> :
> : S03 gives infix + a higher precedence than junctive
> : operators in the listed table, but that seems to contradict
> : the examples under "Junctive o
# New Ticket Created by Will Coleda
# Please include the string: [perl #35016]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=35016 >
Failed TestStat Wstat Total Fail Failed List of Failed
---
Hi,
Just a short question I'm interested in: where will be, and how will
work (I just asking for a general description about it) the regular
expression / rules part of Parrot?
I mean, if it will be at the language (Perl 6, Python, etc.) level, or
at the virtual machine level? Will Parrot has a
On Sun, Apr 17, 2005 at 08:56:46PM +1000, Brad Bowman wrote:
:
: Hi all,
:
: S03 gives infix + a higher precedence than junctive
: operators in the listed table, but that seems to contradict
: the examples under "Junctive operators".
The table is correct, and the examples are wrong.
: The relev
A spelling mistake and a word, that supposedly has been forgotten.
Steven
--- apo/A06.pod Sun Apr 17 14:34:16 2005
+++ apo/A06.pod Sun Apr 17 14:42:37 2005
@@ -2021,7 +2021,7 @@
All blocks are considered closures in Perl 6, even the blocks
that declare modules or classes (pres
I'm still restructuring the MMD infix functions and classes. Divide and
floor_divide are done. But there is a problem:
* the Float PMC isa(scalar): it inherits almost all mathemtical
functions from the abstract "scalar" PMC
* But e.g Parrot_Float_subtract_Complex isn't inherited automatically,
Tony Bowden wrote:
so even if a neural net (or whatever) did come up
with the above substring heuristic, once it's know then authors can game
the system by artificially crowbarring into their modules' sources, at
which point the heuristic loses value.
I thought the idea was that we /wanted/ people
Hi all,
S03 gives infix + a higher precedence than junctive
operators in the listed table, but that seems to contradict
the examples under "Junctive operators".
The relevant parts of S03 are:
Junctive operators
1|2|3 + 4; # 5|6|7
1|2 + 3&4; # (4|5) & (5|6)
On Sun, Apr 17, 2005 at 12:17:17AM +, Smylers wrote:
> Remember that we aren't measuring quality, but kwalitee. Kwalitee is
> supposed to provide a reasonable indication of quality, so far as that's
> possible. So what matters in determining whether a kwalitee heuristic
> is appropriate is wh
On Sun, Apr 17, 2005 at 08:24:01AM +, Smylers wrote:
> Negative quality for anybody who includes a literal tab character
> anywhere in the distro's source!
Negative quality for anyone whose files appear to have been edited in
emacs!
Tony
On Sunday 17 April 2005 10:11, Leopold Toetsch wrote:
> > Log:
> > - show backtrace in real_exception if debug mode is turned on
> Shouldn't that be on always?
That's the question. There were a some test failures due to the changed
output. I'll simply adjust the tests...
> > +Null PMC access in i
Here are the test results for /trunk r7851 on
Windows XP SP2
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Activestate Perl 5.8.6
Activestate Python 2.4.0
ANTLR 2.7.5
ICU 3.2
GDBM 1.8.3
GMP 4.1.4
Tested configurations are
perl Co
Thomas Sandlaà wrote:
John Williams wrote:
Good point. Another one is: how does the meta_operator determine the
"identity value" for user-defined operators?
Does it have to? The definition of the identity value---BTW, I like
the term "neutral value" better because identity also is a relation
betw
Adam Kennedy writes:
> Michael Graham wrote:
>
> > Another good reason to ship all of your development tests with code
> > is that it makes it easer for users to submit patches with tests.
> > Or to fork your code and retain all your development tools and
> > methods.
>
> Perl::MinimumVersion, w
chromatic writes:
> On Sat, 2005-04-16 at 20:59 -0500, Andy Lester wrote:
>
> > And the more the better!
>
> Well sure. Two-space indent is clearly better than one-space indent,
> and four-space is at least twice as good as that.
Negative quality for anybody who includes a literal tab characte
> I changed the test to calculate a mersenne prime number. I have tested it
> on amd 64 and it finds amd64.
>
> Ok to commit?
> boe
It works for me too. Thanks.
Adrian
pgpJK9omT657V.pgp
Description: PGP signature
According to Dave Whipp:
> It'd also suggest that C et al should be methods on a directory
> object (default object for the global forms would be $*ENV.cwd)
There is no system call "fd_relative_open". You can only open
relative to the current directory, not just any directory.[*] It'd be
mean to
Adam Kennedy writes:
> Christopher H. Laco wrote:
>
> > Tony Bowden wrote:
> >
> > > What's the difference to you between me shipping a a .t file that
> > > uses Pod::Coverage, or by having an internal system that uses
> > > Devel::Cover in a mode that makes sure I have 100% coverage on
> > > ev
Sam Ruby <[EMAIL PROTECTED]> wrote:
Hi Sam, long not hear ;)
> ... The overwhelming majority of that work
> is in getting the PMCs right.
I'm currently working on that. Some of the MMD functions are already
rewritten so that they can return new result PMCs. With the now working
MMD system I'v a
Larry Wall <[EMAIL PROTECTED]> wrote:
> On Sat, Apr 16, 2005 at 10:36:37AM +0200, Leopold Toetsch wrote:
>: Above are only the PMC variants. There are optimized forms for array and
>: hash lookup by native types:
>:
>: Px = Py[Iz]
>: Px = Py[Sz]
> Is there a bitarray lookup by native int?
Ye
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Log:
> - show backtrace in real_exception if debug mode is turned on
Shouldn't that be on always?
> +Null PMC access in invoke\(\)
> +current instr\.: 'd' pc \d+
> +called from Sub 'c' pc \d+
Good. Could you include source line information here too?
67 matches
Mail list logo