RFC 39 (v3) Perl should have a print operator

2000-08-31 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Perl should have a print operator =head1 VERSION Maintainer: Jon Ericson [EMAIL PROTECTED] Date: 5 August 2000 Last-Modified: 30 August 2000 Mailing List: [EMAIL PROTECTED] Version: 3 Number:

RFC 178 (v1) Lightweight Threads

2000-08-31 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Lightweight Threads =head1 VERSION Maintainer: Steven McDougall [EMAIL PROTECTED] Date: 30 Aug 2000 Mailing List: [EMAIL PROTECTED] Version: 1 Number: 178 =head1 ABSTRACT A lightweight thread

RFC 180 (v1) Object Class hooks into Cprintf

2000-08-31 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Object Class hooks into Cprintf =head1 VERSION Maintainer: Mark Biggar [EMAIL PROTECTED] Date: 30 Aug 2000 Mailing List: [EMAIL PROTECTED] Version: 1 Number: 180 =head1 ABSTRACT There needs to

RFC 181 (v1) Formats out of core / New format syntax

2000-08-31 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Formats out of core / New format syntax =head1 VERSION Maintainer: Nathan Wiger [EMAIL PROTECTED] Date: 30 Aug 2000 Mailing List: [EMAIL PROTECTED] Version: 1 Number: 181 Status:

Re: the C JIT

2000-08-31 Thread David Corbin
"David L. Nicol" wrote: Dan Sugalski wrote: I do want to have a set of C/XS/whatever sources as part of the test suite as well--right now perl's test suite only tests the language, and I think we should also test the HLL interface we present, as it's just as important in some ways.

Re: RFC Updates

2000-08-31 Thread David Corbin
Adam Turoff wrote: A handful of long overdue updates to http://dev.perl.org/rfc have been made: - All RFCs are now maintained in both POD and HTML. HTML conversion is courtesy of pod2html. - More detailed summaries of all RFCs are available, organized by RFC number and

perl6-language-objects Report 31 Aug 2000

2000-08-31 Thread Nathan Wiger
=head1 VERSION Date: 31 Aug 2000 Number: 1 Mailing List: [EMAIL PROTECTED] Chair: Nathan Wiger [EMAIL PROTECTED] =head1 SUMMARY The main point which most discussions are currently centering around is the idea of fundamental embedded objects in Perl 6. With this concept, a simple

RFC 171 (v2) my Dog $spot should call a constructor implicitly

2000-08-31 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE my Dog $spot should call a constructor implicitly =head1 VERSION Maintainer: Michael Fowler [EMAIL PROTECTED] Date: 29 August 2000 Last Modified: 31 August 2000 Mailing List: [EMAIL

RFC 184 (v1) Perl should support an interactive mode.

2000-08-31 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Perl should support an interactive mode. =head1 VERSION Maintainer: Ariel Scolnicov [EMAIL PROTECTED] Date: 31 Aug 2000 Mailing List: [EMAIL PROTECTED] Version: 1 Number: 184 Status: Developing

RFC 185 (v1) Thread Programming Model

2000-08-31 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Thread Programming Model =head1 VERSION Maintainer: Steven McDougall [EMAIL PROTECTED] Date: 31 Aug 2000 Mailing List: [EMAIL PROTECTED] Version: 1 Number: 185 Status: Developing =head1

RFC 186 (v1) Standard support for opening i/o handles on scalars and

2000-08-31 Thread Perl6 RFC Librarian
arrays-of-scalars Reply-To: [EMAIL PROTECTED] This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Standard support for opening i/o handles on scalars and arrays-of-scalars =head1 VERSION Maintainer: Eryq (Erik Dorfman) [EMAIL PROTECTED] Date: 23 Aug

Re: Designing Perl 6 data crunching (was Re: n-dim matrices)

2000-08-31 Thread Jeremy Howard
Baris wrote: We're talking about how we'll write Perl 6 programs, not PDL programs. We need to ensure that the syntax we create is Perlish. Aggreed. But there is nothing wrong with making the syntax user friendly, or am I totally missing what perl is? Perl is user-friendly to Perl users.

Re: Designing Perl 6 data crunching (was Re: n-dim matrices)

2000-08-31 Thread Christian Soeller
Jeremy Howard wrote: The 1st implementation of Perl 6 may not provide all the optimisations we've come to expect from our data crunching language of choice. For this reason maybe PDL will continue to exist independently in Perl 6 at least for a while, although a fair bit of rewriting will be

Re: Designing Perl 6 data crunching (was Re: n-dim matrices)

2000-08-31 Thread Baris
We're talking about how we'll write Perl 6 programs, not PDL programs. We need to ensure that the syntax we create is Perlish. Aggreed. But there is nothing wrong with making the syntax user friendly, or am I totally missing what perl is? Why do we have qw()? Why do we have "=" as an alias for

Re: RFC 39 (v3) Perl should have a print operator

2000-08-31 Thread Tom Christiansen
Perl supplies an operator for line input - angle brackets. This is no analogous operator for output. I propose "inverse angle brackets": "Print this line.\n"; Perl already *has* a print operator: "print". :-) The problem with what you have there is that it hides the act of output within

