Re: Most active coroutine library project?

2009-10-09 Thread Denis
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

Re: Most active coroutine library project?

2009-10-01 Thread Hendrik van Rooyen
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

Re: Most active coroutine library project?

2009-09-30 Thread Hendrik van Rooyen
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

Re: Most active coroutine library project?

2009-09-30 Thread Paul Rubin
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

Re: Most active coroutine library project?

2009-09-30 Thread Hendrik van Rooyen
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

Re: Most active coroutine library project?

2009-09-30 Thread Rhodri James
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

Re: Most active coroutine library project?

2009-09-30 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-30 Thread Dave Angel
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

Re: Most active coroutine library project?

2009-09-29 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-29 Thread Hendrik van Rooyen
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

Re: Most active coroutine library project?

2009-09-29 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-28 Thread Hendrik van Rooyen
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

Re: Most active coroutine library project?

2009-09-28 Thread Arlo Belshee
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

Re: Most active coroutine library project?

2009-09-27 Thread Piet van Oostrum
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 -

Re: Most active coroutine library project?

2009-09-27 Thread greg
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

Re: Most active coroutine library project?

2009-09-26 Thread Dave Angel
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...

Re: Most active coroutine library project?

2009-09-26 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-26 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-25 Thread Hendrik van Rooyen
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

Re: Most active coroutine library project?

2009-09-25 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-25 Thread Piet van Oostrum
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

Re: Most active coroutine library project?

2009-09-25 Thread Michele Simionato
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

Re: Most active coroutine library project?

2009-09-25 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-25 Thread Simon Forman
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,

Re: Most active coroutine library project?

2009-09-25 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-25 Thread Jason Tackaberry
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

Re: Most active coroutine library project?

2009-09-25 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-25 Thread Simon Forman
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

Re: Most active coroutine library project?

2009-09-25 Thread Jason Tackaberry
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

Re: Most active coroutine library project?

2009-09-25 Thread Jason Tackaberry
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

Re: Most active coroutine library project?

2009-09-25 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-24 Thread Antoine Pitrou
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

Re: Most active coroutine library project?

2009-09-24 Thread Michele Simionato
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

Re: Most active coroutine library project?

2009-09-23 Thread Brian Hammond
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. --

Re: Most active coroutine library project?

2009-09-23 Thread Simon Forman
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

Re: Most active coroutine library project?

2009-09-23 Thread exarkun
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

Re: Most active coroutine library project?

2009-09-23 Thread Simon Forman
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

Re: Most active coroutine library project?

2009-09-23 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-23 Thread exarkun
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

Re: Most active coroutine library project?

2009-09-23 Thread Grant Edwards
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

Re: Most active coroutine library project?

2009-09-23 Thread Jason Tackaberry
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))

Re: Most active coroutine library project?

2009-09-23 Thread exarkun
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()

Re: Most active coroutine library project?

2009-09-23 Thread Jason Tackaberry
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

Re: Most active coroutine library project?

2009-09-23 Thread exarkun
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

Re: Most active coroutine library project?

2009-09-23 Thread Jason Tackaberry
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

Re: Most active coroutine library project?

2009-09-23 Thread Rhodri James
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

Re: Most active coroutine library project?

2009-09-23 Thread exarkun
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,

Re: Most active coroutine library project?

2009-08-24 Thread Denis
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

Most active coroutine library project?

2009-08-23 Thread Phillip B Oldham
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

Re: Most active coroutine library project?

2009-08-23 Thread Matthew Woodcraft
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

Re: Most active coroutine library project?

2009-08-23 Thread Doron Tal
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