Re: RFCs for thread models

2000-09-11 Thread Nick Ing-Simmons
Steven W McDougall <[EMAIL PROTECTED]> writes: > >My point is that we can't work with guesses and exercises. >We need a specific, detailed proposal that we can discuss and >evaluate. I'm hoping that someone will submit an RFC for one. Start with perl5.6.0's ithreads model. -- Nick Ing-Simmons

Re: RFCs for thread models

2000-09-11 Thread Nick Ing-Simmons
Steven W McDougall <[EMAIL PROTECTED]> writes: >1. All threads execute the same op tree > >Consider an op, like > > fetch(b) > >If you actually compile a Perl program, like > > $a = $b > >and then look at the op tree, you won't find the symbol "$b", or "b" >anywhere in it. But

Re: RFCs for thread models

2000-09-11 Thread Dan Sugalski
At 11:59 AM 9/10/00 -0700, Benjamin Stuhl wrote: >--- Chaim Frenkel <[EMAIL PROTECTED]> wrote: > > Now where > > sub recursive() { my $a :shared; ; return > > recursive() } > > would put $a or even which $a is meant, is left as an > > excersize > > for someone brighter than me. > >%P6-E-

Re: RFCs for thread models

2000-09-10 Thread Chaim Frenkel
> "BS" == Benjamin Stuhl <[EMAIL PROTECTED]> writes: >> Now where >> sub recursive() { my $a :shared; ; return >> recursive() } >> would put $a or even which $a is meant, is left as an >> excersize >> for someone brighter than me. BS> %P6-E-MEANINGLESS, "my $a : shared" is a meaningless

Re: RFCs for thread models

2000-09-10 Thread Benjamin Stuhl
--- Chaim Frenkel <[EMAIL PROTECTED]> wrote: > > "SWM" == Steven W McDougall <[EMAIL PROTECTED]> > writes: > > SWM> If you actually compile a Perl program, like > > SWM> $a = $b > > SWM> and then look at the op tree, you won't find the > symbol "$b", or "b" > SWM> anywhere in it. The

Re: RFCs for thread models

2000-09-10 Thread Dan Sugalski
At 10:26 PM 9/9/00 -0400, Steven W McDougall wrote: >RFC 178 proposes a shared data model for Perl6 threads. In a shared >data model >- globals are shared unless localized >- file-scoped lexicals are shared unless the thread recompiles the > file >- block scoped lexicals may be shared by > - p

Re: RFCs for thread models

2000-09-09 Thread Steven W McDougall
> SWM> If you actually compile a Perl program, like > > SWM> $a = $b > > SWM> and then look at the op tree, you won't find the symbol "$b", or "b" > SWM> anywhere in it. The fetch() op does not have the name of the variable > SWM> $b; rather, it holds a pointer to the value for $b. > > W

Re: RFCs for thread models

2000-09-09 Thread Chaim Frenkel
> "SWM" == Steven W McDougall <[EMAIL PROTECTED]> writes: SWM> If you actually compile a Perl program, like SWM>$a = $b SWM> and then look at the op tree, you won't find the symbol "$b", or "b" SWM> anywhere in it. The fetch() op does not have the name of the variable SWM> $b; r