Re: RFC 181 (v1) Formats out of core / New format syntax

2000-08-31 Thread Philip Newton
On 31 Aug 2000, Perl6 RFC Librarian wrote: my format $FILE_FORMAT = @: @ $name, $ssn . Then this is even less different and scary. Get rid of that Cmy and it's Perl 5. s/that Cmy/that Cmy and the dollar sign/; Cheers, Philip -- Philip Newton [EMAIL PROTECTED]

Re: RFC 180 (v1) Object Class hooks into Cprintf

2000-08-31 Thread Hildo Biersma
=head1 ABSTRACT There needs to be a way for an object class to define Cprintf format specifiers for use in formatting objects into strings with Cprintf and Csprintf. I find myself agreeing with your sentiment, but the approach in this RFC is not sufficiently general. Why only provide

Re: RFC 174 (v1) Parse Cfunc($obj, @args) as Cfunc $obj (@args)

2000-08-31 Thread Tom Christiansen
Not every (natural) language does it that way; some place the most important thing -last-. A Japanese Perl might want to say "darn" STDERR print; for instance (Japanese is a subject-object-verb language). Sure; Latin had SOV, and you still see SOV in Romance when pronouns are involved.

Re: Looping in perl

2000-08-31 Thread Jeremy Howard
Baris wrote: Looping through the matrix elements is probably most common thing people do in matrix computation. And because of some weird reason I am not aware of, the only way to do this efficiently is to write your program in C. So everybody I know sooner or later switches to C because of

Re: RFC Updates

2000-08-31 Thread iain truskett
* Adam Turoff ([EMAIL PROTECTED]) [31 Aug 2000 17:41]: A handful of long overdue updates to http://dev.perl.org/rfc have been made: [...] - More detailed summaries of all RFCs are available, organized by RFC number and working group. See http://dev.perl.org/rfc/by-number.html and

The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Bart Lateur
Likely this should be an RFC. I'm too lazy to write it in that format right now, but I want to send this thing out before it slips my mind again. Somebody else may pick it up, if he or she wants it. If not, I'll eventually may have to do it myself. The articial distinction between do

Re: n-dim matrices

2000-08-31 Thread Buddha Buck
At 08:52 AM 8/31/00 -0400, Karl Glazebrook wrote: Jeremy Howard wrote: we are after SIMPLE syntax. This means like C, Fortran, IDL and Matlab. Perl is about working like most people expect. Yes, we are after simple syntax. We also want to make to hard things possible. Therefore we

Re: Designing Perl 6 data crunching (was Re: n-dim matrices)

2000-08-31 Thread Karl Glazebrook
Jeremy Howard wrote: We're talking about how we'll write Perl 6 programs, not PDL programs. We need to ensure that the syntax we create is Perlish. It needs to fit in with the rest of the language--our proposals won't get through if programs look quite different in sections just because

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Peter Scott
At 11:38 AM 8/31/00 +0200, Bart Lateur wrote: The articial distinction between do BLOCK while condition; and EXPR while condition; should go, because the former is nothing but a subcase of the latter. Currently, the former executes the do BLOCK at least once, while the

Re: RFC 174 (v1) Parse Cfunc($obj, @args) as Cfunc $obj (@args)

