Re: perl6-lang Project Management

2002-11-05 Thread Allison Randal
Since you're interested in the management of the Perl 6 project, I'll let you in on some of it. Let's start with a step back into a bit of history: We started off with an intense RFC process. This produced many good ideas, not-so-good ideas, and ideas with potential but desperately needing polish.

Re: [perl #18166] [PATCH] routines to block and unblock DOD and GC

2002-11-05 Thread Steve Fink
On Oct-30, Jonathan Sillito wrote: > # New Ticket Created by Jonathan Sillito > # Please include the string: [perl #18166] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt2/Ticket/Display.html?id=18166 > > > > pdd09 mentions routines for blockin

Re: Unifying invocant and topic naming syntax

2002-11-05 Thread Me
> Can currying include the given topic? Can > I do something like: > > $foo = &bar.assuming( _ => 0) > > or whatever the latest syntax is? Oops. More clearly: sub bar is given($foo) { ... } $foo = &bar.assuming( foo => 0 ) -- ralph

Re: [perl #18219] on_exit not portable

2002-11-05 Thread Josh Wilmes
At 21:09 on 11/05/2002 GMT, Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Mon, Nov 04, 2002 at 07:45:46PM -0500, Josh Wilmes wrote: > > However, that still assumes we have atexit() everywhere. This appears to > > not be true on SunOS at least- apparently it has on_exit, though. > > IIRC ANSI

Re: Unifying invocant and topic naming syntax

2002-11-05 Thread Me
> > My imagination suggests to me that in a > > typical short perl 6 script > > That's some imagination you've got there! ;-) :> > My estimate (based on the -- not inconsiderable -- > code base of my own modules) is closer to 5%. Your estimate of what others will do when knocking out 10 line s

perl6-lang Project Management

2002-11-05 Thread Michael Lazzaro
I have a rather fundamental proposal. The A's and E's represent the framework and major decisions for Perl6, but not every minor niggling issue and detail. As we keep seeing, there is no shortage of things to pin down. We need to do that, and we need to do it in the same rough order as the Ap

Re: Continuations

2002-11-05 Thread Damian Conway
Luke Palmer wrote: I just need a little clarification about yield(). The first point of clarification is that the subject is a little off. C gives us *co-routines*, not *continuations*. consider this sub: sub iterate(@foo) { yield for @foo; undef; } (Where yield defaults to the t

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Damian Conway
Michael Lazzaro proposed: It's up to Larry, and he knows where we're all coming from. Unless anyone has any _new_ observations, I propose we pause the debate until a decision is reached? I second the motion! Damian

Re: Need for fingerprinting? [was: Re: What to do if Digest::MD5 is unavailable?]

2002-11-05 Thread Rhys Weatherley
Nicholas Clark wrote: > I'm not convinced. Compiling the computed goto core with any sort of > optimisation turns on *really* hurts the machine. I think it's over a > minute even a 733 MHz PIII, and it happily pages everything else out while > it's doing it. :-( Use the "-fno-gcse" option to gcc,

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Damian Conway
Scott Duff wrote: I'm all for one or two unicode operators if they're chosen properly (and I trust Larry to do that since he's done a stellar job so far), but what's the mechanism to generate unicode operators if you don't have access to a unicode-aware editor/terminal/font/etc.? IS the only rec

Re: 'for' clarification, summary...

2002-11-05 Thread Damian Conway
Buddha Buck wrote: Examples: # process @array, one element at a time for @array -> $x { ... }; Yes. # process @array, in pairs for @array -> $x, $y { ... }; Yes. # process all of @a, then all of @b, one element at a time for @a, @b -> $x { ... }; Yes. # process @a, then @b, in pai

Re: Supercomma!

2002-11-05 Thread Damian Conway
Michael Lazzaro asked: So how could we say "take 2 elements from @a, stepping 10 indices at a time, plus one from @b"? I think it's overreaching to try and fold this into C. I'd suggest that hyperslicing @a within a C will probably take care of that (presumably uncommon) case. Damian

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Michael Lazzaro
As one of the instigators of this thread, I submit that we've probably argued about the Unicode stuff enough. The basic issues are now known, and it's known that there's no general agreement on any of this stuff, nor will there ever be. To wit: -- Extended glyphs might be extremely useful in

Re: Unicode operators

2002-11-05 Thread Flaviu Turean
one more data point from a person who lived, travelled and used computers in a few countries (Romania, France, Germany, Belgium, UK, Canada, US, Holland, Italy). paraphrasing: rule 1: if it's not on my keyboard, it doesn't exist; rune 2: if it's not on everybody's keyboard, it doesn't exist. lon

Re: Supercomma!

2002-11-05 Thread Michael Lazzaro
On Tuesday, November 5, 2002, at 01:40 PM, Damian Conway wrote: As Buddha Buck suggested elsewhere, and as I have coded above, I would imagine that this functionality would be mediated by pairs and merged into a single C function. So that last example is just: for zip(@a=>2,@b=>1) -> $x,$y,$z

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Richard Proctor
On Tue 05 Nov, Smylers wrote: > Richard Proctor wrote: > > > I am sitting at a computer that is operating in native Latin-1 and is > > quite happy - there is no likelyhood that UTF* is ever likely to reach > > it. > > > > ... Therefore the only addition characters that could be used, that > > wil

Re: [RFC] Perl Operator List, TAKE 6

2002-11-05 Thread Dennis Haney
Michael Lazzaro wrote: ~ - force to string context ~ ~= - string concat ARG. When did this get chosen? ~ has to be absolutly the most difficult letter to type on the intire keyboard along with ^ and ", because they are also used as a prefix to make û, ü, õ,

Re: Supercomma! (was Re: UTF-8 and Unicode FAQ, demos)

2002-11-05 Thread Damian Conway
Scott Duff wrote: Very nice. The n-ary "zip" operator. Um ... could we have a zip functor as well? Yes, I expect so. Much as C<|>, C<&>, and C<^> will be operator versions of C, C, and C. And I'd suggest that it be implemented something like: sub zip(ARRAY *@sources; $by = 1) { if exi

Re: [perl #18219] on_exit not portable

2002-11-05 Thread Nicholas Clark
On Mon, Nov 04, 2002 at 07:45:46PM -0500, Josh Wilmes wrote: > At 18:57 on 11/04/2002 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > > atexit is not an alternative, because we might have multiple > > interpreters to clean up like in t/op/interp_2. > > So the issue here is that on_exit can

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Smylers
Richard Proctor wrote: > I am sitting at a computer that is operating in native Latin-1 and is > quite happy - there is no likelyhood that UTF* is ever likely to reach > it. > > ... Therefore the only addition characters that could be used, that > will work under UTF8 and Latin-1 and Windows ...

Re: [RFC] Perl6 Operator List, Take 5

2002-11-05 Thread Damian Conway
Peter Haworth wrote: On Wed, 30 Oct 2002 15:31:24 -0800, Michael Lazzaro wrote: Meaning that the list: +^- force to numeric context, complement ~^- force to string context, complement simply becomes: ^ - complement (type-specific) Does this include booleans? I really like

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Smylers
Dan Kogai wrote: > We already have source filters in perl5 and I'm pretty much sure > someone will just invent yet another 'use operators => "ascii";' kind > of stuff in perl6. I think that's backwards to have operators being funny characters by default but requiring explicit declaration to use w

Re: Unifying invocant and topic naming syntax

2002-11-05 Thread Allison Randal
On Tue, Nov 05, 2002 at 05:13:45AM -0600, Me wrote: > > relatively few subroutines need access > > to the upscope topic. > > Well, this is a central issue. What are > the real percentages going to be here? > Just how often will one type the likes > of > > -> is given($foo is topic) { ... } >

Re: Keywords global or only in context?

2002-11-05 Thread Damian Conway
Ken Fox wrote: I've been assuming that a keyword will only have meaning in contexts where the keyword is valid. Given the shiny new top-down grammar system, there's no requirement for keywords to be global. (Context sensitive keywords fall out of Perl 6 grammars naturally -- just the opposite of

Re: Unifying invocant and topic naming syntax

2002-11-05 Thread Damian Conway
ralph hypothesized: My imagination suggests to me that in a typical short perl 6 script, between 20% and 50% of all sub defs would use the upscope topic... ;> That's some imagination you've got there! ;-) My estimate (based on the -- not inconsiderable -- code base of my own modules) is closer

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Jonathan Scott Duff
I'm all for one or two unicode operators if they're chosen properly (and I trust Larry to do that since he's done a stellar job so far), but what's the mechanism to generate unicode operators if you don't have access to a unicode-aware editor/terminal/font/etc.? IS the only recourse to use the "n

Re: [CVS ci] Parrot_destroy

2002-11-05 Thread Leopold Toetsch
Leopold Toetsch wrote: Brent Dax wrote: Can we add a way to explicitly free the memory associated with a buffer without freeing the header? That seems like it could be useful in other areas too (although I'm not quite sure where) So mixing the 2 schemes is a PITA, IMHO. did I write

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Michael Lazzaro
Thanks, I've been hoping for someone to post that list. Taking it one step further, we can assume that the only chars that can be used are those which: -- don't have an obvious meaning that needs to be reserved -- appear decently on all platforms -- are distinct and recognizable in the tiny fon

Re: [RFC] Perl6 Operator List, Take 5

2002-11-05 Thread Michael Lazzaro
On Tuesday, November 5, 2002, at 06:51 AM, Peter Haworth wrote: On Wed, 30 Oct 2002 15:31:24 -0800, Michael Lazzaro wrote: Meaning that the list: +^- force to numeric context, complement ~^- force to string context, complement simply becomes: ^ - complement (type-specific)

FMTWYENTK about := ( :-)

2002-11-05 Thread fearcadi
this is not a description or definition of something. It is just set of questions and confusions that I have when I encounter words like "variable" , "name" , "alias", "assign" in perl . In the form of explanation. But actually these are questions . so , what follows is not the "how it actuall

Continuations

2002-11-05 Thread Luke Palmer
I just need a little clarification about yield(). consider this sub: sub iterate(@foo) { yield for @foo; undef; } (Where yield defaults to the topic) Presumably. @a = (1, 2, 3, 4, 5); while($_ = iterate @a) { print } Will print "12345". Or is that

Re: Supercomma! (was Re: UTF-8 and Unicode FAQ, demos)

2002-11-05 Thread Ken Fox
Jonathan Scott Duff wrote: Um ... could we have a zip functor as well? I think the common case will be to pull N elements from each list rather than N from one, M from another, etc. So, in the spirit of timtowtdi: for zip(@a,@b,@c) -> $x,$y,$z { ... } sub zip (\@:ref repeat{1,}) { my $ma

'for' clarification, summary...

2002-11-05 Thread Buddha Buck
Here's my current understanding of what's under discussion for for-loops: Larry wants to eliminate the ; from the RHS of the ->, so the only thing for needs to know about the RHS is the number and types of the arguments. This puts the specification about how to generate those arguments on the

Re: UTF-8 and Unicode FAQ, demos

2002-11-05 Thread Matthew Zimmerman
On Mon, Nov 04, 2002 at 12:26:56PM -0800, Austin Hastings wrote: > > > Of course, I also think I'm allowed to be a little inconsistent in > > forcing things like ?op? on people. After all, there's gotta be > > some advantage to being the Fearless Leader... > > Which kind of begs the question: Wh

Re: Supercomma! (was Re: UTF-8 and Unicode FAQ, demos)

2002-11-05 Thread Jonathan Scott Duff
On Tue, Nov 05, 2002 at 03:21:54PM +1100, Damian Conway wrote: > Larry wrote: > > But let's keep it > > out of the signature, I think. In other words, if something like > > > > for @x ∥ @y ∥ @z -> $x, $y, $z { ... } > > > > is to work, then > > > > @result = @x ∥ @y ∥ @z; > > >

Re: [perl #18097] [PATCH] allow NULL interpreter in sprintf like functions

2002-11-05 Thread Juergen Boemmels
Leopold Toetsch <[EMAIL PROTECTED]> writes: > In perl.perl6.internals, you wrote: > > Leopold Toetsch <[EMAIL PROTECTED]> writes: > > >> As long as packfile functions don't allocate memory (besides their > >> own structures) it doesn't matter very much. Nethertheless, when > >> doing changes I wo

Re: [RFC] Perl6 Operator List, Take 5

2002-11-05 Thread Peter Haworth
On Wed, 30 Oct 2002 15:31:24 -0800, Michael Lazzaro wrote: > Meaning that the list: > >+^- force to numeric context, complement >~^- force to string context, complement > > simply becomes: > >^ - complement (type-specific) Does this include booleans? I really liked the i

Keywords global or only in context?

2002-11-05 Thread Ken Fox
Me wrote: YAK for marking something. I've been assuming that a keyword will only have meaning in contexts where the keyword is valid. Given the shiny new top-down grammar system, there's no requirement for keywords to be global. (Context sensitive keywords fall out of Perl 6 grammars naturally

Re: [perl #18097] [PATCH] allow NULL interpreter in sprintf like functions

2002-11-05 Thread Leopold Toetsch
In perl.perl6.internals, you wrote: > Leopold Toetsch <[EMAIL PROTECTED]> writes: >> As long as packfile functions don't allocate memory (besides their >> own structures) it doesn't matter very much. Nethertheless, when >> doing changes I would include an interpreter param. > I wonder if 'interpr

Re: [perl #18170] [PATCH] very complete lexical scope implementation

2002-11-05 Thread Juergen Boemmels
Jonathan Sillito <[EMAIL PROTECTED]> writes: > On 2 Nov 2002, Juergen Boemmels wrote: > > > Ok, I tested the patch (I tried to use this scratchpads for the scheme > > compiler) > > One thing I missed (or at least didn't find): How can I generate a new > > scope? new_pad generates a new one one th

Re: Unifying invocant and topic naming syntax

2002-11-05 Thread Me
> relatively few subroutines need access > to the upscope topic. Well, this is a central issue. What are the real percentages going to be here? Just how often will one type the likes of -> is given($foo is topic) { ... } rather than -> $foo: { ... } ? My imagination suggests to me tha

Re: Possible Vector Operator Notations

2002-11-05 Thread Piers Cawley
Smylers <[EMAIL PROTECTED]> writes: > Phew! I'm slightly concerned at this list making Piers's job too easy, > but have tried to minimize that effect by posting on a Monday (meaning > that this mail is ineligible for inclusion in the next summary and is > likely to be out of date by the time of th

Re: [perl #18097] [PATCH] allow NULL interpreter in sprintf like functions

2002-11-05 Thread Piers Cawley
Leopold Toetsch <[EMAIL PROTECTED]> writes: > Juergen Boemmels wrote: > >> Leopold Toetsch <[EMAIL PROTECTED]> writes: > >>>When there is no interpreter in PIO_eprint, vfprintf gets called. >>> >> As we are in the state of changing packfile.c (at least long term): >> Should the packfile functions

Re: Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Richard Proctor
This UTF discussion has got silly. I am sitting at a computer that is operating in native Latin-1 and is quite happy - there is no likelyhood that UTF* is ever likely to reach it. The Gillemets are coming through fine, but most of the other heiroglyphs need a lot to be desired. Lets consider the

[CVS ci] Re: Should memory be washed?

2002-11-05 Thread Leopold Toetsch
Peter Gibbs wrote: (The latter currently breaks recycling of bufferlike headers) Fixed. Thanks again for this. s. also "Questions about Px registers and memory usage" leo

Re: [perl #18127] [PATCH] Implicit stack direction probe

2002-11-05 Thread Leopold Toetsch
Dan Sugalski wrote: At 9:41 AM +0100 10/30/02, Leopold Toetsch wrote: Jason Gloudon wrote: ... By default both compilers align stack variables at their natural alignment, so PMC pointers would normally fall on 4 byte boundaries. So, this "someone" are we (parrot itself) + language extensio

Re: Need for fingerprinting? [was: Re: What to do if Digest::MD5 is unavailable?]

2002-11-05 Thread Leopold Toetsch
Jason Gloudon wrote: On Mon, Nov 04, 2002 at 09:21:06PM +, Nicholas Clark wrote: It turns out the optimization does make a difference for gcc at least, but for a strange reason. It seems that without optimization gcc allocates a *lot* more space on the stack for cg_core. I suspect this is

Re: Should memory be washed?

2002-11-05 Thread Leopold Toetsch
Peter Gibbs wrote: What is the official position with respect to laundry services in the Parrot memory allocation code? I would strongly urge for calloc()ed memory as done now. Some code assumes that the memory returned by Parrot_allocate and its cousins will be pre-washed, while other code

Re: Need for fingerprinting? [was: Re: What to do if Digest::MD5 is unavailable?]

2002-11-05 Thread Leopold Toetsch
Nicholas Clark wrote: On Mon, Nov 04, 2002 at 10:09:06AM -0500, [EMAIL PROTECTED] wrote: [ JIT + cg_core ] I'm not convinced. Compiling the computed goto core with any sort of optimisation turns on *really* hurts the machine. Here gcc 2.95.2 just fails (256 MB Mem, same swap) I doubt t

Re: [perl #18219] on_exit not portable

2002-11-05 Thread Leopold Toetsch
Josh Wilmes wrote: At 18:57 on 11/04/2002 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: atexit is not an alternative, because we might have multiple interpreters to clean up like in t/op/interp_2. So the issue here is that on_exit can take a parameter to be passed into the handler func

Unicode operators [Was: Re: UTF-8 and Unicode FAQ, demos]

2002-11-05 Thread Dan Kogai
On Tuesday, Nov 5, 2002, at 04:58 Asia/Tokyo, Larry Wall wrote: (B> It would be really funny to use cent $B!q(B, pound $B!r(B, or yen (J\(B as a sigil, (B> though... (B (BWhich 'yen' ? I believe you already know \ (U+005c -> REVERSE SOLIDUS) (Bis prited as a yen figure in most of Japa