On Sat, Aug 14, 2004 at 12:32:30AM -0400, Joe Gottman wrote:
:Doesn't the concept of an anonymous named param (in the fourth and fifth
: examples above) seem like an oxymoron? If it's anonymous it can't have a
: name (or at least we can't know its name).
It's anonymous only in the sense that
> -Original Message-
> 1d) Additional arguments may occur as adverbs *only* if there
> are explicit parens. (Or in the absence of parens they may
> parse as arguments when a term is expected--but then they're
> not adverbs, just named arguments...)
>
>
Larry Wall wrote:
On Wed, Aug 11, 2004 at 04:16:48PM -0400, Dan Sugalski wrote:
: If it's that handy then someone can write a library routine. This
: feels very much to be in the same category as running a
: speech-to-text algorithm if you send WAV data to a text filehandle.
Well, you can write
On Tue, Aug 10, 2004 at 10:45:43AM -0700, Brent 'Dax' Royal-Gordon wrote:
: I would assume (hope) that these tables would not be allowed to change
: once Parrot started using them. It seems like an extremely dangerous
: thing to have two calls to read() be performed by different functions,
: after
Oh yeah, the goal of this exercise was to cache the hash, not build it
every time. Here's a version which does that and passes the tests with
GC_DEBUG. It still complains about passing constant C-strings to
hash_put(), but that's a different story.
-- c
Index: include/parrot/interpreter.h
Aaron,
I happen to agree with Dan about the unwieldiness of replacing
characters with their full names during character translation, but your
idea of using Unicode equivalents seems more palatable. I'm going to
ignore the issue of how this method of handling errors fits into the
scheme o
On Fri, Aug 13, 2004 at 09:19:29PM -0400, Uri Guttman wrote:
: i have no issue with splurt() being needed to disambiguate. i just
: wanted to see your take (this week :) on it as i felt the table was
: ambiguous so far. as far as making it a warning, wouldn't that make the
: warning space sensitive
On Fri, Aug 13, 2004 at 08:41:35PM -0400, Matt Diephouse wrote:
: > You know, at some point you just break down and write them positionally:
: >
: > @array.each( { $^odd.bar() }, { $^even.baz() });
:
: Speaking of which, let's talk a little bit about how I'd write these
: methods. After looki
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes:
LW> On Fri, Aug 13, 2004 at 07:05:28PM -0400, Uri Guttman wrote:
LW> : LW> : splurt + 1 # same??
LW> : LW> : splurt +1 # work on +1??
LW> :
LW> : so how do the 2 above get parsed? the space between + and
On Fri, 13 Aug 2004 11:36:05 -0700, Larry Wall <[EMAIL PROTECTED]> wrote:
> Yes, that's precisely why I'm trying to generalize Ruby's single
> "magic" block into one or more ordinary parameters.
Excellent. :)
> Two anonymous adverbs? Hmm. While I can think of ways to force it to
> work, I'm inc
On Fri, Aug 13, 2004 at 07:05:28PM -0400, Uri Guttman wrote:
: LW> : splurt + 1 # same??
: LW> : splurt +1 # work on +1??
:
: so how do the 2 above get parsed? the space between + and 1 looks alike
: a 0-ary splurt but the +1 could be 0-ary added to 1 or unary with +1 as
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes:
LW> On Tue, Aug 10, 2004 at 06:10:17PM -0400, Uri Guttman wrote:
LW> : can you have a 0- or 1-ary function? meaning like the many funcs that
LW> : work on $_ with no args or the single arg you pass in. how do you
LW> : declare it so it p
On Fri, 2004-08-13 at 11:58, Leopold Toetsch wrote:
> When that's fixed (or hash's memory is malloced) then the keys have to
> be declared with CONST_STRING() or - as these are C strings in the first
> place, you create a custom hash with C-string keys. See the API in
> hash.c:new_hash_x() or j
On Fri, 13 Aug 2004 11:44:28 -0400, Dan Sugalski <[EMAIL PROTECTED]> wrote:
> Still, I think it might be worth dedicating a slot to it. It's a
> handy feature, and if we open it up to perl & python I'd bet we'd see
> them using it.
This makes we wonder if we shouldn't generalize the concept of the
On Fri, 13 Aug 2004 16:40:12 -0400
Dan Sugalski <[EMAIL PROTECTED]> wrote:
> At 11:24 AM -0700 8/13/04, Michel Pelletier wrote:
> >I've been developing Parakeet on a month old Parrot build, so today I
> >decided to update to a recent checkout, and Parakeet broke two ways.
> >
> >The first is multi
At 11:24 AM -0700 8/13/04, Michel Pelletier wrote:
I've been developing Parakeet on a month old Parrot build, so today I
decided to update to a recent checkout, and Parakeet broke two ways.
The first is multi-inheritance stopped working, but that's not as big a
deal as the new problem.
Gack -- it's
I've been developing Parakeet on a month old Parrot build, so today I
decided to update to a recent checkout, and Parakeet broke two ways.
The first is multi-inheritance stopped working, but that's not as big a
deal as the new problem. Consider:
.sub _main @MAIN
BeginInteraction:
getstdin
At 1:43 PM +0200 8/10/04, Leopold Toetsch wrote:
We currently have two integer PMCs, we need another one for Python.
But before just copy&paste another file, I'd really have done that
right.
I think what we need's a policy here. Larry's weighed in on what
Perl's going to want, which is cool. (In
On Tue, Aug 10, 2004 at 01:43:37PM +0200, Leopold Toetsch wrote:
: We need offical PDDs about the behavior of our PMCs. I hope that Perl6
: types will be the same as Perl5 types.
Well, assuming that Perl 6 is like Perl 5 is often a good first
approximation, but in this case we're thinking that In
chromatic wrote:
On Fri, 2004-08-13 at 09:23, Dan Sugalski wrote:
This hash should either be allocated from constant PMCs that don't
get GC'd, or put in the root set, then.
Just to be specific then, the steps would be:
- allocate a new PMC
- mark it as constant (PMC_constant_FLAG)
That would
On Tue, 10 Aug 2004, Jarkko Hietaniemi wrote:
> $ perl -Ilib t/pmc/perlnum.t
> ...
> not ok 36 - +- zero
> # Failed test (t/pmc/perlnum.t at line 690)
> # got: '0
> # 0
> # '
> # expected: '0
> # -0.00
> # '
> I don't think there is any guarantee how fp -0.0 should be printed
On Wed, Aug 11, 2004 at 04:16:48PM -0400, Dan Sugalski wrote:
: If it's that handy then someone can write a library routine. This
: feels very much to be in the same category as running a
: speech-to-text algorithm if you send WAV data to a text filehandle.
Well, you can write a library routine,
At 11:04 AM -0700 8/13/04, Larry Wall wrote:
On Tue, Aug 10, 2004 at 10:45:43AM -0700, Brent 'Dax' Royal-Gordon wrote:
: I would assume (hope) that these tables would not be allowed to change
: once Parrot started using them. It seems like an extremely dangerous
: thing to have two calls to read()
On Fri, Aug 13, 2004 at 02:21:30PM -0400, Matt Diephouse wrote:
: All this talk of blocks and Ruby (and A12 Lookahead Notions) brings up
: an important question in my mind: how will Perl 6 handle multiple
: blocks? When using Ruby, I found blocks both easy and pretty. But I
: found writing a method
On Wed, 2004-08-11 at 09:21, Jarkko Hietaniemi wrote:
--- t/pmc/nci.t 2004-08-11 19:11:06.0 +0300
+++ t/pmc/nci.t.dist2004-08-11 19:14:15.0 +0300
@@ -566,7 +566,7 @@
push P2, 0
push P2, 0
push P2, .DATATYPE_STRUCT_PTR
- # attach the unmanaged struct as property
+ # a
On Fri, 13 Aug 2004 10:46:45 -0700, Larry Wall <[EMAIL PROTECTED]> wrote:
> This maps pretty well onto Ruby's magic blocks
> (and admittedly was inspired by it), though Perl will have different
> syntactic rules about how to pass one, of course, because we're
> generalizing the concept somewhat. I
On Tue, Aug 10, 2004 at 10:45:43AM -0700, Brent 'Dax' Royal-Gordon wrote:
: I would assume (hope) that these tables would not be allowed to change
: once Parrot started using them. It seems like an extremely dangerous
: thing to have two calls to read() be performed by different functions,
: after
On Fri, Aug 13, 2004 at 02:12:06PM +0100, mark sparshatt wrote:
: My main worry with this approach is how it would interact with slurpy
: args. I mean if method is defined as
:
: def method(*args)
: ...
: end
:
: how do I make sure that $clos doesn't become part of args?
In Perl 6 circles we've
On Fri, 2004-08-13 at 09:23, Dan Sugalski wrote:
> This hash should either be allocated from constant PMCs that don't
> get GC'd, or put in the root set, then.
Just to be specific then, the steps would be:
- allocate a new PMC
- mark it as constant (PMC_constant_FLAG) or call th
On Tue, Aug 10, 2004 at 06:10:17PM -0400, Uri Guttman wrote:
: can you have a 0- or 1-ary function? meaning like the many funcs that
: work on $_ with no args or the single arg you pass in. how do you
: declare it so it parses correctly?
:
: splurt # should work on $_
: splurt
At 5:16 PM +0100 8/10/04, Nicholas Clark wrote:
On Mon, Aug 09, 2004 at 03:11:53PM -0400, Dan Sugalski wrote:
At 11:57 AM -0700 8/9/04, chromatic wrote:
>Is there a particular hash lookup style you have in mind? If there's
>something similar in the code already, I can copy, paste, and modify t
At 1:11 PM +0200 8/13/04, Leopold Toetsch wrote:
chromatic wrote:
No, not a lot of examples. Here's a patch that's somewhat naive but
passes all tests on my machine (Linux PPC).
I'm a bit concerned about the initialization code, especially the static
hash, but it's more important to have code avai
At 11:07 AM +0200 8/13/04, Hans Ginzel wrote:
On Mon, Aug 09, 2004 at 12:04:31PM -0400, Dan Sugalski wrote:
When Parrot's being embedded I can see the following functions
needing overriding by the embedder:
*) Memory: malloc, realloc, calloc, free
*) Signals: handler register, Handler un-regist
At 1:00 PM +0200 8/13/04, Leopold Toetsch wrote:
mark sparshatt wrote:
I'd like advice on how to handle method invocations that include
special block parameters such as
method() {do something}
The idea is to turn the block into a closure pmc. The problem is
how to pass this to the method, so tha
At 12:24 AM -0600 8/13/04, Thomas Fjellstrom wrote:
On August 9, 2004 02:34 pm, Dan Sugalski wrote:
At 4:12 PM -0400 8/9/04, Melvin Smith wrote:
>At 11:22 AM 8/9/2004 -0400, Dan Sugalski wrote:
>>At 1:13 PM +0200 8/8/04, Leopold Toetsch wrote:
>>>Leopold Toetsch <[EMAIL PROTECTED]> wrote:
On Fri, Aug 13, 2004 at 02:29:40PM +0200, Rafael Garcia-Suarez ([EMAIL PROTECTED])
wrote:
> Andy Lester wrote:
> > #./perl -T
> ^^
> the lack of "!" here gave me a small headache during the integration.
Sorry about that. Here's one teeny more patch to add, to minimize the
amount of silencing w
At 7:37 PM +1000 8/10/04, Adam Richardson wrote:
I'm not sure how you plan to integrate the database level (or whether it
affects what you are doing at all), but presumably you know all about the
new encoding and collation sets in mySQL 4.1. Things have changed quite a
bit there from 4.0, and I've
At 6:34 AM +0800 8/10/04, Chia-liang Kao wrote:
While this is not the best list discussing which version control system
is better, I must say that I didn't mean svn is better though I setup the
mirror. And my purpose was actually to make it possible for svk to mirror
more efficiently.
Don't worry a
Leopold Toetsch wrote:
mark sparshatt wrote:
I'd like advice on how to handle method invocations that include
special block parameters such as
method() {do something}
The idea is to turn the block into a closure pmc. The problem is how
to pass this to the method, so that it knows that it's a spe
Andy Lester wrote:
> Here's a test file that makes sure that even with sub q{}, that q() is
> an operator, but &q() and main::q() are function calls. I suggest that
> it be called t/comp/operator-subs.t.
Thanks, applied as #23215.
> #./perl -T
^^
the lack of "!" here gave me a small headache d
Bernhard Schmalhofer (via RT) wrote:
the two new languages 'Span' and 'Parakeet' should be mentioned in
LANGUAGES.STATUS.
Thanks, applied.
leo
mark sparshatt wrote:
I'd like advice on how to handle method invocations that include special
block parameters such as
method() {do something}
The idea is to turn the block into a closure pmc. The problem is how to
pass this to the method, so that it knows that it's a special block
parameter.
chromatic wrote:
No, not a lot of examples. Here's a patch that's somewhat naive but
passes all tests on my machine (Linux PPC).
I'm a bit concerned about the initialization code, especially the static
hash, but it's more important to have code available for review than
improvement than to wait un
Felix Gallo (via RT) wrote:
Synopsis: in CVS as of Tue Aug 10 17:30:52 EDT 2004, the
examples/japh/japh[4,5,6,9].pasm examples all crash with
segmentation fault on my highly hacked up linux box.
Ah, yep thanks.
They arguably should be working fine.
IO changes WRT output line-buffering made thread-
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes:
LW> 1c) Explicit parentheses may delimit the actual arguments,
LW> in which case the function is parsed as a function rather
LW> than a list operator. Adverbs may follow the parens:
LW> splurt(1,2,3):by{ +$_ } # okay
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes:
DS> At 6:32 PM +0100 8/10/04, Arthur Bergman wrote:
>> Modern operating systems all have a way to get around the suckiness
>> of poll/select when you have large number of fds
>> (epoll/aio/kqueue/whatever), there should be away to ove
Attached find a patch to http://www.parrotcode.org/examples/index.html that:
(0) depends on a patch I sent to the webmaster folks earlier adding back in the docs/*
hierarchy (a small shim of .html files that just points to everything that ends up in
parrot's docs directory after a build. - goes a
On Wed, Aug 11, 2004 at 03:25:20PM -0700, David Storrs wrote:
> On Sat, Aug 07, 2004 at 03:55:21PM +0100, Nicholas Clark wrote:
> > However, Acme::Intraweb hasn't been updated for a while, whereas CPANPLUS
> > has, so I'm not sure if it still works. Both are by Jos Boumans.
>
> Urrmmm...ok, I'm s
On August 9, 2004 02:34 pm, Dan Sugalski wrote:
> At 4:12 PM -0400 8/9/04, Melvin Smith wrote:
> >At 11:22 AM 8/9/2004 -0400, Dan Sugalski wrote:
> >>At 1:13 PM +0200 8/8/04, Leopold Toetsch wrote:
> >>>Leopold Toetsch <[EMAIL PROTECTED]> wrote:
> You can verify this step by running -v:
> >>>
On Sat, Aug 07, 2004 at 03:55:21PM +0100, Nicholas Clark wrote:
> On Sat, Jul 24, 2004 at 02:50:18PM -0700, David Storrs wrote:
> > #!/usr/bin/perl6
>
> #!/usr/bin/perl
I stated perl6 explicitly to be, well, explicit.
> > #use warnings; # Note that I am NOT explicitly using these
> > #use s
I'd like advice on how to handle method invocations that include special
block parameters such as
method() {do something}
The idea is to turn the block into a closure pmc. The problem is how to
pass this to the method, so that it knows that it's a special block
parameter. Particularly in a way
# New Ticket Created by [EMAIL PROTECTED]
# Please include the string: [perl #31061]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org:80/rt3/Ticket/Display.html?id=31061 >
Hi,
I found tools/dev/parrot_coverage.pl in freshly updated cvs tree to be
com
On Mon, Aug 09, 2004 at 12:04:31PM -0400, Dan Sugalski wrote:
> When Parrot's being embedded I can see the following functions
> needing overriding by the embedder:
>
> *) Memory: malloc, realloc, calloc, free
> *) Signals: handler register, Handler un-register, signal raise, alarm set
> *) Files:
# New Ticket Created by Felix Gallo
# Please include the string: [perl #31050]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org:80/rt3/Ticket/Display.html?id=31050 >
Synopsis: in CVS as of Tue Aug 10 17:30:52 EDT 2004, the
examples/japh/japh[4,5,6,9].p
> "Hildo" == Hildo Biersma <[EMAIL PROTECTED]> writes:
Hildo> I'm looking at writing Parrot support for a vendor library: IBM MQ
Hildo> (Message Queueing, aka "MQSeries", aka "WebSphere MQ"). The current
Hildo> perl module (which I maintain) uses XS code and Parrot's NCI should
Hildo> simplif
Hi Dan & Michael,
As a guy who speaks a strange language (multi byte chars, multi glyph
chars, caseless
text and half vowels) , I think you have made it too complicated than
it should be .
> charset end of things, offsets will be in graphemes (or Freds. I
> don't remember what we finally decided
A link from Ask Bjoern Hansen's blog: http://www.askbjoernhansen.com/
"How To Misuse Code Coverage"
http://testing.com/writings/coverage.pdf
xoa
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance
On Tue, 2004-08-10 at 22:42, Dan Sugalski wrote:
> Part of me's tempted to just define our own set of functions, but the
> problem there is that we then put the onus on the embedding app to
> conform to us, which I'm not sure is the right way to go about things.
When the standard APIs are all so
This is part two of the charset API. Part 1 dealt with access and
transformation of strings, part two here deals with glyph and
codepoint classification.
I'm not sure if these belong in the charset vtable or should be
separate. Probably putting them in the vtable's the right (or at
least least
Here's a test file that makes sure that even with sub q{}, that q() is
an operator, but &q() and main::q() are function calls. I suggest that
it be called t/comp/operator-subs.t.
A transcription of the IRC conversation that started this discussion is
at the bottom of this file. So often we have
At 10:48 AM -0400 8/11/04, Aaron Sherman wrote:
I don't want to argue per-se (that doesn't do anyone any good), so if
your mind is made up, that's cool... still, I think there's some value
in exploring the options, so read on if you're so inclined.
On Wed, 2004-08-11 at 04:40, Dan Sugalski wrote:
# New Ticket Created by chromatic
# Please include the string: [perl #31065]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org:80/rt3/Ticket/Display.html?id=31065 >
Here's a patch that cleans up some POD errors and warnings in C files.
-- c
Index: sr
After my discussion, I've included an annotated copy of the functions,
where I've added my comments after each function.
So, assuming (hah!) that I correctly understood everything in the draft,
It seems that I have several general concerns:
1. Why are lists of bits or bytes that are being inter
Joe Gottman wrote:
There's something wrong with the mailing list archives at
http://dev.perl.org/perl6/lists/. I can get to this page OK, but when I
click on a link to the perl6-internals or perl6-language archives, I get a
"This page cannot be displayed" error.
The perl.org list server's been
Sorry if this is a repeat, but I didn't get my own mail back, so I
think I may have had sending problems.
On Aug-09, Patrick R. Michaud wrote:
>
> Luke Palmer and I started work on the grammar engine this past week.
> It's a wee bit too early in the process for us to be making any
> promises about
There's something wrong with the mailing list archives at
http://dev.perl.org/perl6/lists/. I can get to this page OK, but when I
click on a link to the perl6-internals or perl6-language archives, I get a
"This page cannot be displayed" error.
Joe Gottman
I don't want to argue per-se (that doesn't do anyone any good), so if
your mind is made up, that's cool... still, I think there's some value
in exploring the options, so read on if you're so inclined.
On Wed, 2004-08-11 at 04:40, Dan Sugalski wrote:
> > Converting Unicode to non-Unicode c
On Mon, 2004-08-09 at 14:14, Dan Sugalski wrote:
> Additionally if we have source text which is
> Latin-n, EBCDIC, ASCII, or whatever we must be
> able to convert it with no loss to Unicode.
> (Which I believe is now doable with Unicode 4.0)
> Losslessly converting Unicode to
> ASCII/EBCDIC/w
# New Ticket Created by Jarkko Hietaniemi
# Please include the string: [perl #31060]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org:80/rt3/Ticket/Display.html?id=31060 >
The PARROT_BYTEORDER (which is, oddly, unused) probably makes more sense
as a he
At 4:15 PM -0400 8/10/04, Aaron Sherman wrote:
On Mon, 2004-08-09 at 14:14, Dan Sugalski wrote:
Additionally if we have source text which is
Latin-n, EBCDIC, ASCII, or whatever we must be
able to convert it with no loss to Unicode.
(Which I believe is now doable with Unicode 4.0)
Losslessly co
# New Ticket Created by Bernhard Schmalhofer
# Please include the string: [perl #31063]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org:80/rt3/Ticket/Display.html?id=31063 >
Hi,
the two new languages 'Span' and 'Parakeet' should be mentioned in
LANGU
I sent this on Tue, but it never came back to me from the list, so here
it is again. Sorry if anyone gets a repeat.
Begin forwarded message:
Date: Tue, 10 Aug 2004 13:58:47 -0700
From: Michel Pelletier <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [perl #31031] Ne
# New Ticket Created by Jarkko Hietaniemi
# Please include the string: [perl #31059]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org:80/rt3/Ticket/Display.html?id=31059 >
I don't think it's fair or correct to claim pointer alignment is
four on every p
> From: Dan Sugalski (via RT) <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> Subject: [perl #31031] Need a way to access the namespace of a class object
> Date: Mon, 09 Aug 2004 14:09:04 -0700
>
> # New Ticket Created by Dan Sugalski
> # Please include the string:
# New Ticket Created by Jarkko Hietaniemi
# Please include the string: [perl #31064]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org:80/rt3/Ticket/Display.html?id=31064 >
Because this is a family channel I won't publicly comment on the
classes/unmanag
75 matches
Mail list logo