2000-08-31 Thread Nathan Wiger
Bart Lateur wrote: Combine this with the RFC that bare filehandles must die, in favor of $FH filehandles, and you won't be able to make the distinction between print $HANDLE, $string; and print $string, $string; Sure you will! Please re-read the precedence rules from the

Re: Proposed RFC for matrix indexing and slicing

2000-08-31 Thread Larry Wall
Karl Glazebrook writes: : I have a lot of respect for Larry, but as a scientist I distrust all this : deference to one single authority. Well, sure, but someone still has to decide who gets the grants. :-) : I don't know if Larry has any experience in scientific programming of the : sort PDL

Re: RFC 181 (v1) Formats out of core / New format syntax

2000-08-31 Thread Nathan Wiger
Johan Vromans wrote: Good work! Thanks. :-) Is there any reason left to maintain formats as something internally special? Well, as you note in your implementation suggestions, it would be nice if Perl compiled the format the first time around. Along with the implicit constructors

Re: RFC 180 (v1) Object Class hooks into Cprintf

2000-08-31 Thread Mark A. Biggar
Hildo Biersma wrote: =head1 ABSTRACT There needs to be a way for an object class to define Cprintf format specifiers for use in formatting objects into strings with Cprintf and Csprintf. I find myself agreeing with your sentiment, but the approach in this RFC is not sufficiently

Re: RFC 72 (v1) The regexp engine should go backward as well as forward.

