By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,187 Members | 1,009 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,187 IT Pros & Developers. It's quick & easy.

Flow based programming & python coding style

P: n/a

A friend of mine passed me some links about a great concept (not new
in fact, only new to me):


I found many of the explanations and examples strangely familiar. The
C2 Wiki contains a good discussion that draws parallels between FBP
and functional programming, although Paul Morrison is quick to point
ou the differences. It also strikes me how much of this "paradigm
shift" can be readily embodied in Python by using generators.

Since being introduced in the language, generators have been slowly
but surely making it into applications. To properly use generators
involve a big paradigm shift. Generator-based applications are async
in nature; they read & consume data in small chunks (iow, are
data-centric), are more responsive (because they tend to have a
quicker "setup time" to retrieve initial results), and have a big
potential to greatly minimize the memory requirements of an
application. If properly written, I'm sure they can also show a
performance improvement.

I think that, as generators get more and more accepted as "standard"
practice for Python programming, we will see a shift towards a "Flow
Based Programming" style; or at least, to a more data-centric view of
applications. I wonder how much of an impact this will have in the
"marketing" perception of Python. I personally believe that this may
represent a big opportunity for Python, specially with a good business
framework to support its application.

Carlos Ribeiro
Consultoria em Projetos
mail: ca********
mail: ca********
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.