On Sep 23, 10:58 pm, Brian Hammond
or.else.it.gets.the.h...@gmail.com wrote:
On Aug 25, 12:51 am, Denis denis.bile...@gmail.com wrote:
You can also atgevent
http://pypi.python.org/pypi/gevent
Please, please document this! There are a lot of people who would
love to use this but give up
On Thursday, 1 October 2009 00:27:02 Rhodri James wrote:
I was going to say, you want 256 bytes of RAM, you profligate
so-and-so? Here, have 32 bytes of data space and stop your
whining :-)
My multi tasking is coming on nicely, but I am struggling a bit with the
garbage collection. The
On Wednesday, 30 September 2009 04:16:45 Grant Edwards wrote:
Assembler macros are indeed a lost art. Back in the day, I
remember seeing some pretty impressive macro libraries layered
2-3 deep. I've done assember macros as recently as about 2-3
years go because it was the easiest way to
Hendrik van Rooyen hend...@microcorp.co.za writes:
You were lucky - I started with an 8039 and the 8048 was a step up!
This is getting a bit far away from python and coroutines, though. :-)
Getting away from python in the opposite direction, if you click
On Wednesday, 30 September 2009 09:46:38 Paul Rubin wrote:
Getting away from python in the opposite direction, if you click
http://cufp.galois.com/2008/schedule.html
the second presentation Controlling Hybrid Vehicles with Haskell
might interest you. Basically it's about a high level
On Mon, 28 Sep 2009 15:44:48 +0100, Grant Edwards
inva...@invalid.invalid wrote:
$10 is pretty expensive for a lot of applications. I bet that
processor also uses a lot of power and takes up a lot of board
space. If you've only got $2-$3 in the money budget, 200uA at
1.8V in the power
On 2009-09-30, Rhodri James rho...@wildebst.demon.co.uk wrote:
On Mon, 28 Sep 2009 15:44:48 +0100, Grant Edwards
inva...@invalid.invalid wrote:
$10 is pretty expensive for a lot of applications. I bet that
processor also uses a lot of power and takes up a lot of board
space. If you've only
Grant Edwards wrote:
On 2009-09-30, Rhodri James rho...@wildebst.demon.co.uk wrote:
On Mon, 28 Sep 2009 15:44:48 +0100, Grant Edwards
inva...@invalid.invalid wrote:
$10 is pretty expensive for a lot of applications. I bet that
processor also uses a lot of power and takes up a lot
On 2009-09-28, Hendrik van Rooyen hend...@microcorp.co.za wrote:
On Saturday, 26 September 2009 16:55:30 Grant Edwards wrote:
On 2009-09-26, Dave Angel da...@ieee.org wrote:
Actually even 64k looked pretty good, compared to the 1.5k of
RAM and 2k of PROM for one of my projects, a navigation
On Monday, 28 September 2009 16:44:48 Grant Edwards wrote:
$10 is pretty expensive for a lot of applications. I bet that
processor also uses a lot of power and takes up a lot of board
space. If you've only got $2-$3 in the money budget, 200uA at
1.8V in the power budget, and 6mm X 6mm of
On 2009-09-29, Hendrik van Rooyen hend...@microcorp.co.za wrote:
On Monday, 28 September 2009 16:44:48 Grant Edwards wrote:
$10 is pretty expensive for a lot of applications. I bet that
processor also uses a lot of power and takes up a lot of board
space. If you've only got $2-$3 in the
On Saturday, 26 September 2009 16:55:30 Grant Edwards wrote:
On 2009-09-26, Dave Angel da...@ieee.org wrote:
Actually even 64k looked pretty good, compared to the 1.5k of
RAM and 2k of PROM for one of my projects, a navigation system
for shipboard use.
I've worked on projects as recently
On Sep 25, 2:07 pm, Grant Edwards inva...@invalid.invalid wrote:
On 2009-09-25, Jason Tackaberry t...@urandom.ca wrote:
And I maintain that requiring yield doesn't make it any less a
coroutine.
Maybe we can call this an aesthetic difference of opinion?
Certainly.
You've a very valid
Grant Edwards inva...@invalid.invalid (GE) wrote:
GE On 2009-09-25, Piet van Oostrum p...@cs.uu.nl wrote:
exar...@twistedmatrix.com (e) wrote:
e I specifically left out all yield statements in my version, since that's
e exactly the point here. :) With real coroutines, they're not necessary -
Dave Angel wrote:
Actually even 64k looked pretty good, compared to the 1.5k of RAM and 2k
of PROM for one of my projects, a navigation system for shipboard use.
Until you wanted to do hi-res colour graphics, at which
point the video memory took up an inconveniently large
part of the address
Dennis Lee Bieber wrote:
On Fri, 25 Sep 2009 14:22:51 + (UTC), Grant Edwards
inva...@invalid.invalid declaimed the following in
gmane.comp.python.general:
EXX accomplised much of the context switch operation. I don't
remember how much RAM was available, but it wasn't much...
On 2009-09-26, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
On Fri, 25 Sep 2009 14:22:51 + (UTC), Grant Edwards
inva...@invalid.invalid declaimed the following in
gmane.comp.python.general:
EXX accomplised much of the context switch operation. I don't
remember how much RAM was
On 2009-09-26, Dave Angel da...@ieee.org wrote:
Actually even 64k looked pretty good, compared to the 1.5k of
RAM and 2k of PROM for one of my projects, a navigation system
for shipboard use.
I've worked on projects as recently as the past year that had
only a couple hundred bytes of RAM, and
On Thursday, 24 September 2009 15:42:36 Antoine Pitrou wrote:
Grant Edwards invalid at invalid.invalid writes:
Back when I worked on one of the first hand-held cellular
mobile phones, it used co-routines where the number of
coroutines was fixed at 2 (one for each register set in a Z80
On 2009-09-25, Hendrik van Rooyen hend...@microcorp.co.za wrote:
On Thursday, 24 September 2009 15:42:36 Antoine Pitrou wrote:
Grant Edwards invalid at invalid.invalid writes:
Back when I worked on one of the first hand-held cellular
mobile phones, it used co-routines where the number of
exar...@twistedmatrix.com (e) wrote:
e I specifically left out all yield statements in my version, since that's
e exactly the point here. :) With real coroutines, they're not necessary -
e coroutine calls look just like any other call. With Python's enhanced
e generators, they are.
The first
On Sep 23, 11:53 pm, exar...@twistedmatrix.com wrote:
I specifically left out all yield statements in my version, since
that's exactly the point here. :) With real coroutines, they're not
necessary - coroutine calls look just like any other call.
Personally, I like the yield. I understand
On 2009-09-25, Piet van Oostrum p...@cs.uu.nl wrote:
exar...@twistedmatrix.com (e) wrote:
e I specifically left out all yield statements in my version, since that's
e exactly the point here. :) With real coroutines, they're not necessary -
e coroutine calls look just like any other call. With
On Fri, Sep 25, 2009 at 11:42 AM, Grant Edwards inva...@invalid.invalid wrote:
On 2009-09-25, Piet van Oostrum p...@cs.uu.nl wrote:
exar...@twistedmatrix.com (e) wrote:
e I specifically left out all yield statements in my version, since that's
e exactly the point here. :) With real coroutines,
On 2009-09-25, Simon Forman sajmik...@gmail.com wrote:
On Fri, Sep 25, 2009 at 11:42 AM, Grant Edwards inva...@invalid.invalid
wrote:
You can't call a function that yields control back to the other
coroutine(s). ?By jumping through some hoops you can get the
same effect, but it's not very
On Fri, 2009-09-25 at 15:42 +, Grant Edwards wrote:
You can't call a function that yields control back to the other
coroutine(s). By jumping through some hoops you can get the
same effect, but it's not very intuitive and it sort of feels
wrong that the main routine has to know ahead of
On 2009-09-25, Jason Tackaberry t...@urandom.ca wrote:
On Fri, 2009-09-25 at 15:42 +, Grant Edwards wrote:
You can't call a function that yields control back to the other
coroutine(s). By jumping through some hoops you can get the
same effect, but it's not very intuitive and it sort of
On Fri, Sep 25, 2009 at 2:07 PM, Jason Tackaberry t...@urandom.ca wrote:
On Fri, 2009-09-25 at 15:42 +, Grant Edwards wrote:
You can't call a function that yields control back to the other
coroutine(s). By jumping through some hoops you can get the
same effect, but it's not very intuitive
On Fri, 2009-09-25 at 18:36 +, Grant Edwards wrote:
That's not comletely transparently. The routine fetch_google()
has to know a priori that s.connect() might want to yield and
so has to invoke it with a yield statement.
With my implementation, tasks that execute asynchronously (which may
On Fri, 2009-09-25 at 15:25 -0400, Simon Forman wrote:
So Kaa is essentially implementing the trampoline function.
Essentially, yeah. It doesn't require (or support, depending on your
perspective) a coroutine to explicitly yield the next coroutine to be
reentered, but otherwise I'd say it's the
On 2009-09-25, Jason Tackaberry t...@urandom.ca wrote:
Jean-Paul made the same argument. In my view, the requirement to yield
s.connect() is a feature, not a bug. Here, IMO explicit truly is better
than implicit. I prefer to know at what specific points my routines may
branch off.
And I
Grant Edwards invalid at invalid.invalid writes:
Back when I worked on one of the first hand-held cellular
mobile phones, it used co-routines where the number of
coroutines was fixed at 2 (one for each register set in a Z80
CPU).
Gotta love the lightning-fast EXX instruction. :-)
Regards
On Aug 23, 5:02 pm, Phillip B Oldham phillip.old...@gmail.com wrote:
I've been taking a look at the multitude of coroutine libraries
available for Python, but from the looks of the projects they all seem
to be rather quiet. I'd like to pick one up to use on a current
project but can't deduce
On Aug 25, 12:51 am, Denis denis.bile...@gmail.com wrote:
You can also at gevent
http://pypi.python.org/pypi/gevent
Please, please document this! There are a lot of people who would
love to use this but give up when they don't find a guide or something
similar.
--
On Sun, Aug 23, 2009 at 11:02 AM, Phillip B Oldham
phillip.old...@gmail.com wrote:
I've been taking a look at the multitude of coroutine libraries
available for Python, but from the looks of the projects they all seem
to be rather quiet. I'd like to pick one up to use on a current
project but
On 05:00 pm, sajmik...@gmail.com wrote:
On Sun, Aug 23, 2009 at 11:02 AM, Phillip B Oldham
phillip.old...@gmail.com wrote:
I've been taking a look at the multitude of coroutine libraries
available for Python, but from the looks of the projects they all seem
to be rather quiet. I'd like to pick
On Wed, Sep 23, 2009 at 2:05 PM, exar...@twistedmatrix.com wrote:
On 05:00 pm, sajmik...@gmail.com wrote:
On Sun, Aug 23, 2009 at 11:02 AM, Phillip B Oldham
phillip.old...@gmail.com wrote:
I've been taking a look at the multitude of coroutine libraries
available for Python, but from the
On 2009-09-23, Simon Forman sajmik...@gmail.com wrote:
Coroutines are built into the language. ?There's a good talk
about them here: http://www.dabeaz.com/coroutines/
But what some Python programmers call coroutines aren't really
the same as what the programming community at large would call
On 08:16 pm, sajmik...@gmail.com wrote:
On Wed, Sep 23, 2009 at 2:05 PM, exar...@twistedmatrix.com wrote:
[snip]
But what some Python programmers call coroutines aren't really the
same as
what the programming community at large would call a coroutine.
Jean-Paul
Really? I'm curious as to
On 2009-09-23, exar...@twistedmatrix.com exar...@twistedmatrix.com wrote:
On 08:16 pm, sajmik...@gmail.com wrote:
On Wed, Sep 23, 2009 at 2:05 PM, exar...@twistedmatrix.com wrote:
[snip]
But what some Python programmers call coroutines aren't really the
same as
what the programming community
On Wed, 2009-09-23 at 20:50 +, exar...@twistedmatrix.com wrote:
immediately outside the generator. This means that you cannot use
enhanced generators to implement an API like this one:
def doSomeNetworkStuff():
s = corolib.socket()
s.connect(('google.com', 80))
On 09:40 pm, t...@urandom.ca wrote:
On Wed, 2009-09-23 at 20:50 +, exar...@twistedmatrix.com wrote:
immediately outside the generator. This means that you cannot use
enhanced generators to implement an API like this one:
def doSomeNetworkStuff():
s = corolib.socket()
On Wed, 2009-09-23 at 21:53 +, exar...@twistedmatrix.com wrote:
I specifically left out all yield statements in my version, since
that's exactly the point here. :) With real coroutines, they're not
necessary - coroutine calls look just like any other call. With
Python's enhanced
On 10:00 pm, t...@urandom.ca wrote:
On Wed, 2009-09-23 at 21:53 +, exar...@twistedmatrix.com wrote:
I specifically left out all yield statements in my version, since
that's exactly the point here. :) With real coroutines, they're not
necessary - coroutine calls look just like any other
On Wed, 2009-09-23 at 22:07 +, exar...@twistedmatrix.com wrote:
Sure, no value judgement intended, except on the practice of taking
words with well established meanings and re-using them for something
else ;)
I think it's the behaviour that's important, and not the specific syntax
needed
On Wed, 23 Sep 2009 23:18:26 +0100, Jason Tackaberry t...@urandom.ca
wrote:
On Wed, 2009-09-23 at 22:07 +, exar...@twistedmatrix.com wrote:
Sure, no value judgement intended, except on the practice of taking
words with well established meanings and re-using them for something
else ;)
I
On 10:18 pm, t...@urandom.ca wrote:
On Wed, 2009-09-23 at 22:07 +, exar...@twistedmatrix.com wrote:
Sure, no value judgement intended, except on the practice of taking
words with well established meanings and re-using them for something
else ;)
I think it's the behaviour that's important,
You can also at gevent
http://pypi.python.org/pypi/gevent
On Aug 23, 10:02 pm, Phillip B Oldham phillip.old...@gmail.com
wrote:
I've been taking a look at the multitude of coroutine libraries
available for Python, but from the looks of the projects they all seem
to be rather quiet. I'd like
I've been taking a look at the multitude of coroutine libraries
available for Python, but from the looks of the projects they all seem
to be rather quiet. I'd like to pick one up to use on a current
project but can't deduce which is the most popular/has the largest
community.
Libraries I looked
Phillip B Oldham phillip.old...@gmail.com writes:
I've been taking a look at the multitude of coroutine libraries
available for Python, but from the looks of the projects they all seem
to be rather quiet. I'd like to pick one up to use on a current
project but can't deduce which is the most
On Sun, Aug 23, 2009 at 6:02 PM, Phillip B Oldham
phillip.old...@gmail.comwrote:
I've been taking a look at the multitude of coroutine libraries
available for Python, but from the looks of the projects they all seem
to be rather quiet. I'd like to pick one up to use on a current
project but
51 matches
Mail list logo