21 Apr 19:49
Re: sqlobjects and threads
From: Oleg Broytmann <phd <at> phd.pp.ru>
Subject: Re: sqlobjects and threads
Newsgroups: gmane.comp.python.sqlobject
Date: 2008-04-21 17:49:01 GMT
Subject: Re: sqlobjects and threads
Newsgroups: gmane.comp.python.sqlobject
Date: 2008-04-21 17:49:01 GMT
On Mon, Apr 21, 2008 at 07:38:55PM +0200, Frank Barknecht wrote:
> As I'm recently doing more Lua than Python programming: the Lua
> community is traditionally very sceptical of threads. The alternative
> approach generally taken in Lua are Coroutines, which found their way
> into Python some years ago as well ("yield", generators, iterators
> etc.), but only in a limited way compared to Lua's more powerful and
> flexible asymmetrical coroutines. An interesting paper in this regard
> is this: http://www.inf.puc-rio.br/~roberto/docs/corosblp.pdf
>
> Coroutines are more lightweight than processes and don't need special
> synchronisation efforts as only one Coroutine is running at any given
> time.
http://pypi.python.org/pypi/cogen/
Oleg.
--
--
Oleg Broytmann http://phd.pp.ru/ phd <at> phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

RSS Feed