in reply to Re^2: Slow evolution of Perl = Perl is a closed Word (NQP, parrot concurrency == Oh dear.)
in thread Slow evolution of Perl = Perl is a closed Word
How do you interpret those?Well... depends on surrounding context. :-) I've not read the source code, but I'll play anyway.
Create a local copy of the PMC if necessary. (No copy is made if it is marked shared.) This includes workarounds for Parrot_clone() not doing the Right Thing with subroutines (specifically, code segments aren't preserved and it is difficult to do so as long as Parrot_clone() depends on freezing).
Well on first glance that comment seems to hark back to iThreads' "copy unshared data by default" nastiness... but on second reading (without better context) they're talking about PMCs that represent user code.
Fixup a PMC to be sharable. Right now, reassigns the vtable to one owned by some master interpreter, so the PMC can be safely reused after thread death.
I think it's clear that this comment pertains to the "shared everything" model rather than the "shared nothing model". It also sounds like exactly what I'd do for a "shared interpreter pool" scenario in a "shared everything" model.
In the future the PMC returned might be different than the one passed, e.g., if we need to reallocate the PMC in a different interpreter.
I definitely cannot devine any meaning from that one... what specifically about those words gives you pause?
In short, I definitely wouldn't interpret those comments (together or separately) to mean as you've concluded. I'd need much more context (and naturally to read the damn code) before I made any such conclusion.
Actually, if I must interpret those comments as a whole (a silly exercise at best), I get the following:
You see how I did that? ;) I got a completely different meaning from the same comments.
Seriously though, it's not like there's a CMM traceability document tying specific parts of the parrot implementation to words in the TDD... the parrot development has been highly incremental, striving for specific goals at each stage. I can only go by the discussion I read in the group's threads.
Larry (below) has put my mind at ease about perl6 wrt concurrency, so now I guess I'll just pay a bit more attention to the relevant groups to see what's really going on wrt concurrency in parrot.
-David
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Slow evolution of Perl = Perl is a closed Word (NQP, parrot concurrency == Oh dear.)
by BrowserUk (Patriarch) on Sep 11, 2007 at 03:59 UTC | |
by erroneousBollock (Curate) on Sep 11, 2007 at 05:05 UTC | |
by BrowserUk (Patriarch) on Sep 11, 2007 at 05:35 UTC |