Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22104
| Date | 2012-03-24 00:57 +0100 |
|---|---|
| From | Kiuhnm <kiuhnm03.4t.yahoo.it> |
| Newsgroups | comp.lang.python |
| Subject | Re: Stream programming |
| References | <4f6c9e17$0$1383$4fafbaef@reader2.news.tin.it> <mailman.934.1332520419.3037.python-list@python.org> <4f6cde28$0$1383$4fafbaef@reader1.news.tin.it> <mailman.946.1332538494.3037.python-list@python.org> |
| Message-ID | <4f6d0de7$0$1384$4fafbaef@reader1.news.tin.it> (permalink) |
| Organization | TIN.IT (http://www.tin.it) |
On 3/23/2012 22:12, Ethan Furman wrote: > Kiuhnm wrote: >> On 3/23/2012 17:33, Nathan Rice wrote: >>> Given the examples you pose here, it is clear that you are assuming >>> that the streams are synchronized in discrete time. Since you do not >>> provide any mechanism for temporal alignment of streams you are also >>> assuming every stream will have an element at every time point, the >>> streams start at the same time and are of the same length. Is this >>> what you want? >> >> Yes. I thought that streams as an alternative to functional >> programming were widely known. > > Don't know about widely, but I can say I am unfamiliar with the way you > are using them. That's good! It means I'm saying something new (and, hopefully, interesting). >>> This implies that your transformations again produce flows. You >>> should explicitly state this. >> >> Isn't that obvious? BTW, those are not rigorous definitions. I thought >> I was talking to people who regularly works with streams. > > Why would you think that? This list is composed of all types that use > Python. I've seen occasional discussion of functional programming, but > I've only seen anything this confusing maybe twice before... granted, I > don't read *everything*, but I do read quite a bit -- especially the > stuff that looks like it might be interesting... like "stream > programming", for example. ;) > > > After the discussion I've seen so far, I still have no idea how I would > use your code or what it's good for. The idea is simple. Flows or streams let you be more declarative without being too functional :) In imperative progamming you write statements or commands. In functional programming (FP) you write expressions. In streaming programming (SP) you create flows. Basically, if in FP you write h9(h8(h7(.....(h1)....))) in SP you write h1-h2-h3-...-h9 which I greatly prefer because that's the way I think. I think that SP could be an interesting alternative to FP (in ten years, maybe). Mine was just a little experiment. Kiuhnm
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Stream programming Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-23 17:00 +0100
Re: Stream programming Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-23 17:02 +0100
Re: Stream programming Nathan Rice <nathan.alexander.rice@gmail.com> - 2012-03-23 12:33 -0400
Re: Stream programming Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-23 21:33 +0100
Re: Stream programming Nathan Rice <nathan.alexander.rice@gmail.com> - 2012-03-23 17:18 -0400
Re: Stream programming Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-24 01:26 +0100
Re: Stream programming Ethan Furman <ethan@stoneleaf.us> - 2012-03-23 14:12 -0700
Re: Stream programming Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-24 00:57 +0100
Re: Stream programming MRAB <python@mrabarnett.plus.com> - 2012-03-23 18:00 +0000
Re: Stream programming Nathan Rice <nathan.alexander.rice@gmail.com> - 2012-03-23 15:23 -0400
Re: Stream programming Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-23 21:44 +0100
Re: Stream programming Ray Song <emacsray@gmail.com> - 2012-03-24 07:32 +0800
Re: Stream programming Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-24 01:41 +0100
Re: Stream programming Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-03-24 03:23 +0000
Re: Stream programming Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-24 12:05 +0100
Re: Stream programming Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-03-26 11:27 +0200
Re: Stream programming Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-26 13:45 +0200
csiph-web