Search   Feed   Browse   Add
Feed items 1 - 10 of 22 for May 2008

Re: p5p summary: Improving threads::shared by Jerry D. Hedden - May 17, 2008

Jerry D. Hedden wrote:>> perhaps we could just provide a function:>> $y = shared_clone($x);I uploaded threads::shared 1.21 which now has this functionality.
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1298.html

Problem in build perl5.8.7 on OpenVMS using threads by ravi kumar - May 16, 2008

Hi,I am getting the fallowing error while building the perl5.8.7 on OpenVMS I64v.8.3 system using threadsMMK 15-MAY-2008 16:40:40 15-MAY-2008 16:40:40 15-MAY-2008 16:40:40CCDECCNOANSI_ALIASInclude=Standard=Relaxed_ANSIPrefix=AllObj=.objListMachineShow=Expanfloat=ieeeieee=denormDefine=(PERL_CORE,_LARGEFILE=1) MINIPERLMAIN.Cint Perl_vms_decc_feature_get_index(aTHX_ const char )%CC-E-NOSEMI, Missing ";".at line number 846 in file PERL_BUILD_ROOT:000000vmsish.h;1I32 unlnk...
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1297.html

Re: p5p summary: Improving threads::shared by Dean Arnold - May 8, 2008

Jerry D. Hedden wrote:>> perhaps we could just provide a function:>>>> $y = shared_clone($x);> > What name should this function have> > shared_clone()> clone()> shared_copy()> copy()> make_shared()> > Or something else> I&39;d vote against clone() or copy(), as they&39;re toogeneral. Otherwise, I personally have no opinion,tho clone has come to mean this sort of deepcopy(see the various Clone modules), so I...
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1296.html

Re: p5p summary: Improving threads::shared by Jerry D. Hedden - May 8, 2008

> perhaps we could just provide a function:>> $y = shared_clone($x);What name should this function have shared_clone() clone() shared_copy() copy() make_shared()Or something else
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1295.html

Re: p5p summary: Improving threads::shared by Jerry D. Hedden - May 8, 2008

> For any existing apps (eg, Data::Dumper) that want to> deal with it, they could always fallback to detecting> something as shared and saving its id (ie, the shared> interpretter version&39;s address) to detect cycles. Not> pretty, but effective.I looked into fixing Data::Dumper for this. The circularreference checking is done both in Perl (for the pure-Perlversion) and in XS (the usual version). It&39;ll take meawhile to figure out how to do it in XS.
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1294.html

Re: p5p summary: Improving threads::shared by Jerry D. Hedden - May 8, 2008

> > It means that something like this would DWIM:> >> > my $x : shared;> > $x = &39;complex&39; => &39;aggregate&39; , qw currently not sharable > ;> >> >> > Then we just need a tie-in with the assignment operator. Or> > perhaps we could just provide a function:> >> > $y = shared_clone($x);> >> >>> Would an assignment op overload work > I.e., if the LHS was already shared(), then the =...
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1293.html

Re: p5p summary: Improving threads::shared by Jerry D. Hedden - May 7, 2008

On Mon, May 5, 2008 at 1:53 PM, Jerry D. Hedden <jdheddencpan.org> wrote:> > My sample worked OK after I removed the Data::Dumper> > print; apparently, it has some issues w circular> > references as well (I tried setting Deepcopy and> > Purity, to no avail); I suspect its due to the fact> > that references to shared elements don&39;t have the same> > stringified value, so it doesn&39;t actually look like> > a circular ref.>> ...
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1292.html

Re: p5p summary: Improving threads::shared by Dean Arnold - May 6, 2008

Dean Arnold wrote:> Jerry D. Hedden wrote:>> Conceptually, I think it would require keeping a weak>> reference of each private SV associated with a shared SV.>> This would need to be done on a per-thread basis. Then when>> a thread tries to reference a shared SV, a lookup would be>> made to see if a private SV already exists (and still>> exists) for that thread. If so, that is returned (and the>> ref count of the weak ref is incremented). If not,..
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1291.html

Re: p5p summary: Improving threads::shared by Dean Arnold - May 5, 2008

Jerry D. Hedden wrote:>> Is this a logical approach If so, is it doable> > If circular references can&39;t be fully supported in> threads::shared, then I need to document this in its POD and> in Thread::Queue&39;s POD, too. Do you agree> I don&39;t know that they can&39;t be "supported"; but they doneed to be explained. I also don&39;t see how it effectsT::Q: since you always skip over anything thats alreadyshared, existing circular refs aren&39;t an issue. Its.
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1290.html

Re: p5p summary: Improving threads::shared by Dean Arnold - May 5, 2008

Jerry D. Hedden wrote:> erry D. Hedden wrote:>> Look at $x:>> REF(0x144f8f0)>> REF(0x144f8f0)>> REF(0x144f8f0)>> REF(0x144f8f0)>> REF(0x144f8f0)>> REF(0x144f8f0)>>>> First look at $y:>> SCALAR(0x1423c70)>> SCALAR(0x1423ad8)>> SCALAR(0x14bd968)>> SCALAR(0x14bd980)>> SCALAR(0x14bd998)>> SCALAR(0x14bd9b0)>>>> Second look at $y:>>.
http://www.nntp.perl.org/group/perl.ithreads/2008/05/msg1289.html
Available Archives
- April (12 items)
- May (22 items)
- June (6 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact