Hi Kristjan and Folks:

Message: 2
Date: Mon, 2 Sep 2013 10:23:51 +0000
From: Kristj?n Valur J?nsson <[email protected]>
To: "The Stackless Python Mailing List ([email protected])"
    <[email protected]>
Subject: [Stackless] stacklesslib.async
Message-ID:
    <efe3877620384242a686d52278b7ccd3683f4...@rkv-it-exch104.ccp.ad.local>
Content-Type: text/plain; charset="iso-8859-1"

>Hi there.
>I just checked in an addition to the stacklesslib, the async module.
>See https://bitbucket.org/krisvale/stacklesslib
>This was inspired by the C#async feature, 
>http://msdn.microsoft.com/en->us/library/vstudio/hh191443.aspx

>The module provides two things:
>1)      A Task class, which represents an execution unit, and functions to 
>create tasks and decorators >to help create "task" functions.

I'm vaguely familiar with those C# calls. When I have time, I'll download your 
stacklesslib module. I'll also download a copy of C# (and maybe F#) so I can 
compare. That said, I think that functionality exists because 1) C# does not 
have lightweight threads 2) Microsoft has done extensive concurrency research 
(i.e, look at the paper "Cooperative Task Management without Manual Stack 
Management" and some of that knowledge is starting to get into their modules.

>Stackless has no continuations anymore, so fooAsync is actually run entirely 
>as a new tasklet, but 

Have you thought about experimenting with PyPy's stackless.py module? I believe 
under the hood, it has single shot continuations. You get the additional bonus 
of JIT support.

Cheers,
Andrew
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to