Re: Beazley on Generators

2009-04-01 Thread Lawrence D'Oliveiro
In message d2733ede-4d66-40a2-9a63-60d5363db...@q16g2000yqg.googlegroups.com, Michele Simionato wrote: Excellent reading for everybody wanting to understand cooperative concurrency! Hey, some of us were doing cooperative concurrency programming old MacOS for years. It was generally

Re: Beazley on Generators

2009-04-01 Thread Michele Simionato
On Apr 1, 7:57 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message d2733ede-4d66-40a2-9a63-60d5363db...@q16g2000yqg.googlegroups.com, Michele Simionato wrote: Excellent reading for everybody wanting to understand cooperative concurrency! Hey, some of us were

Re: Beazley on Generators

2009-04-01 Thread Kay Schluehr
On 1 Apr., 07:03, Terry Reedy tjre...@udel.edu wrote: At PyCon2008, David Beazley presented an excellent talk on generators. Generator Tricks for Systems Programmershttp://www.dabeaz.com/generators/index.html At PyCon2009, he followed up with another talk on more advanced generator usage,

Re: Beazley on Generators

2009-04-01 Thread andrew cooke
Kay Schluehr wrote: There is just one thing I find disappointing. Since the talk is almost a compendium of advanced uses of generators I'm missing a reference to Peter Thatchers implementation of monads: http://www.valuedlessons.com/2008/01/monads-in-python-with-nice-syntax.html Peters

Re: Beazley on Generators

2009-04-01 Thread Peter Pearson
On Wed, 01 Apr 2009 01:03:50 -0400, Terry Reedy tjre...@udel.edu wrote: At PyCon2008, David Beazley presented an excellent talk on generators. Generator Tricks for Systems Programmers http://www.dabeaz.com/generators/index.html At PyCon2009, he followed up with another talk on more advanced

Re: Beazley on Generators

2009-04-01 Thread Craig Allen
this is great, thanks... we have used generators to create something akin to a cooperative tasking environment... not to implement multitasking, but to be able to control low level data processing scripts. These scripts, written as generators, yield control to a control loop which then can pause,

Re: Beazley on Generators

2009-04-01 Thread Carl Banks
On Mar 31, 10:03 pm, Terry Reedy tjre...@udel.edu wrote: At PyCon2008, David Beazley presented an excellent talk on generators. Generator Tricks for Systems Programmershttp://www.dabeaz.com/generators/index.html At PyCon2009, he followed up with another talk on more advanced generator

Re: Beazley on Generators

2009-04-01 Thread Lawrence D'Oliveiro
In message 13298fc5-5024-4343- bf5a-7e271a08d...@o11g2000yql.googlegroups.com, Michele Simionato wrote: However, there are situations when you need thousands of lightweight threads of execution ;;; The Linux kernel has been tested running hundreds of thousands of threads. --

Re: Beazley on Generators

2009-04-01 Thread Steven D'Aprano
On Thu, 02 Apr 2009 11:37:46 +1300, Lawrence D'Oliveiro wrote: In message 13298fc5-5024-4343- bf5a-7e271a08d...@o11g2000yql.googlegroups.com, Michele Simionato wrote: However, there are situations when you need thousands of lightweight threads of execution ;;; The Linux kernel has been

Re: Beazley on Generators

2009-04-01 Thread Paul Rubin
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: However, there are situations when you need thousands of lightweight threads of execution ;;; The Linux kernel has been tested running hundreds of thousands of threads. Those are still heavyweight threads requiring context

Beazley on Generators

2009-03-31 Thread Terry Reedy
At PyCon2008, David Beazley presented an excellent talk on generators. Generator Tricks for Systems Programmers http://www.dabeaz.com/generators/index.html At PyCon2009, he followed up with another talk on more advanced generator usage, which Guido commended on the python-ideas list: A Curious

Re: Beazley on Generators

2009-03-31 Thread Michele Simionato
On Apr 1, 7:03 am, Terry Reedy tjre...@udel.edu wrote: At PyCon2008, David Beazley presented an excellent talk on generators. Generator Tricks for Systems Programmershttp://www.dabeaz.com/generators/index.html At PyCon2009, he followed up with another talk on more advanced generator usage,