Re: what's new continued

2002-07-03 Thread Ariel Scolnicov
Ariel Scolnicov <[EMAIL PROTECTED]> writes: [...] > will apply to any method? To any sub? Can I call a sub 17 times by > saying > > (undef) x 17 = foo(1,2,3); That should be (undef) x 17 = ^foo(1,2,3); of course. Sorry. [...] -- Ariel Scolnicov|http://3w.compugen.co.il/

Re: what's new continued

2002-07-03 Thread Ariel Scolnicov
Larry Wall <[EMAIL PROTECTED]> writes: > On Wed, 3 Jul 2002, Damian Conway wrote: > : Date: Wed, 03 Jul 2002 19:33:33 -0400 > : From: Damian Conway <[EMAIL PROTECTED]> > : To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > : Subject: Re: what's new continued > : > : Comments (otherwise you have thing

[COMMIT] Stack rework

2002-07-03 Thread Melvin Smith
Heads up for internal hackers, General stacks and control stacks are no longer circular. They are now terminated at both ends with NULL pointers. A "stack" now points to the top of the stack, not the base. This simplified stack handling as well as the GC tracing, but in one case, stack_entry()

vmgen

2002-07-03 Thread John Porter
http://www.complang.tuwien.ac.at/anton/vmgen/ (Sorry if this has been mentioned before...) -- John Douglas Porter __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com

Re: what's new continued

2002-07-03 Thread Ashley Winters
On Wednesday 03 July 2002 06:39 pm, Larry Wall wrote: > On Wed, 3 Jul 2002, Damian Conway wrote: > : Date: Wed, 03 Jul 2002 19:33:33 -0400 > : From: Damian Conway <[EMAIL PROTECTED]> > : To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > : Subject: Re: what's new continued > : > : Comments (otherwise y

