August 12, 2003
Coroutine is more than just iterators:

http://www.cs.utexas.edu/users/wilson/schintro/schintro_75.html

" ... is far more powerful than normal procedure calling and returning, and allows you to implement advanced control structures such as backtracking, cooperative multitasking, and custom exception-handling."


In article <bharr3$vcu$2@digitaldaemon.com>, Bill Cox says...
>
>Walter wrote:
>> It sounds like fibers have an ill-designed implementation, and are not ready for prime time. Besides, I may have found a neato way to do iterators without need of coroutines.
>
>I'm all ears.  I'd love to here about D's iterators.
>
>Bill
>


August 12, 2003
Coroutine is more than just iterators:

http://www.cs.utexas.edu/users/wilson/schintro/schintro_75.html

" ... is far more powerful than normal procedure calling and returning, and allows you to implement advanced control structures such as backtracking, cooperative multitasking, and custom exception-handling."


In article <bharr3$vcu$2@digitaldaemon.com>, Bill Cox says...
>
>Walter wrote:
>> It sounds like fibers have an ill-designed implementation, and are not ready for prime time. Besides, I may have found a neato way to do iterators without need of coroutines.
>
>I'm all ears.  I'd love to here about D's iterators.
>
>Bill
>


August 12, 2003
yes, but it sounds like Walters worked out how to do iterators without coroutines

iterators don't need the ability to unwind the stack back beyond the
original point of creation
iterators can be implemented as an object with a single member function
which has no locals or params but instead all locals are member of the
object (kind of like the innerfunction model which considers a function to
be a member function of a stack frame). then either a switch on state or a
way to save the location of the last yeild. (yeild either updates a state
int, or saves the address of the next instruction in the "start from here"
pointer)
although this does not limit the iterated function to be only leaf function
it does limit the yeild point to only being within that function (you can
not yeild from a function that the itterating function calls).

<nobody@yahoo.com> wrote in message news:bhbeht$1k53$1@digitaldaemon.com...
>
> Coroutine is more than just iterators:
>
> http://www.cs.utexas.edu/users/wilson/schintro/schintro_75.html
>
> " ... is far more powerful than normal procedure calling and returning,
and
> allows you to implement advanced control structures such as backtracking, cooperative multitasking, and custom exception-handling."
>
>
> In article <bharr3$vcu$2@digitaldaemon.com>, Bill Cox says...
> >
> >Walter wrote:
> >> It sounds like fibers have an ill-designed implementation, and are not
ready
> >> for prime time. Besides, I may have found a neato way to do iterators without need of coroutines.
> >
> >I'm all ears.  I'd love to here about D's iterators.
> >
> >Bill
> >
>
>


August 12, 2003
I want to try and implement it first to see if it works. I have my best ideas when out jogging, including this one. What I like to do is 'load up on context', which means do all my research at the computer, with this newsgroup, google, my books, etc. Then out the door for a run. I think all the pounding seems to throw all the bits of data around in the air, shaking them around until they fit together <g>.

"Sean L. Palmer" <palmer.sean@verizon.net> wrote in message news:bha9su$dpk$1@digitaldaemon.com...
> I'll bite.
>
> Sean
>
> "Walter" <walter@digitalmars.com> wrote in message news:bha2fs$5dq$1@digitaldaemon.com...
> > It sounds like fibers have an ill-designed implementation, and are not
> ready
> > for prime time. Besides, I may have found a neato way to do iterators without need of coroutines.
>
>



August 12, 2003
Walter wrote:
> I want to try and implement it first to see if it works. I have my best
> ideas when out jogging, including this one. What I like to do is 'load up on
> context', which means do all my research at the computer, with this
> newsgroup, google, my books, etc. Then out the door for a run. I think all
> the pounding seems to throw all the bits of data around in the air, shaking
> them around until they fit together <g>.

This is also one of the key symptomes of addiction - when a person keeps thinking about it when away from it. :) i.e. Internet addicts are said to have a "dense mindstream" as soon as they disconnect.

-i.

August 13, 2003
"Ilya Minkov" <midiclub@8ung.at> wrote in message news:bhbrfg$1vr0$1@digitaldaemon.com...
> Walter wrote:
> > I want to try and implement it first to see if it works. I have my best ideas when out jogging, including this one. What I like to do is 'load
up on
> > context', which means do all my research at the computer, with this newsgroup, google, my books, etc. Then out the door for a run. I think
all
> > the pounding seems to throw all the bits of data around in the air,
shaking
> > them around until they fit together <g>.
> This is also one of the key symptomes of addiction - when a person keeps thinking about it when away from it. :) i.e. Internet addicts are said to have a "dense mindstream" as soon as they disconnect.

What else is there to think about?


1 2 3
Next ›   Last »