2000-08-31 Thread Mark-Jason Dominus
I am unemcumbered by any knowledge of the regex engine implementation, Yeah. But I do know something about it, and I have already expressed my informed opinion. Having you come along to say that you don't know anything about it at all, but that you nevertheless think I am mistaken, is

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Christopher J. Madsen
Tom Christiansen writes: However, I really don't want to see 'return' become a kind of 'last' for do{}. How would I return from a subroutine from within a do loop? You already can't do that (as it were) from within an eval. Yes, but 'eval' has the semantics "run this code but don't let

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Tom Christiansen
AFAICT we could make it a syntax error iff foo is not used in void context; Perl must be able to tell whether or not it is used in order to know what context the result is in, right? Well, that depends. Often you must delay till run-time. When Perl simply sees something like: sub fn {

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Tom Christiansen
Tom Christiansen writes: However, I really don't want to see 'return' become a kind of 'last' for do{}. How would I return from a subroutine from within a do loop? You already can't do that (as it were) from within an eval. Yes, but 'eval' has the semantics "run this code but don't let

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Tom Christiansen
However, I really don't want to see 'return' become a kind of 'last' for do{}. How would I return from a subroutine from within a do loop? You already can't do that (as it were) from within an eval. But I while I am not completely bothered by letting the value dangle here: ($msg,

do BLOCK as inline sub? (was Re: do BLOCK while COND and EXPR while COND)

2000-08-31 Thread Uri Guttman
"TC" == Tom Christiansen [EMAIL PROTECTED] writes: TC It just kinda irks me here: TC $total += 2 * do { TC my $count = 0; TC for $n (@nums) { $count += $n } TC $count; TC }; TC I rather that were: TC $total += 2 * do { TC my $count = 0; TC for $n

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Christopher J. Madsen
Peter Scott writes: I dunno, maybe a last in a do block whose value is used by something should be a syntax error. We're talking about code like $x += do { $y = get_num; last if $y == 99; $y } while defined $y; right? *Shudder* Yes, but we're also talking about code like

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-08-31 Thread Ken Fox
Chaim Frenkel wrote: You are now biting off quite a bit. What good is half a transaction? If transactions are to be useful, they should be fully supported -- including rolling back stuff some third party module did to its internal variables. (Maybe that's a little extreme ;) I believe that

A tentative list of vtable functions

2000-08-31 Thread Dan Sugalski
Okay, here's a list of functions I think should go into variable vtables. Functions marked with a * will take an optional type offset so we can handle asking for various permutations of the basic type. type name get_bool get_string * get_int * get_float * get_value

Re: A tentative list of vtable functions

2000-08-31 Thread Buddha Buck
At 04:43 PM 8/31/00 -0400, Dan Sugalski wrote: Okay, here's a list of functions I think should go into variable vtables. Functions marked with a * will take an optional type offset so we can handle asking for various permutations of the basic type. Perhaps I'm missing something... Is this for

Re: the C JIT

2000-08-31 Thread David L. Nicol
Ken Fox wrote: Trolling? No, I'm not, it's the direction that RFC 61 ends up if you let it take you there. fast perl6 becomes, as well as slicing, dicing and scratching your back, a drop-in replacement for gcc. -- David Nicol 816.235.1187 [EMAIL PROTECTED]

Re: A tentative list of vtable functions

2000-08-31 Thread Jarkko Hietaniemi
I'm confused (I might have missed some discussions, being busy in other fronts) so please bear with my silly questions. type The basic set-in-stone types are...? name Huh? A name for what? (How does this relate to a 'string'?) get_bool Stored as...? char? int? Boolean or

Re: A tentative list of vtable functions

2000-08-31 Thread Tom Christiansen
get_int * get_float * Could you elaborate on these a lot? What's an 'int'? What's a 'float'? Having lately been battling a lot with quad ints and doubles vs long doubles I seriously want this interface not to suck. I was a tad concerned there, too. I'm hoping one can painlessly

Re: A tentative list of vtable functions

2000-08-31 Thread Ken Fox
Dan Sugalski wrote: get_value set_value Wouldn't these go on the SV and not on the inner type? Maybe I'm thinking value when you're saying variable? The following seem useful on variables too: before_get_value after_get_value before_set_value after_set_value There ought to be

Re: A tentative list of vtable functions

2000-08-31 Thread Jarkko Hietaniemi
Wouldn't these go on the SV and not on the inner type? Maybe I'm thinking value when you're saying variable? The following seem useful on variables too: before_get_value after_get_value before_set_value after_set_value There ought to be specializations of get_value and

Re: the C JIT

2000-08-31 Thread Ken Fox
[perl6-language removed from the follow-up] "David L. Nicol" wrote: I want to see Perl become a full-blown C/C++ JIT. Since Perl is for a large part a compatible subset of C I don't see this as unrealistic. Trolling? First, Perl is more like lisp with a good syntax -- in other words about as

Re: A tentative list of vtable functions

2000-08-31 Thread Nathan Torkington
Jarkko Hietaniemi writes: I'm not too worried about getting the vtbl right at the first because it will be pretty obvious how it should go once the code starts to form. Some planning isn't that painful :-) Yes. Especially given that vtables are an unbenchmarked change. It'd be good to

Re: the C JIT

2000-08-31 Thread Ken Fox
"David L. Nicol" wrote: No, I'm not, it's the direction that RFC 61 ends up if you let it take you there. You seem to be confusing: (1) linking C code with Perl with (2) compiling Perl to C code There is a world of difference. Swig does (1) pretty well already. If you want a first

Re: Optional Separate Programs for Interpreter Passes

2000-08-31 Thread Ken Fox
Fisher Mark wrote: The rest of us with our TVs, VCRs, and so on have only compiled code in our devices. I'd buy a microwave that resets to 'JAPH' after a power failure. Maybe. ;) - Ken

Re: perl6-language-regex summary for 20000831

2000-08-31 Thread Richard Proctor
On Thu 31 Aug, Mark-Jason Dominus wrote: Summary report 2831 RFC 110: counting matches (Richard Proctor) An extensive side discussion of $count = () = m/PAT/g; developed, including an excursion off into context issues. I have asked the author to take this idiom

Re: RFC 72 (v1) The regexp engine should go backward as well as forward.

2000-08-31 Thread Peter Heslin
On Wed, Aug 30, 2000 at 11:54:29PM -0400, Mark-Jason Dominus wrote: The big thing I find missing from this RFC is compelling examples. You are proposing a major change to the regex engine but you only have two examples. Both involve only fixed strings and one of them is artificial. I

Re: RFC 72 (v2) The regexp engine should go backward as well as forward.

2000-08-31 Thread Peter Heslin
On Wed, Aug 30, 2000 at 04:07:51PM -0400, mike mulligan wrote: Can this be repackaged in such a way that it is a more natural extension of the existing regexp language? The RFC notes that the look-behind construct (?= pattern) can almost be used. Two issues: 1. as currently implemented,

$ and copying: rfc 158 (was Re: RFC 110 (v3) counting matches)

2000-08-31 Thread Uri Guttman
"MD" == Mark-Jason Dominus [EMAIL PROTECTED] writes: MD The $ cost is paid by every regex in the entire program, whether they MD used it or not. This is because Perl has no way to tell which regexes MD use $ and which do not. actually it is more like which code refers to $ and which

Re: $ and copying: rfc 158 (was Re: RFC 110 (v3) counting matches)

2000-08-31 Thread Mark-Jason Dominus
MD One of Uri's suggestions in RFC 158 was to compute $ only for MD regexes that have a /k modifier. This would solve the $ problem MD because Perl would compute $ only when asked to, and not for MD every other regex in the rest of the program. the rfc was about making $ private

Re: $ and copying: rfc 158 (was Re: RFC 110 (v3) counting matches)

2000-08-31 Thread Tom Christiansen
actually it is more like which code refers to $ and which regex that caem from. the problem stems from $ being a global and not local like $1. Say what? They scope the same! sub foo { /./ } $_ = "stuff"; /.../; foo(); print $; --tom

Re: $ and copying: rfc 158 (was Re: RFC 110 (v3) counting matches)

2000-08-31 Thread Mark-Jason Dominus
in any case, i think we have a fair agreement on rfc 158 and i will freeze it if there is no further comments on it. In light of this: $ The string matched by the last successful pattern match (not counting any matches hidden within a BLOCK or eval() enclosed by the

Re: RFC 34 (v3) Angle brackets should not be used for file globbing

2000-08-31 Thread Jon Ericson
Tom Christiansen wrote: =item Complex filehandle references my %filesystem; my $filename = '/etc/shells'; open $filesystem{$filename}, $filename or die "can't open $filename: $!"; print $filesystem{$filename}; __END__ GLOB{0xa042284} This goes

Re: RFC 34 (v3) Angle brackets should not be used for file globbing

2000-08-31 Thread Tom Christiansen
Is some technical reason that this can't be done in perl 5? I hate having to add another pair of braces just to reassure perl that I didn't forget a comma: print {$fh{$name}} "data\n"; Indirect objects are very limited in what they can be. --tom

Re: RFC 34 (v3) Angle brackets should not be used for file globbing

2000-08-31 Thread Nathan Wiger
Tom Christiansen wrote: Is some technical reason that this can't be done in perl 5? I hate having to add another pair of braces just to reassure perl that I didn't forget a comma: print {$fh{$name}} "data\n"; Indirect objects are very limited in what they can be. Currently, but

RFC 182 (v1) JART - Just Another Regression Test

2000-08-31 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE JART - Just Another Regression Test =head1 VERSION Maintainer: Michael G Schwern [EMAIL PROTECTED] Date: Aug 30 2000 Mailing List: [EMAIL PROTECTED] Version: 1 Number: 182 Status:

Re: RFC Updates

2000-08-31 Thread Adam Turoff
On Thu, Aug 31, 2000 at 08:02:36AM -0400, David Corbin wrote: Comments, criticisms, etc. welcome. Can you put a legend explaining the color code on the pages where the colors are used? Look again. Next request? ;-) Z.

Re: RFC Updates

2000-08-31 Thread Adam Turoff
On Thu, Aug 31, 2000 at 07:08:38PM +1100, iain truskett wrote: * Adam Turoff ([EMAIL PROTECTED]) [31 Aug 2000 17:41]: A handful of long overdue updates to http://dev.perl.org/rfc have been made: [...] - More detailed summaries of all RFCs are available, organized by RFC number and

Re: A tentative list of vtable functions

2000-08-31 Thread Dan Sugalski
At 03:45 PM 8/31/00 -0600, Nathan Torkington wrote: Jarkko Hietaniemi writes: I'm not too worried about getting the vtbl right at the first because it will be pretty obvious how it should go once the code starts to form. Some planning isn't that painful :-) Yes. Especially given that

Re: A tentative list of vtable functions

2000-08-31 Thread David L. Nicol
Dan Sugalski wrote: Okay, here's a list of functions I think should go into variable vtables. All the math functions are in here. Can the entries that my type does not use be replaced with other functions that my type does use? Functions marked with a * will take an optional type offset

Re: A tentative list of vtable functions

2000-08-31 Thread Jarkko Hietaniemi
How about to_string * from_string * as generalizations of formatted/pretty input/output and freeze/thaw (cf printf/Data::Dumper/Storable)? -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is 'dead'. -- Jack Cohen

Re: A tentative list of vtable functions

2000-08-31 Thread Dan Sugalski
At 04:59 PM 8/31/00 -0400, Buddha Buck wrote: At 04:43 PM 8/31/00 -0400, Dan Sugalski wrote: Okay, here's a list of functions I think should go into variable vtables. Functions marked with a * will take an optional type offset so we can handle asking for various permutations of the basic type.

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-08-31 Thread Chaim Frenkel
"KF" == Ken Fox [EMAIL PROTECTED] writes: KF Chaim Frenkel wrote: You are now biting off quite a bit. KF What good is half a transaction? If transactions are to be useful, KF they should be fully supported -- including rolling back stuff some KF third party module did to its internal

Re: A tentative list of vtable functions

2000-08-31 Thread Dan Sugalski
At 04:05 PM 8/31/00 -0500, Jarkko Hietaniemi wrote: I'm confused (I might have missed some discussions, being busy in other fronts) so please bear with my silly questions. type The basic set-in-stone types are...? int, float, string, ref, hash, array. All of which have multiple levels,

Re: A tentative list of vtable functions

2000-08-31 Thread Dan Sugalski
At 03:12 PM 8/31/00 -0600, Tom Christiansen wrote: get_int * get_float * Could you elaborate on these a lot? What's an 'int'? What's a 'float'? Having lately been battling a lot with quad ints and doubles vs long doubles I seriously want this interface not to suck. I was a

Re: A tentative list of vtable functions

2000-08-31 Thread Dan Sugalski
At 05:30 PM 8/31/00 -0400, Ken Fox wrote: Dan Sugalski wrote: get_value set_value Wouldn't these go on the SV and not on the inner type? Maybe I'm thinking value when you're saying variable? Nope. The get/set value functions are for when something knows what the SV (or whatever we

Re: Upcoming RFC's...

2000-08-31 Thread Jeremy Howard
Buddha Buck wrote: If I'm stepping on toes here, please tell me... See my other message today for the RFCs I'm thinking of writing. Buddha--you and I should probably sought out offline which of us will write what RFC. RFC 169v2: Matrix Indexing Cover my $matrix[$x;$y;$z] syntax Add

Re: a syntax derived from constant-time hash-based n-dim matrices in perl 5

2000-08-31 Thread David L. Nicol
Nathan Wiger wrote: "David L. Nicol" wrote: @a["$i $j $k","$a $y $z"] # two points in DN n-dim syntax One problem that immediately jumps out at me is how to do this: @a[[@x], [@y]]; That is, dynamically get your indices. The above seems ok when you know them in

Re: n-dim matrices

2000-08-31 Thread Jeremy Howard
Christian Soeller wrote: No, at least 18. One more piece of semantics that would be appreciated is optional omission of trailing dimensions in slices, e.g. for a 3-dim @a: @a[0:1] == @a[0:1;] == @a[0:1;;] I'd rather see the ';' be required, but the '(0..)' not be required, so you could

Re: n-dim matrices

2000-08-31 Thread Christian Soeller
Jeremy Howard wrote: I'd rather see the ';' be required, but the '(0..)' not be required, so you This is not good! There are a lot of routines where it is very useful to specify a slice as @a[0] that should work regardless how many dimensions @a really has. There are many instances in PDL

Re: RFC 72 (v2) The regexp engine should go backward as well as forward.

2000-08-31 Thread Mike Mulligan
From: "Peter Heslin" [EMAIL PROTECTED] Sent: Thursday, August 31, 2000 10:51 PM I would propose that your version of the syntax might also function in the middle of a regexp: /GHI(?`=DEF)JKL(?`=^ABC)MNO/ would match the start of the alphabet (fixed-length example used for simplicity). That's

Re: RFC 185 (v1) Thread Programming Model

2000-08-31 Thread Michael Maraist
use Thread; $thread = new Thread \func , @args; $thread = new Thread sub { ... }, @args; async { ... }; $result = join $thread; $thread = this Thread; @threads = all Thread; $thread1 == $thread2 and ... yield(); critical { ... }; # one thread at

Re: RFC 185 (v1) Thread Programming Model

2000-08-31 Thread James Mastros
$thread = new Thread \func , @args; $thread = new Thread sub { ... }, @args; async { ... }; $result = join $thread; critical { ... }; # one thread at a time in this block =item Casync BLOCK Executes BLOCK in a separate thread. Syntactically, Casync BLOCK works

Re: RFC Updates

2000-08-31 Thread Nathan Wiger
Adam Turoff wrote: Look again. Next request? ;-) Can you continue to rock? You're kickin' my ass as RFC Librarian. Nice job. -Nate :-)