Re: [netlabs #758] [PATCH] Fixes for example programs

2002-07-03 Thread Robert Spier
>Perhaps it got mangled? Can you send it to me as an attachment? Attachments can also be sent to the tracker. They're handled better now. -R

[netlabs #760] Parrot_warn doesn't work with a NULL interpreter

2002-07-03 Thread via RT
# New Ticket Created by Josh Wilmes # Please include the string: [netlabs #760] # in the subject line of all future correspondence about this issue. # http://bugs6.perl.org/rt2/Ticket/Display.html?id=760 > Parrot_warn was modified a while back to allow for a NULL interpreter. However, since

Re: Perl 6 Summary

2002-07-03 Thread John Porter
[restricted to -internals, since that's the only one I'm on] [EMAIL PROTECTED] wrote: > Oh yes. John Porter suggested that 'maybe Damian should write > [the grammar]?'. Which leads me to postulate an analog to Godwin's > Law, tailored to the perl 6 process, stating that at some point in any > th

Re: init_method_t for coroutines and subs?

2002-07-03 Thread Melvin Smith
At 09:51 PM 7/3/2002 -0400, Josh Wilmes wrote: >I know there was some talk about this extra "address" parameter recently, >but i'm not sure what the upshot of it is. Right now, tcc is complaining >loudly because the init functions for parrotsub and parrotcoroutine don't >match the init_method_t t

Re: what's new continued

2002-07-03 Thread Damian Conway
> : > we can even have hyper-assignment : > : > > : > my ($a, $b) ^= new Foo; > : > : This is unlikely to do what you wanted. It creates a new Foo object and then > : assigns a reference to that one object to both $a and $b. It doesn't create two > : Foo objects. (But maybe one object referenced t

init_method_t for coroutines and subs?

2002-07-03 Thread Josh Wilmes
I know there was some talk about this extra "address" parameter recently, but i'm not sure what the upshot of it is. Right now, tcc is complaining loudly because the init functions for parrotsub and parrotcoroutine don't match the init_method_t type in the _vtable structure. What's the deal

Re: what's new continued

2002-07-03 Thread Larry Wall
On Wed, 3 Jul 2002, Damian Conway wrote: : Date: Wed, 03 Jul 2002 19:33:33 -0400 : From: Damian Conway <[EMAIL PROTECTED]> : To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> : Subject: Re: what's new continued : : Comments (otherwise you have things pretty much right): I didn't see the original here.

Re: Perl 6 Summary

2002-07-03 Thread Larry Wall
On Wed, 3 Jul 2002, Ashley Winters wrote: : Creepy. Here's my creepy thought for the day: is there a possibility for a : prototype which would implicitly wrap a sub{} around a passed-in argument? : i.e. lazy evaluation via sub prototype? : : sub check_it_out (&$idx is rw, &$val is rw) { : $

Re: Perl 6, The Good Parts Version

2002-07-03 Thread Erik Steven Harrison
Michael Schwerned: >I've been trying to pick out what parts of Perl 6 would make a Java >programmer sit up and go "I wish I had that" or a Python programmer think >"Hmm, maybe there is more than one way to do it" and, in fine Perl >tradition, a few things which make the whole audience go "what a b

Re: Perl 6 Summary

2002-07-03 Thread Erik Steven Harrison
>But unlike >iterators, when you ask a generator for the next value, it picks up >execution exactly where >it left off when it returned the last value -- i Aren't these what The Damien calls coroutines? Are we getting coroutines (RFC 30, as I recall . . .)? I'm also big on seeing these. Also,

Re: what's new continued

2002-07-03 Thread Luke Palmer
> > case2 - hyperoperator : > > > > my $result = 0; > > for ($a,$b,$c) { > >if ($x == $_) { $result =1; last} > > } > > Not correct. The second case is the same as: > > ($x == $a, $x == $b, $x == $c) > > which reduces in effect to: > > $x == $c Hold on---something's awry her

Re: Perl 6 Summary

2002-07-03 Thread Dan Sugalski
At 5:07 PM -0700 7/3/02, Peter Scott wrote: >At 01:54 PM 7/3/02 -0600, Thom Boyer wrote: >>I'm personally MUCH more interested in >>Python's generators >>. >> >>A generator is like an iterator in that it can produce a series of values. >>But unlike >>itera

Re: [netlabs #758] [PATCH] Fixes for example programs

2002-07-03 Thread Josh Wilmes
This patch doesn't want to apply for me: patching file examples/assembly/fact.pasm Hunk #2 FAILED at 35. 1 out of 2 hunks FAILED -- saving rejects to file examples/assembly/fact.pasm.rej patching file examples/assembly/hanoi.pasm Hunk #2 FAILED at 110. 1 out of 6 hunks FAILED -- saving rejects t

Re: Perl 6 Summary

2002-07-03 Thread Peter Scott
At 01:54 PM 7/3/02 -0600, Thom Boyer wrote: >I'm personally MUCH more interested in >Python's generators >. > >A generator is like an iterator in that it can produce a series of values. >But unlike >iterators, when you ask a generator for the next value, i

Re: what's new continued

2002-07-03 Thread Damian Conway
Comments (otherwise you have things pretty much right): > Every subrotine or variable or method or object can have a "notes" (out of bound >data) out-of-band data > we can even have hyper-assignment : > > my ($a, $b) ^= new Foo; This is unlikely to do what you wanted. It creates a new Foo

Re: Perl 6, The Good Parts Version

2002-07-03 Thread Tim Bunce
On Wed, Jul 03, 2002 at 05:13:01PM -0400, Michael G Schwern wrote: > On Wed, Jul 03, 2002 at 09:20:01PM +0100, Dave Mitchell wrote: > > On Wed, Jul 03, 2002 at 01:23:24PM -0400, Michael G Schwern wrote: > > > Hopefully the Cabal [2] can debunk that. > > [snip] > > > [2] Of which there is none. >

Re: Perl 6 Summary

2002-07-03 Thread Ashley Winters
On Wednesday 03 July 2002 12:54 pm, Thom Boyer wrote: > To get a better feel for the weirdness that happens with pass-by-name, > consider this example: > sub check_it_out { > $_[0] = 0; #step 1 > $_[1] = 7; #step 2 > } > > my @a = (0,1,2,3,4); > my $i = 2; > check_it_out($i, $a

XML escaping, etc..

2002-07-03 Thread Josh Wilmes
I've been meaning to ask- is there any plan to add special support for XML features such as string escaping? It would be very useful, IMHO, to have something analogous to the "\Q" feature in perl5 for escaping regexps, but which would do XML-style "<" and ">" escaping. I'm specifically inter

Re: Perl 6, The Good Parts Version

2002-07-03 Thread Larry Wall
On Wed, 3 Jul 2002, Janek Schleicher wrote: : Trey Harris wrote at Wed, 03 Jul 2002 19:44:45 +0200: : : > In a message dated Wed, 3 Jul 2002, Michael G Schwern writes: : >> Attributes : >> Transcending mere objects and classes, Perl 6 introduces adverbs. : > : > Attributes are adjectives, n

Re: Perl 6, The Good Parts Version

2002-07-03 Thread Michael G Schwern
On Wed, Jul 03, 2002 at 09:20:01PM +0100, Dave Mitchell wrote: > On Wed, Jul 03, 2002 at 01:23:24PM -0400, Michael G Schwern wrote: > > Hopefully the Cabal [2] can debunk that. > [snip] > > [2] Of which there is none. > > and http://www.perlcabal.com/ doesn't exist, right? ;-) Not Found The

Re: Perl 6 Summary

2002-07-03 Thread Thom Boyer
On Tue, 02 Jul 2002 10:36:45 -0700, Erik Steven Harrisan wrote: ESH> my $a = 'foo'; ESH> ESH> pass_by_name ( sub { print $a} ); ESH> ESH> sub pass_by_name { ESH> my $a = 'bar'; ESH> &@_[0]; ESH> } ESH> ESH> Now, I have trouble keeping Perl 6 and 5 straight, but what

Re: Perl 6, The Good Parts Version

2002-07-03 Thread Dan Sugalski
At 9:20 PM +0100 7/3/02, Dave Mitchell wrote: >On Wed, Jul 03, 2002 at 01:23:24PM -0400, Michael G Schwern wrote: >> Hopefully the Cabal [2] can debunk that. >[snip] >> [2] Of which there is none. > >and http://www.perlcabal.com/ doesn't exist, right? ;-) Of course not. Otherwise it wouldn't 4

Re: Perl 6, The Good Parts Version

2002-07-03 Thread Janek Schleicher
Trey Harris wrote at Wed, 03 Jul 2002 19:44:45 +0200: > In a message dated Wed, 3 Jul 2002, Michael G Schwern writes: >> Attributes >> Transcending mere objects and classes, Perl 6 introduces adverbs. > > Attributes are adjectives, not adverbs. Aren't they? Attributes describe the behavio

Re: Perl 6, The Good Parts Version

2002-07-03 Thread Tim Bunce
On Wed, Jul 03, 2002 at 01:23:24PM -0400, Michael G Schwern wrote: > > I'm also trying to think of more bits to throw in. Particularly in terms of > the OO system, this being a conference about OO. From what I've heard so > far, Perl 6's OO system will be largely playing catch up with other > l

Re: Perl 6, The Good Parts Version

2002-07-03 Thread Dave Mitchell
On Wed, Jul 03, 2002 at 01:23:24PM -0400, Michael G Schwern wrote: > Hopefully the Cabal [2] can debunk that. [snip] > [2] Of which there is none. and http://www.perlcabal.com/ doesn't exist, right? ;-) -- "I do not resent critisism, even when, for the sake of emphasis, it parts for the time w

Re: Perl 6, The Good Parts Version

2002-07-03 Thread Trey Harris
In a message dated Wed, 3 Jul 2002, Michael G Schwern writes: > Attributes > Transcending mere objects and classes, Perl 6 introduces adverbs. Attributes are adjectives, not adverbs. Aren't they? Trey

Perl 6, The Good Parts Version

2002-07-03 Thread Michael G Schwern
I've just submitted a short talk to the Scandinavian Conference on Java And Object Orientation (JAOO.org) [1] entitled "Perl 6, The Good Parts". This talk will be given to an audience of mostly Java, Python and Ruby programmers with a smattering of XP & Agile methodology folks and OO and Pattern

Re: Reflection...

2002-07-03 Thread Dan Sugalski
At 8:32 AM +0100 7/3/02, [EMAIL PROTECTED] wrote: >[EMAIL PROTECTED] writes: > >> Just a thought, I hope that we're going to be able to do things like: >> >> my $sub = {$^a + $^b}; >> >> $sub.arity; # 2 >> $sub.prototype; # ('$^a', '$^b') >> >> Getting access to this sort of thing

Re: Ruby iterators

2002-07-03 Thread Allison Randal
On Tue, Jul 02, 2002 at 07:32:00PM -0600, Luke Palmer wrote: > On Tue, 2 Jul 2002, Michael G Schwern wrote: > > > * Yes, Perl 6 will have named arguments to subroutines. > > > > What I can remember from the Perl 6 BoF is it will look something like this: > > > > sub foo ($this, $that) { > >