Re: Update on the RFC Process

2000-10-03 Thread Piers Cawley
Nathan Torkington <[EMAIL PROTECTED]> writes: > I have no objection to -internals remaining. I think their discussion > will probably take off more after Larry's announcement. Personally I'm betting that the volume we've seen on -language will pale into tiny insignificance compared to the volume

Re: perl6storm #0050

2000-09-27 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > Readability is a programmer feature, not a language feature. The most important optimization a programmer can make is to optimize for understanding. -- Piers

Re: perl6storm #0050

2000-09-27 Thread Piers Cawley
Robert Mathews <[EMAIL PROTECTED]> writes: > Simon Cozens wrote: > > (defun Schwartzian (func list) > > (mapcar > >(lambda (x) (car x)) > >(sort > > (mapcar > > (lambda (x) (cons x (funcall func x))) > > list > > ) > > (lambda (x y) (< (cdr x) (cdr y))) > > )

Re: You know what? I think I learnt something today.

2000-09-27 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > Which is what I'm working on. You'll all be extremely pleased to know, I'm > sure, that I have notes here for another 12 RFCs. After that, I have to start > thinking. Three days to go to the Big Freeze. Where are you going to find the time? -- Piers

Re: RFC 303 (v1) Keep C, but make it work.

2000-09-27 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > On Wed, Sep 27, 2000 at 03:49:10PM +0100, Tom Christiansen wrote: > > Don't change "use less" to "use optimize". We don't > > need to ruin the cuteness. > > "use less 'rolled_loops';" sounds really weird. We obviously need to introduce a synonymous C

Re: is \1 vs $1 a necessary distinction?

2000-09-27 Thread Piers Cawley
Dave Storrs <[EMAIL PROTECTED]> writes: > On Wed, 27 Sep 2000, Richard Proctor wrote: > > > Both \1 and $1 refer to what is matched by the first set of parens in a > > > regex. AFAIK, the only difference between these two notation is that \1 > > > is used within the regex itself and $1 is used o

Re: Murdering @ISA considered cruel and unusual

2000-09-28 Thread Piers Cawley
Tom Christiansen <[EMAIL PROTECTED]> writes: > >I strongly agree with the opinion that we should try and get away from > >special variables and switches in favor of functions and pragmas. > >Witness 'use base' instead of '@ISA', 'use warnings', and so on. > > Huh? Why??? Perl's use of @ISA is

Re: RFC 254 (v2) Class Collections: Provide the ability to overload classes

2000-10-02 Thread Piers Cawley
Perl6 RFC Librarian <[EMAIL PROTECTED]> writes: > This and other RFCs are available on the web at > http://dev.perl.org/rfc/ > > =head1 TITLE > > Class Collections: Provide the ability to overload classes > > =head1 VERSION > > Maintainer: Greg Williams <[EMAIL PROTECTED]> > Date: 17 Se

Re: RFC 303 (v1) Keep C, but make it work.

2000-10-02 Thread Piers Cawley
Alan Gutierrez <[EMAIL PROTECTED]> writes: > On 27 Sep 2000, Piers Cawley wrote: > > > Simon Cozens <[EMAIL PROTECTED]> writes: > > > > > On Wed, Sep 27, 2000 at 03:49:10PM +0100, Tom Christiansen wrote: > > > > Don't change "us

Re: RFC 344 (v2) Elements of @_ should be read-only by default

2000-10-02 Thread Piers Cawley
Perl6 RFC Librarian <[EMAIL PROTECTED]> writes: > This and other RFCs are available on the web at > http://dev.perl.org/rfc/ > > =head1 TITLE > > Elements of @_ should be read-only by default > > =head1 VERSION > > Maintainer: John Tobey <[EMAIL PROTECTED]> > Date: 28 Sep 2000 > Last

Re: Perl recommended reading list

2000-10-10 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > Before I forget: (I read a *lot*) > A Course In General Linguistics, F. de Saussure. tr. Roy Harris > (If you don't know what relation this has to Perl, what are you doing > here?) > > The Practice of Programming, Kernighan and Pike. >

Re: Update on Larry's talk

2000-10-12 Thread Piers Cawley
Nathan Wiger <[EMAIL PROTECTED]> writes: > Nathan Torkington wrote: > > > > $als_keynote = Dumper($Larry->perl6_design); > > > >package Sympathy; >sub create { print "We're behind you, $_!\n" } > >package main; >create Sympathy because => RFCs for Larry; > > > Heh, it ac

Re: Transcription of Larry's talk

2000-10-19 Thread Piers Cawley
John Porter <[EMAIL PROTECTED]> writes: > Randal L. Schwartz wrote: > > > > But will there be a "meanuntil"? > > Not to mention "modewhile", "medianuntil", etc. generouswhile, generousuntil... -- Piers

Re: TIL redux (was Re: What will the Perl6 code name be?)

2000-10-24 Thread Piers Cawley
Ariel Scolnicov <[EMAIL PROTECTED]> writes: [ A bunch of stuff ] Er, chaps, not wishing to tread on Skud's moderatorial toes and all, but shouldn't all this be in perl6-internals? Reply-To: set. -- Piers

Re: Perl6 in Java? (was Re: Meta-design)

2000-12-07 Thread Piers Cawley
"Bradley M. Kuhn" <[EMAIL PROTECTED]> writes: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > However, I don't think we should dismiss it out of hand because people don't > do a lot of systems programming C. some of the things we are going to build > for C (if that's what we pick), are already there

Re: Meta-design

2000-12-07 Thread Piers Cawley
Buddha Buck <[EMAIL PROTECTED]> writes: > At 03:54 PM 12-06-2000 -0500, Sam Tregar wrote: > >On Wed, 6 Dec 2000, Dan Sugalski wrote: > > > > > Non-refcounting GC schemes are more expensive when they collect, but less > > > expensive otherwise, and it apparently is a win for the non-refcount > > >

Re: Guaranteed object destruction (was Re: Meta-design)

2000-12-07 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes: > I think I'd just as soon always call DESTROY in a predicable manner > and not do *anything* perlish at GC time. If nothing else it means > that we don't have to worry about having a valid perl context handy > when the GC runs. (Since threading the thing i

Re: OO AV/HV's and tie (was Re: Meta-design)

2000-12-07 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes: > At 01:20 PM 12/7/00 +, David Mitchell wrote: > >Dan Sugalski <[EMAIL PROTECTED]> wrote: > > > > > print $foo[0]; > > > is > > >foo->get_string[UTF_8](ARRAY, 0); > > > while > > >print $foo > > > is > > >foo->get_string[UTF_8](SCALAR);

Re: Guaranteed object destruction (was Re: Meta-design)

2000-12-11 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes: > At 05:55 PM 12/7/00 +0000, Piers Cawley wrote: > >Dan Sugalski <[EMAIL PROTECTED]> writes: > > > I think I'd just as soon always call DESTROY in a predicable manner > > > and not do *anything* perlish at GC

Re: [Fwd: Re: [FWP] sorting text in human-order]

2000-12-29 Thread Piers Cawley
>"David L. Nicol" <[EMAIL PROTECTED]> writes: >> Piers Cawley <[EMAIL PROTECTED]> writes: >>> [EMAIL PROTECTED] (Yitzchak Scott-Thoennes) writes: >>> >>> > $srt =~ tr/0-9a-z\xe9/a-jA-ZE/; # uc & sort nums after letters &g

Re: [FWP] sorting text in human-order

2001-01-03 Thread Piers Cawley
"David L. Nicol" <[EMAIL PROTECTED]> writes: > Marc Lehmann wrote: > > > > On Sat, Dec 30, 2000 at 05:31:29AM +, "David L. Nicol" <[EMAIL PROTECTED]> >wrote: > > > I do not know exactly what the perl5 default sort heuristic is, > > > aside that it tries to DWIM both numeric and string data.

Re: [FWP] sorting text in human-order

2001-01-04 Thread Piers Cawley
Piers Cawley <[EMAIL PROTECTED]> writes: > "David L. Nicol" <[EMAIL PROTECTED]> writes: > > Marc Lehmann wrote: > > > > > > On Sat, Dec 30, 2000 at 05:31:29AM +, "David L. Nicol" ><[EMAIL PROTECTED]> wrote: &g

Re: [FWP] sorting text in human-order

2001-01-04 Thread Piers Cawley
David Cantrell <[EMAIL PROTECTED]> writes: > On Thu, Jan 04, 2001 at 09:28:26AM +0000, Piers Cawley wrote: > > > And for 'proper' library type sorting (assuming all works are in > > English) we should really be doing something like: > > > >

[]->isa('Foo') to not throw exceptions

2001-01-04 Thread Piers Cawley
Did we do this one already? I have an embarrassingly large amount of code that has to do Cisa('Foo') }>, or Ccan('Bar') }> because there is a chance that C<$foo> is an unblessed reference. I would use UNIVERSAL::can directly, but I have some code (a container/decorator class) that messes with is

Re: [FWP] sorting text in human-order

2001-01-05 Thread Piers Cawley
Glenn Linderman <[EMAIL PROTECTED]> writes: > David Cantrell wrote: > > > And in any case, I can think of three different ways of saying 1821 in > > English alone. > > > > One thousand eight hundred and twenty one > > One thousand eight hundred twenty one > > Eighteen hundred and twenty one > > >

Re: RFC on Coexistance and simulaneous use of multiple module version s?

2001-01-27 Thread Piers Cawley
[EMAIL PROTECTED] (Andreas J. Koenig) writes: > > On Fri, 26 Jan 2001 16:37:23 -0500, Michael G Schwern <[EMAIL PROTECTED]> said: > > > from what I remember we discussed > > an idea to allow people and organizations to produce their own list of > > approved modules. > > This is already p

Re: RFC on Coexistance and simulaneous use of multiple module version s?

2001-01-27 Thread Piers Cawley
Jarkko Hietaniemi <[EMAIL PROTECTED]> writes: > > > Larry mumbled something like "implements" and "interface". So to say > > > > > > package Net::FTP::Foo implements Net::FTP; > > > > > > But I don't think, anybody wrote an RFC about the plan. > > > > I did. Or something like it. And I've

Re: JWZ on s/Java/Perl/

2001-01-29 Thread Piers Cawley
"Branden" <[EMAIL PROTECTED]> writes: > Of course, C++ has no GC, which is a good thing, but you can always > fake it with Refcounts, which is much more efficient, and easily > feasable with C++. Err... current research shows that the refcount approach is one of the slowest forms of GC, and it d

Re: Thought for the day

2001-02-01 Thread Piers Cawley
Dave Storrs <[EMAIL PROTECTED]> writes: > On Wed, 31 Jan 2001, Tim Bunce wrote: > > > Since this thread is in the mood for quotes, here's one I'm fond of... > > It goes something along the lines of: > > > > Any fool can create a complicated system. > > The real skill is in making a simp

Re: JWZ on s/Java/Perl/

2001-02-05 Thread Piers Cawley
"Branden" <[EMAIL PROTECTED]> writes: > Piers Cawley wrote: > >"Branden" <[EMAIL PROTECTED]> writes: > >> Of course, C++ has no GC, which is a good thing, but you can always > >> fake it with Refcounts, which is much more efficien

Re: JWZ on s/Java/Perl/

2001-02-10 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > On Fri, Feb 09, 2001 at 04:14:34PM -0800, Mark Koopman wrote: > > > sub test { > > > my($foo, $bar, %baz); > > > ... > > > return \%baz; > > > } > > are we considering to deprecate this type of bad style > > What bad style? Well,

Re: JWZ on s/Java/Perl/

2001-02-10 Thread Piers Cawley
Mark Koopman <[EMAIL PROTECTED]> writes: > > On Fri, 09 Feb 2001 12:06:12 -0500, Ken Fox wrote: > > > > > > That may work for C, but not for Perl. > > > > sub test { > > my($foo, $bar, %baz); > > ... > > return \%baz; > > } > > > > You may notice that only PART

Re: Garbage collection (was Re: JWZ on s/Java/Perl/)

2001-02-12 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes: > At 10:38 AM 2/12/2001 -0500, Sam Tregar wrote: > >On Mon, 12 Feb 2001, Dan Sugalski wrote: > > > > > Perl needs some level of tracking for objects with finalization attached to > > > them. Full refcounting isn't required, however. > > > >I think I've hea

Re: Closures and default lexical-scope for subs

2001-02-19 Thread Piers Cawley
Peter Scott <[EMAIL PROTECTED]> writes: > At 09:01 PM 2/15/01 +0100, [EMAIL PROTECTED] wrote: > >On Thu, Feb 15, 2001 at 11:08:47AM -0800, Edward Peschko wrote: > > > However, that still doesn't get rid of the gotchas - personally I think that: > > > > > > > my $a, $b, $c; > > > > > > should be

Re: Turn 'em on! (was Re: Warnings, strict, and CPAN)

2001-02-27 Thread Piers Cawley
Nathan Wiger <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > > > > > Command-line flags on by default [-T -Mstrict -Mwarnings]: > > > > We already beat this to death with the .perlrc discussion. You'll > > break reams of Perl code you probably don't even know you have this > > way.

Re: What can we optimize (was Re: Schwartzian transforms)

2001-03-29 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes: > True enough. This is a small subset of general optimizations. For example, > this: > > >$i = 0; >foreach (1..1000) { > $i++; >} > > can be easily optimized to: > >$i = 1000; > > and most language implementations with any sort of o

Re: Perl culture, perl readabillity

2001-04-04 Thread Piers Cawley
[EMAIL PROTECTED] writes: > English, by comparison shows the effects of protracted foreign > occupation of English speaking peoples by conquerors who spoke a > foreign language. And also of protacted occupation of foreign countries by English speaking conquerors. Witness the number of Indian loa

Re: Larry's Apocalypse 1

2001-04-06 Thread Piers Cawley
Jarkko Hietaniemi <[EMAIL PROTECTED]> writes: > On Wed, Apr 04, 2001 at 11:46:12PM -0700, Nathan Torkington wrote: > > Not a comment at all on it? Was I accidentally unsubscribed to > > perl6-language? > > > > *tap* *tap* is this thing on? > > > > Nat > > Me, I've been racking my brain to fig

Re: Larry's Apocalypse 1

2001-04-06 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > On Thu, Apr 05, 2001 at 01:33:22PM -0700, Edward Peschko wrote: > > > I'd really rather not, and I don't think that was Larry's intention. I > > > think rather it was "perl 5 warning/strict levels", not "parse as perl 5 > > > code". At least I hope tha

Re: Larry's Apocalypse 1

2001-04-11 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes: >> Of course all of this has been discussed. (See >> http://archive.develooper.com/perl6-language-io%40perl.org/, >> especially RFCs 100 and 14.) > > And is already available in a nearby parallel dimension:

Re: Larry's Apocalypse 1

2001-04-15 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes: > At 08:23 PM 4/13/2001 -0700, jc vazquez wrote: > > > On Thu, 12 Apr 2001, Dave Storrs wrote: > > > ... > > > > We could then just add a -7 flag. > > > > > > Or, just use: > > > > > > #!/usr/bin/perl6 > > > > > > >To solve this versioning issue, is there

Re: s/./~/g

2001-04-23 Thread Piers Cawley
vaguely C-ish like that. And I think most Perl folks like the > -> for class/object methods. It's a cute little arrow :) You'll have to > make it very clear why . is a better fit for Perl 6 than -> Otherwise > people will probably mourn the missing Mr. Pointy ;) -- Piers Cawley www.iterative-software.com

Re: Curious: -> vs .

2001-04-26 Thread Piers Cawley
->method()). > > How about borrowing from Objective C? > >[$object method("foo", "bar")]; How do you create an anonymous list now then? Not that I object to borrowing from Objective C you realise. -- Piers Cawley www.iterative-software.com

Re: Curious: -> vs .

2001-04-26 Thread Piers Cawley
Buddha Buck <[EMAIL PROTECTED]> writes: > Piers Cawley <[EMAIL PROTECTED]> writes: > > > Buddha Buck <[EMAIL PROTECTED]> writes: > > > > > Bart Lateur <[EMAIL PROTECTED]> writes: > > > > > > > On We

apo 2

2001-05-04 Thread Piers Cawley
Those new properties thingies are looking powerful. Does this mean we can now do: sub decorate ($obj) { $obj is ad_hoc_method(sub {...}); } and expect C<$obj.ad_hoc_method(...)> to call the appropriate subroutine? -- Piers Cawley www.iterative-software.com

Re: Apoc2 - concerns

2001-05-08 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > On Tue, May 08, 2001 at 01:59:47PM -0400, John Porter wrote: > > Perl is a highly dynamic language > > An object with exactly one and only one method doesn't sound that > dynamic to me. Three methods, surely: next,

Re: what I meant about hungarian notation

2001-05-10 Thread Piers Cawley
ssages. They appear to rather like it in the UK. But then people are very weird indeed. -- Piers Cawley www.iterative-software.com

Re: Perl, the new generation

2001-05-11 Thread Piers Cawley
ind me how long ago it was that most of the systems you're talking about actually started to include Perl as anything other than a 'Danger Will Robinson, unsupported contrib code' type package? -- Piers Cawley www.iterative-software.com

Re: 'is' and action at a distance

2001-05-19 Thread Piers Cawley
s? > > > > No. > > > > Why not? You can always set a property on a function reference. But it seems a little weird that functions can have properties in perl5, but not in perl 6. -- Piers Cawley www.iterative-software.com

Re: 'is' and action at a distance

2001-05-19 Thread Piers Cawley
methods and properties. I can see it causing problems due to > them sharing namespaces. But I have not thought about it enough to > say how much of a concern. There's a part of me that sees this as a bonus. -- Piers Cawley www.iterative-software.com

Re: 'is' and action at a distance

2001-05-19 Thread Piers Cawley
if ($retval = func(@args)) { > > # it worked ... > > Right. Which of course can be done in Perl 5 with either "0 but > true" (or "0E0") or if the value is an object, the use of > overloading. But what you can't do with 0E0 is the else branch of that example, accessing C<$retval.what_went_wrong>, which would be really handy... -- Piers Cawley www.iterative-software.com

Re: Perl, the new generation

2001-05-20 Thread Piers Cawley
e like AA: Which reminds me, must write up that proposal for YAPC::Europe... -- Piers Cawley www.iterative-software.com

Re: properties

2001-05-21 Thread Piers Cawley
ill use them to do strange and wonderful > things as well. > > But then, we don't necessarily have to make the semantics particularly > transparent for pathological cases, because people doing that are > expected to know what they are doing. Or pathological. I know which one I'm voting for... -- Piers Cawley www.iterative-software.com

Re: Microsoft .NET Framework

2001-05-29 Thread Piers Cawley
olkit to > output, execute and deparse Perl bytecode from Ruby source. Now, if we can just translate Ruby's runtime libraries from C to Perl we'll be laughing. Or laughed at. I'm never quite sure. -- Piers Cawley www.iterative-software.com

Re: Python...

2001-06-03 Thread Piers Cawley
nor issue of Leon not having ported all the runtime libraries (in annoying C) yet. -- Piers Cawley www.iterative-software.com

Re: Python...

2001-06-03 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > On Sun, Jun 03, 2001 at 09:42:37PM +0100, Piers Cawley wrote: > > Apart from the minor issue of Leon not having ported all the runtime > > libraries (in annoying C) yet. > > Because I'm hacking at the bytecode l

Re: Properties and stricture

2001-06-06 Thread Piers Cawley
gt; No, it does. Just as people have more accidents when talking on > their cell phones while driving, even if the cell phone is mounted > on the dashboard and their hands are free, the more you have > distracting your attention, the more likely you are to make other > mistakes. Human attention is the ultimate precious resource. That's why we have automated testing. So that you don't have to waste human attention looking for logic errors that may not be there. You check stuff in and run the tests. If they pass, you didn't make any basic logic errors so it's on to the next bit of coding. -- Piers Cawley www.iterative-software.com

Re: Properties and stricture

2001-06-06 Thread Piers Cawley
es in perl 5+i becomes anything more than fiction then that eval will throw an exception. -- Piers Cawley www.iterative-software.com

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-03 Thread Piers Cawley
Piers Cawley <[EMAIL PROTECTED]> writes: > Michael G Schwern <[EMAIL PROTECTED]> writes: > > > On Mon, Jul 02, 2001 at 04:18:31PM -0400, Michael G Schwern wrote: > > > On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: > > > > Its not

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-03 Thread Piers Cawley
Michael G Schwern <[EMAIL PROTECTED]> writes: > On Tue, Jul 03, 2001 at 08:34:00AM +0100, Piers Cawley wrote: > > my $anon = My::Anon::ObjectFactory->new({base => 'Class', > >

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-04 Thread Piers Cawley
[EMAIL PROTECTED] writes: > On Tue, Jul 03, 2001 at 10:26:39AM +0100, Piers Cawley wrote: > > Hmm... let me write it first would you? Shouldn't be *too* hard. > > Suggestions for a real name for it? > > Class::Anonymous? Class::Anon? > > PS base has to take an

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-02 Thread Piers Cawley
7;ClassName', method1 => sub {...}, method2 => sub {...},); Comes in very handy in Unit::Test, especially when you're writing tests to test the test harness... -- Piers Cawley www.iterative-software.com

Re: explicitly declare closures???

2001-08-21 Thread Piers Cawley
} > print foo()->(); Well, I would expect it to output 'foo' on both occasions, and I'm more than a little surprised to discover that it doesn't. Looks like a bug to me. -- Piers Cawley www.iterative-software.com

Re: Will subroutine signatures apply to methods in Perl6

2001-08-25 Thread Piers Cawley
rguments passed in, it's still going to be possible to rebless an argument, therefore $spot will need to be rechecked after every method call to which it is passed as an argument. -- Piers Cawley www.iterative-software.com

Re: Will subroutine signatures apply to methods in Perl6

2001-08-25 Thread Piers Cawley
of OO values is made. You missed my Critter $spot = AnimalShelter.choose_critter; I'm sure you were/are aware of the possibility of factory objects etc, but I think it's best to mention them explicitly just in case they get overlooked... -- Piers Cawley www.iterative-software.com

Re: Expunge implicit @_ passing

2001-08-27 Thread Piers Cawley
e: sub foo { my $self = shift; my $method = $self->{'_foo'} || $self->can('_foo'); $self->$method(@_); } used. But I take your general point about 'goto &$method'. -- Piers Cawley www.iterative-software.com

Re: Multiple-dispatch on functions

2001-09-01 Thread Piers Cawley
the 'call_this_function' vtable method to DTRT, which, unless it's a 'multi' function, will simply do what function calls have always done. You only have to do the more complex stuff if the function object is a 'multi' function, in which case it'll have a different handler in the vtable. -- Piers Cawley www.iterative-software.com

Re: An overview of the Parrot interpreter

2001-09-04 Thread Piers Cawley
ir parameters passed in as a list in PMC register 0, > * unless we can unambiguously figure out their prototype at > * compilation time Will the subroutine know how it was called? (ie: Through method dispatch or through straightforward symbol table lookup. I'm really hoping the answer to this is 'yes'.) Or will methods and subroutines be distinct now? -- Piers Cawley www.iterative-software.com

Re: An overview of the Parrot interpreter

2001-09-05 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes: > At 10:32 AM 9/4/2001 +0100, Piers Cawley wrote: > > > * Methods get their parameters passed in as a list in PMC register 0, > > > * unless we can unambiguously figure out their prototype at > > > * compilation time &g

Re: Perl6 perlplexities

2005-11-15 Thread Piers Cawley
fairly serious retooling of the call stack if they are to work properly. And one shot continuations are the next best thing to useless. -- Piers Cawley <[EMAIL PROTECTED]> http://www.bofh.org.uk/

Re: statement_control()

2005-11-30 Thread Piers Cawley
nt <<'EOQ' I like witty sayings as much as the next guy, but wit can hurt when misdirected. If people want me to be machine for cranking out quote file fodder, I'll do my best. But I also care about my friends. Larry EOQ -- Piers Cawley <[EMAIL PROTECTED]> http://www.bofh.org.uk/

Re: relational data models and Perl 6

2005-12-18 Thread Piers Cawley
;t be surprised :) > > Algebra, in general, is a specific form of calculus. So, we're > speaking of the same thing, just in different terms. Umm... I think you have that relationship the wrong way around. -- Piers Cawley <[EMAIL PROTECTED]> http://www.bofh.org.uk/

Re: Journal moved.

2005-12-28 Thread Piers Cawley
tainly make it easier for this summary writer if they appeared in the same inbox as the rest of p6c. -- Piers Cawley <[EMAIL PROTECTED]> http://www.bofh.org.uk/

Re: relationship between slurpy parameters and named args?

2005-12-30 Thread Piers Cawley
list should only flatten array arguments if there is only one array. And if it doesn't, how do I declare parameter that is 'a slurpy list of arrays' or 'the rest of the arguments, without flattening'. If I *really* want aggressive flattening then I can call, say, @slurpy_param.flatten -- Piers Cawley <[EMAIL PROTECTED]> http://www.bofh.org.uk/

perl6-all@perl.org

2006-01-23 Thread Piers Cawley
s (and other tricksy class methods) to be found in the Ruby on Rails framework... -- Piers Cawley <[EMAIL PROTECTED]> http://www.bofh.org.uk/

Re: Selective String Interpolation

2006-02-18 Thread Piers Cawley
quoting mechanism that returns a parse tree rather than a simple string if we want to deal with interpolating complex values (especially if we don't want to have to worry about what, if any, quotes are needed round some of our interpolated values. -- Piers Cawley <[EMAIL PROTECTED]> http://www.bofh.org.uk/

Re: A5: a few simple questions

2002-06-06 Thread Piers Cawley
Allison Randal <[EMAIL PROTECTED]> writes: > On Thu, Jun 06, 2002 at 10:38:39AM -0400, John Siracusa wrote: >> On 6/6/02 2:43 AM, Damian Conway wrote: >> > rule wordlist { (\w+) [ , (\w+) ]* } >> >> No semicolon at the end of that line? I've already forgotten the "new >> rules" for that type

Re: Apoc 5 questions/comments

2002-06-11 Thread Piers Cawley
Andy Wardley <[EMAIL PROTECTED]> writes: > On Sat, Jun 08, 2002 at 06:51:19AM +1000, Damian Conway wrote: >> I have no doubt that, once Perl 6 is available, we'll see a rash of >> modules released in the Grammar:: namespace. Including >> Grammar::HTML and Grammar::XML. > > I have no doubt that, o

Re: Stacks, stacks, stacks (And frames)

2002-06-12 Thread Piers Cawley
Uri Guttman <[EMAIL PROTECTED]> writes: >> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: > > DS> We'll find out with A6 whether we do coroutines and continuations as > DS> part of the core perl. If not, well, python does the first and ruby > DS> the second, so it's all good in there

Perl 6 summary for the week ending 23rd June 2002

2002-06-24 Thread Piers Cawley
=head1 This week on Perl 6 (17-23 June 2002) by Piers Cawley, 020020624 =head2 Notes It's been a while since the last Perl 6 digest and summarizing everything that's happened since then would take, ooh, a while. So I've punted on that, and just pretended that the last one was

Re: @array = %hash

2002-09-02 Thread Piers Cawley
Uri Guttman <[EMAIL PROTECTED]> writes: >> "SC" == Simon Cozens <[EMAIL PROTECTED]> writes: > > SC> [EMAIL PROTECTED] (Damian Conway) writes: > >> > hashes can now take objects as keys and won't just stringify them. > >> > >> Correct. But I believe that's only if the hash has a prope

Re: @array = %hash

2002-09-03 Thread Piers Cawley
David Whipp <[EMAIL PROTECTED]> writes: > Piers Cawley wrote: >> Maybe we should just say 'sod it' and implement the entire Smalltalk >> Collection hierarchy and have done with it? Sets, bags, hashes >> (dictionaries for the Smalltalker), whatever, all have

Implementing new control structures

2002-09-03 Thread Piers Cawley
This came up in a discussion on London.pm about Damian's Perl 6 talk, which led us to wonder about control exceptions and how they're handled. At the moment, control exceptions fall into the 'vaguely handwavy' category, and what follows is my attempt to work out how I think they should behave...

Re: @array = %hash

2002-09-03 Thread Piers Cawley
Damian Conway <[EMAIL PROTECTED]> writes: > Uri Guttman wrote: > >> but what simon was saying (and i agree) is the the pair IS a single >> item. it becomes the key and its value is 'scalars'. > > No. If it's a PAIR, then its key is the key and its value is the value. > > >> hashes can now take ob

Perl 6 Summary for week ending 2002-09-01

2002-09-03 Thread Piers Cawley
xing", pairs => "and", "scalars"); It turns out that the @kv_array case will Just Work, and the last case will cause discussion to break out. Damian thought that the example above would throw an error because there are 5 elements in the list.

Re: [perl #17030] [PATCH] Implementation of Lists forlanguages/scheme

2002-09-05 Thread Piers Cawley
Juergen Boemmels <[EMAIL PROTECTED]> writes: f> Dan Sugalski <[EMAIL PROTECTED]> writes: > >> At 1:58 PM + 9/5/02, "Jürgen" "Bömmels" (via RT) wrote: >> >The recent discussion of languages independence rememberd me of an >> >very old patch of mine which implements scheme pairs. (January 2002)

Re: regex args and interpolation

2002-09-06 Thread Piers Cawley
Nicholas Clark <[EMAIL PROTECTED]> writes: > On Wed, Sep 04, 2002 at 10:46:24PM -0400, Ken Fox wrote: >> What is really needed is something that converts the date syntax >> to normal Perl code: >> >>rule iso_date { () - >>() - >>() >>

Re: regex args and interpolation

2002-09-06 Thread Piers Cawley
Nicholas Clark <[EMAIL PROTECTED]> writes: > On Fri, Sep 06, 2002 at 02:20:10PM +0100, Piers Cawley wrote: >> Nicholas Clark <[EMAIL PROTECTED]> writes: >> >> > On Wed, Sep 04, 2002 at 10:46:24PM -0400, Ken Fox wrote: >> >> What is really n

Re: [perl #17030] [PATCH] Implementation of Lists for languages/scheme

2002-09-10 Thread Piers Cawley
John Porter <[EMAIL PROTECTED]> writes: > Piers Cawley wrote: >> Juergen Boemmels <[EMAIL PROTECTED]> writes: >> > But how do I represent them at parrot-level. >> >> { type => '*environment*' value => {scratchpad => aScratchPadPMC}

Re: [perl #17030] [PATCH] Implementation of Lists for languages/scheme

2002-09-10 Thread Piers Cawley
Juergen Boemmels <[EMAIL PROTECTED]> writes: > Piers Cawley <[EMAIL PROTECTED]> writes: > > > [...] > >> >> Cool, applied. How far from "real" scheme are we? >> > >> > I think its quite far. >> > The first thing is symbo

Perl 6 summary for week ending 2002-09-08

2002-09-10 Thread Piers Cawley
Lists for languages/scheme Jügen Bömmels offered a patch implementing Scheme pairs, using simple Arrays. Dan was impressed, and wondered how far we were from 'real' scheme. Jürgen thinks we're quite some way away; we still need symbols, strings, lexicals, functions, macro

Re: [perl #17030] [PATCH] Implementation of Lists for languages/scheme

2002-09-10 Thread Piers Cawley
John Porter <[EMAIL PROTECTED]> writes: > Piers Cawley wrote: >> >> >> Juergen Boemmels <[EMAIL PROTECTED]> writes: >> >> > But how do I represent them at parrot-level. >> >> Thanks for that John. I always relish being patronize

Re: Scheme implementation details (was Re: Implementation of Lists for languages/scheme)

2002-09-10 Thread Piers Cawley
Juergen Boemmels <[EMAIL PROTECTED]> writes: > Piers Cawley <[EMAIL PROTECTED]> writes: [...] >> typeof is a *really* bad idea. Let the 'Object' PMC handle the >> multilevel vtable look up (in exactly the same way that one does >> lexical lookup in the e

Blocks and semicolons

2002-09-11 Thread Piers Cawley
So, the new rule for blocks and when the need semicolons seems to be "You don't need a semicolon if the block is the last argument of a subroutine which expects a block as its last argument", which is all very well and all, but where does that leave: sub foo ( &block ) {...} ... $wibb

Re: Blocks and semicolons

2002-09-11 Thread Piers Cawley
Luke Palmer <[EMAIL PROTECTED]> writes: > This is for everyone: < >In Perl, this problem comes up most often when people say "Why do I >have to put a semicolon after do {} or eval {} when it looks like a >complete statement?" > >Well, in Perl 6, you don't, if the final c

P6C and closures

2002-09-12 Thread Piers Cawley
So, do we have a timetable for when the Perl 6 interpreter is going handle closures? Also, consider the following: sub fac($n) { when 0 { 1 } default { $n * fac($n - 1) } } print1 fac(10); Compiling this barfs because there's 'no topic in fac', despite the apocalypse stating tha

More fun with the perl 6 compiler.

2002-09-12 Thread Piers Cawley
So, I know that recursion doesn't seem to work in the simple case, but at least it reaches runtime. Mutual recursion doesn't even compile successfully. Here's the classic example of mutual recursion: sub even ($n) { given $n { when 0 { return 1 }; default { odd($n-1) }; }

Re: More fun with the perl 6 compiler.

2002-09-12 Thread Piers Cawley
"Sean O'Rourke" <[EMAIL PROTECTED]> writes: > On Thu, 12 Sep 2002, Piers Cawley wrote: > >> So, I know that recursion doesn't seem to work in the simple case, but >> at least it reaches runtime. Mutual recursion doesn't even compile >>

Re: More fun with the perl 6 compiler.

2002-09-12 Thread Piers Cawley
Aaron Sherman <[EMAIL PROTECTED]> writes: > On Thu, 2002-09-12 at 06:46, Piers Cawley wrote: > >> Here's the classic example of mutual recursion: >> >> sub even ($n) { >> given $n { >> when 0 { return 1 }; >> defaul

Re: So long

2002-09-12 Thread Piers Cawley
John Porter <[EMAIL PROTECTED]> writes: > I've decided it's time for me to take another break from this list. > Not that any of you care, but I think the reason is important. > > Due to a silly misunderstanding -- one which could have been easily > avoided by a simple request for clarification --

  1   2   3   4   5   6   7   8   >