| Store | Cart

[TCLCORE] Question on coroutines

From: miguel sofer <migu...@gmail.com>
Sat, 05 Dec 2009 19:25:15 -0300
I am working on fixing some of the missing things in coros.

For instance, as of today, HEAD can tailcall out of a coro.

The missing thing is to nre-enable coros: if you call
   coroutine B $body {*}$arglist
from within a coroutine A, it would be good ig coroutine A would remove 
itself from the callstacks before running coroutine B.

I now have a good idea as to how to do this ... sorry it took so long. 
It should be in HEAD in the next few days.

The same tech makes possible a new command [yieldTo]: essentially 
[tailcall] but yielding instead of returning - that is, saving the state 
of the current coro, so that it can be reawakened later on. I am 
planning to put this into ::tcl::unsupported.

I think that this command could find very interesting applications. The 
big Q is: shall I try to TIP it as an amendment to TIP #328? I DO know 
it is rather late ...

Cheers
Miguel

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core

Recent Messages in this Thread
miguel sofer Dec 05, 2009 10:25 pm
Donal K. Fellows Dec 07, 2009 01:04 am
Kevin Kenny Dec 07, 2009 02:47 am
Larry McVoy Dec 07, 2009 02:56 am
Kevin Kenny Dec 07, 2009 04:41 am
Neil Madden Dec 07, 2009 09:35 am
miguel sofer Dec 07, 2009 01:41 pm
Kevin Kenny Dec 07, 2009 02:24 pm
Donal K. Fellows Dec 07, 2009 01:08 pm
miguel sofer Dec 07, 2009 01:20 pm
Donal K. Fellows Dec 07, 2009 02:09 pm
miguel sofer Dec 07, 2009 02:24 pm
miguel sofer Dec 07, 2009 04:44 pm
Neil Madden Dec 07, 2009 02:31 pm
Kevin Kenny Dec 07, 2009 02:44 pm
Neil Madden Dec 08, 2009 01:10 pm
Donald G Porter Dec 08, 2009 02:15 pm
miguel sofer Dec 08, 2009 02:22 pm
Kevin Kenny Dec 07, 2009 02:33 pm
Joe English Dec 08, 2009 06:08 pm
miguel sofer Dec 08, 2009 06:15 pm
Messages in this thread