Hi Andrew,
Please look at the latest documentation:
https://bitbucket.org/pypy/pypy/raw/stm-thread/pypy/doc/stm.rst
You should be able to use such a "thread.atomic" in stackless.py. You
need to create N threads and run the tasklets in these threads. As
long as each tasklet's user code is protec
Hi Armin:
Thanks for the explanation. Sorry for taking so long to respond. This is a
challenging post. Comments below:
From: Armin Rigo
To: Andrew Francis
Cc: Py Py Developer Mailing List
Sent: Thursday, April 19, 2012 3:37 PM
Subject: Re: Question ab
Re-Hi,
On Thu, Apr 19, 2012 at 21:37, Armin Rigo wrote:
> You have to make sure that all tasklet.switch()es internally go back
> to the main program, and not directly to another tasklet.
Ah, sorry, I confused the stackless interface. You don't switch() to
tasklets, but instead call send() and r
Hi Andrew,
On Thu, Apr 19, 2012 at 19:43, Andrew Francis wrote:
> I am trying to understand enough to get into a position to attempt an
> integration.
I believe you are trying to approach the problem from the bottom-most
level up --- which is a fine way to approach problems; but in this
case, yo
Hi Armin:
From: Armin Rigo
To: Andrew Francis
Cc: Py Py Developer Mailing List
Sent: Tuesday, April 17, 2012 4:19 AM
Subject: Re: Question about stm_descriptor_init(), tasklets and OS threads
>I don't understand why at all, sorry.
Please bear with me :-)
Hi Andrew,
On Tue, Apr 17, 2012 at 00:44, Andrew Francis wrote:
> I am looking at stm_descriptor_init(). Right now makes a call to
> pthread_self(). In a potential Stackless prototype, I would want it to get
> the current tasklet instead.
I don't understand why at all, sorry. I will stick to my
Hi Armin:
I am looking at stm_descriptor_init(). Right now makes a call to
pthread_self(). In a potential Stackless prototype, I would want it to get the
current tasklet instead.
Shouldn't this be enough to get a trivial implementation of Stackless (by
trivial, one thread. Hopefully by sticki