summaryrefslogtreecommitdiff
path: root/artima
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2010-08-02 07:10:38 +0200
committerMichele Simionato <michele.simionato@gmail.com>2010-08-02 07:10:38 +0200
commit39670ca6b766a1c576c68f5a80729b6fde4d0e06 (patch)
treee1c5800d623c83cd035e6d58062e0e2a6d6d2a36 /artima
parent7d1b33b82933b37408cc9919a8b1da810b7ffa74 (diff)
downloadmicheles-39670ca6b766a1c576c68f5a80729b6fde4d0e06.tar.gz
Added an UPDATE about Dave Beazley's article about threads and generators
Diffstat (limited to 'artima')
-rw-r--r--artima/python/Makefile9
-rw-r--r--artima/python/parallel.txt11
2 files changed, 14 insertions, 6 deletions
diff --git a/artima/python/Makefile b/artima/python/Makefile
index dd6a5ef..8e36744 100644
--- a/artima/python/Makefile
+++ b/artima/python/Makefile
@@ -6,20 +6,19 @@ default:
echo "Available python files:"; ls *.py
super1: super1.py
- $(MINIDOC) -d super1; #$(POST) /tmp/super1.rst 236275
+ $(MINIDOC) -d super1; $(POST) /tmp/super1.rst 236275
super2: super2.py
- $(MINIDOC) -d super2; #$(POST) /tmp/super2.rst 236278
+ $(MINIDOC) -d super2; $(POST) /tmp/super2.rst 236278
super3: super3.py
- $(MINIDOC) -d super3; #$(POST) /tmp/super3.rst 237121
+ $(MINIDOC) -d super3; $(POST) /tmp/super3.rst 237121
super4: super4.py
- $(MINIDOC) -d super4; #$(POST) /tmp/super4.rst 281127
+ $(MINIDOC) -d super4; $(POST) /tmp/super4.rst 281127
super: super.rst super1.py super2.py super3.py super4.py
$(RST) -tp super.rst
- #scp super.pdf micheles@merlin.phyast.pitt.edu:public_html/python
generic: genericfunctions.py
$(MINIDOC) -d genericfunctions; $(POST) /tmp/genericfunctions.rst 237764
diff --git a/artima/python/parallel.txt b/artima/python/parallel.txt
index 06b1c46..3241794 100644
--- a/artima/python/parallel.txt
+++ b/artima/python/parallel.txt
@@ -271,9 +271,17 @@ systems. Actually I should probably remove the future tense since a
lot of people are already working in this scenario.
I leave further comments to my readers.
+UPDATE: I see today a very interesting (as always!) `article by Dave Beazley`_
+on the subject of threads and generators. He suggests cooperation between
+threads and generators instead of just replacing threads with generators.
+Kind of interesting to me, since plac_ uses the same trick of wrapping
+a generator inside a thread, even if for different reasons (I am just
+interested in making the thread killable, Dave is interested on performance).
+BTW, all articles by Dave are a must read if you are interested in concurrency
+in Python, do a favor to yourself and read them!
+
.. http://blog.ianbicking.org/concurrency-and-processes.html
.. http://thread.gmane.org/gmane.comp.python.devel/71708 # Pythonic concurrency
-
.. _the PDF is public: http://research.microsoft.com/en-us/um/people/simonpj/papers/stm/beautiful.pdf
.. _nice blog post: http://shoptalkapp.com/blog/2009/10/20/beautiful-coroutines
.. _PEP 3148: http://www.python.org/dev/peps/pep-3148/
@@ -283,3 +291,4 @@ I leave further comments to my readers.
.. _Threads Considered Harmful: http://www.kuro5hin.org/story/2002/11/18/22112/860
.. _Beautiful Code: http://oreilly.com/catalog/9780596510046/preview
.. _it will improve: http://www.dabeaz.com/python/NewGIL.pdf
+.. _article by Dave Beazley: http://dabeaz.blogspot.com/2010/07/yieldable-threads-part-1.html