www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Fibers vs Async/await

reply "Jonathan Dunlap" <jadit2 gmail.com> writes:
I was listening to one of the DConf sessions and where was some 
talk about implementing async from C# into D someday in the far 
future. Recently I learned about D's fibers... and it looks like 
the same thing to me. What are the major differences in principle?

-Jonathan
 jonathanAdunlap
Jun 11 2013
parent reply "Jonathan Dunlap" <jadit2 gmail.com> writes:
*bump*

On Tuesday, 11 June 2013 at 19:57:27 UTC, Jonathan Dunlap wrote:
 I was listening to one of the DConf sessions and where was some 
 talk about implementing async from C# into D someday in the far 
 future. Recently I learned about D's fibers... and it looks 
 like the same thing to me. What are the major differences in 
 principle?

 -Jonathan
  jonathanAdunlap
Jun 15 2013
parent Sean Kelly <sean invisibleduck.org> writes:
Fibers don't actually execute asynchronously.  They represent an =
alternate execution context (code and stack) but are executed by the =
thread that calls them, and control is returned when they either yield =
or complete.  This video is a good introduction to fibers:

http://vimeo.com/1873969

On Jun 15, 2013, at 10:54 AM, Jonathan Dunlap <jadit2 gmail.com> wrote:

 *bump*
=20
 On Tuesday, 11 June 2013 at 19:57:27 UTC, Jonathan Dunlap wrote:
 I was listening to one of the DConf sessions and where was some talk =
about implementing async from C# into D someday in the far future. = Recently I learned about D's fibers... and it looks like the same thing = to me. What are the major differences in principle?
=20
 -Jonathan
  jonathanAdunlap
=20
Jun 17 2013