RFC Updates

2000-08-31 Thread Adam Turoff
A handful of long overdue updates to http://dev.perl.org/rfc have been made: - All RFCs are now maintained in both POD and HTML. HTML conversion is courtesy of pod2html. - More detailed summaries of all RFCs are available, organized by RFC number and working group. See

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-08-31 Thread Tom Christiansen
Which kind of "difference"?

Re: RFC 72 (v1) The regexp engine should go backward as well as forward.

2000-08-31 Thread mike mulligan
From: Mark-Jason Dominus [EMAIL PROTECTED] Sent: Wednesday, August 30, 2000 11:54 PM There are two parts to the $ penalty. The first part [ of $ penalty is ] maintaining the information for $. Maintaining this information for your prepos() function is going to incur an identical cost. I am

Re: RFC 110 (v3) counting matches

2000-08-31 Thread Mark-Jason Dominus
(mystery: how can filling in $ be a lot slower than filling in $1?) It isn't. It's the same. $1 might even be more expensive than $. It appears that many people don't understand the problem with $. I will try to explain. Maintaining the information required by $1 or $ slows down the

perl6-language-regex summary for 20000831

2000-08-31 Thread Mark-Jason Dominus
perl6-language-regex Summary report 2831 RFC 72: The regexp engine should go backward as well as forward. (Peter Heslin) This topic did not attract much discussion until the very end of the week. I sent the author a detailed critique, to which he has not responded. RFC 93

