Benefits of continuation?

lobozc at my-deja.com lobozc at my-deja.com
Fri Nov 3 16:14:42 EST 2000


actually, i think that continuations would be very important to the
core use of python!

python is doing plenty of string processing, scanning etc - and this is
where continuations can be used very effectively. For examples see the
icon programming language with its generator approach. There is nothing
there you couldn't do with appropriately crafted objects, but you can
reduce your line count by order of magnitude by not having to code
that. Probably the reason why compiler people are interested in that.

so it's more than simulations (rather smaller niche than text
processing)

continuations would also give python a larger advantage over Perl and
many smaller (in reach) languages.

In article <8tv61a$gmt$1 at news.nuri.net>,
  "June Kim" <junaftnoon at nospamplzyahoo.com> wrote:
>
> "Courageous" <jkraska1 at san.rr.com> wrote in message
> news:ar160tcnr3vdocehs12rg7u53tfhjohdhl at 4ax.com...
> >
> > >I think this remark above is very true. Context switches was the
very
> > >first brain wave I had. Makes me wonder whether continuation
actual ever
> > >will be used directly. Indirect usage ("under-water", hidden, etc.)
> > >seems more likely.
> >
> > Right. You have to understand that they are a very useful
> > mechanism upon which you can build alternate flow-control
> > constructs. I personally use them for context-switching in a
> > simulation I wrote. They are, ah.... VERY VERY FAST.
> >
>
> Could I have a look at some snippets of examples to
> get the feeling of how it works in reality? It would be
> really nice 'cause reading those rather abstract documents
> gives me only vague images of the castle in the air.
>
> Best regards,
>
> June.
>
> > An attempt to do the same thing in Java would cause the
> > JVM to die a horrible death with 1/10th the thread-load.
> >
> >
> >
> > C//
> >
> >
> >
> >
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list