Re: RFC 110 (v3) counting matches

2000-08-31 Thread Joe McMahon
Jonathan Scott Duff wrote: How about something like this? $re = qr/(\d\d)-(\d\d)-(\d\d)/g; $re-onmatch_callback(push @list, makedate(^0,^1,^2)); $string =~ $re; It's not bad, but it loses one thing that I was trying to keep from the SNOBOL model. If you have (again,

Re: n-dim matrices

2000-08-31 Thread Karl Glazebrook
This is beginning to sound like something I would support. Heavens are we approaching some sort of consensus. This also addresses one pain in current PDL which is the difficulty of multi-dim indexing. Buddha Buck wrote: Here is a quick summary of the proposal: In the raw, arrays can be

Re: n-dim matrices

2000-08-31 Thread Buddha Buck
At 12:09 PM 8/31/00 -0400, Karl Glazebrook wrote: This is beginning to sound like something I would support. Heavens are we approaching some sort of consensus. The one thing the proposal I mentioned doesn't cover is Jeremy's desire to have $a[$i][$j][$j] be synonymous with $a[[$i,$j,$k]], and

Re: RFC 120 (v2) Implicit counter in for statements, possibly$#.

2000-08-31 Thread David L. Nicol
Chaim Frenkel wrote: This is making the index variable into an a wrapper object. No it isn't. Or at least it doesn't have to. Often there is a need to find the key an object was found in a container. More often in hashes than in arrays. And I think this discussion belongs in -data.

Re: RFC 177 (v1) A Natural Syntax Extension For Chained References

2000-08-31 Thread David L. Nicol
Perl6 RFC Librarian wrote: arsenal. The constructs are: $ref-[[LIST]] $ref-{{LIST}} The proposed respective meanings: $ref-[$elem[0]]-[$elem[1]}-[...]-[$elem[-1]] $ref-{$elem[0]}-{$elem[1]}-{...}-{$elem[-1]} why not just use single braces for

Re: RFC 179 (v1) More functions from set theory to manipulate arrays

2000-08-31 Thread Tom Christiansen
Next, what subset of the set-theory should be implemented. Obviously you refer to the basic and / or / xor, but in real practice, the other operators can be very useful. Chaining operators (especially with array-based-sets) can be a performance nightmare. Unless you use bitwise operators on

Re: the C JIT

2000-08-31 Thread Sam Tregar
On Thu, 31 Aug 2000, David L. Nicol wrote: Perl looks, and AFAIK has always looked, like "C plus lune noise" to many people. I think Perl looks like "C plus moon noise" to former C programmers. I imagine some people see it and think "Csh plus Awk noise". Perl is a lot more than

Re: Proposal: chop() dropped

2000-08-31 Thread Nathan Torkington
Eric Roode writes: Useful functions all, no doubt. But I would lobby heavily for a new set of names -- ones that can be remembered! Quick -- which trims leading spaces, champ, chump, or chimp? My favourite: chafe(). Nat

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Christopher J. Madsen
Tom Christiansen writes: One could argue that do{} should take return so it might have a value, but this will definitely annoy the C programmers. So what. So what is that it *already* annoys us, which is *why* we would like to last out of a do. Perhaps you should be able to last

Re: RFC 178 (v1) Lightweight Threads

2000-08-31 Thread Ken Fox
Perl6 RFC Librarian wrote: =head2 Each thread gets its own copy of block-scoped lexicals upon execution of Cmy Example 8 #!/my/path/to/perl foo(); Thread-new(\foo); sub foo { my $a = 1; print $a++; } [prints "11"] This must be true

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Nathan Torkington
I want last, next, etc. to magically work where I want them to: do { last if /booger/; ... } while ( ... ); Nat

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Jonathan Scott Duff
On Thu, Aug 31, 2000 at 02:13:23PM -0500, Christopher J. Madsen wrote: Jonathan Scott Duff writes: do { ... last; ... }; # exit the block immediately do { ... next; ... }; # equivalent to last? do { ... redo; ... }; #

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Peter Scott
At 11:21 AM 8/31/00 -0600, Tom Christiansen wrote: I want last, next, etc. to magically work where I want them to: I too want last to work in do loops. do { last if /booger/; ... } while ( ... ); Special cased for postfix modifiers, or generalized? If so, what's the return

Re: The distinction between do BLOCK while COND and EXPR while COND should go

2000-08-31 Thread Bart Lateur
On Thu, 31 Aug 2000 11:21:26 -0600, Tom Christiansen wrote: One could argue that do{} should take return so it might have a value, but this will definitely annoy the C programmers. So what. "Annoying" would be to have a situation that is *less* powerful in Perl than in C, not *more*. Oh, and

Re: Proposal: chop() dropped

2000-08-31 Thread Dan Zetterstrom
On Thu, 31 Aug 2000 19:59:31 +0200, you wrotc: tr/\w//dlt # Trim all leading trailing whitespace from $_ Eh, scratch that. Too much caffeine i guess. tr/\n\r\t //dlt; # Trim some whitespace. -DZ -- Tell me your dreams and I will crush them.

Re: Proposal: chop() dropped

2000-08-31 Thread Jonathan Scott Duff
On Thu, Aug 31, 2000 at 07:59:31PM +0200, Dan Zetterstrom wrote: Why not use the "function" we already got, tr? Something like: tr///l # Translate only _l_eading characters matching. tr///t # Translate only _t_railing characters matching. With "Only leading" I mean translate

Re: Proposal: chop() dropped

2000-08-31 Thread Buddha Buck
At 01:35 PM 8/31/00 -0500, Jonathan Scott Duff wrote: On Thu, Aug 31, 2000 at 07:59:31PM +0200, Dan Zetterstrom wrote: Why not use the "function" we already got, tr? Something like: tr///l # Translate only _l_eading characters matching. tr///t # Translate only _t_railing

Re: Proposal: chop() dropped

2000-08-31 Thread Jonathan Scott Duff
On Thu, Aug 31, 2000 at 02:52:10PM -0400, Buddha Buck wrote: How would you do: # Writer insists on blank line between paragraphs, first line indented. # Publisher insists on one paragraph/line, first word ALL CAPS. { local $/ = ""; #slurp paragraph at a time. while (INFILE) {

Re: Proposal: chop() dropped

2000-08-31 Thread Tom Christiansen
How would you do: # Writer insists on blank line between paragraphs, first line indented. # Publisher insists on one paragraph/line, first word ALL CAPS. Step 1: Fire the lame publisher. I'm serious. It's amazing what people tolerate. Some things aren't worth the pane. { local $/ = "";

  1   2   >