| Thread overview | |||||
|---|---|---|---|---|---|
|
July 12, 2016 [Issue 16272] Yield like semantics for function execution | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16272 Mathias Lang <mathias.lang@sociomantic.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mathias.lang@sociomantic.co | |m --- Comment #1 from Mathias Lang <mathias.lang@sociomantic.com> --- This is already possible using a library solution, see https://dlang.org/phobos/std_concurrency.html#.Generator -- | ||||
July 12, 2016 [Issue 16272] Yield like semantics for function execution | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16272 --- Comment #2 from TeddyBear12311@gmail.com --- (In reply to Mathias Lang from comment #1) > This is already possible using a library solution, see https://dlang.org/phobos/std_concurrency.html#.Generator I believe their is a subtle difference. I could be mistaken because I don't know the depth of fibers. Fibers are more concurrency related and imitate a task switch. In this case with functions, no task switching like behavior is needed. Just a push and pop of the locals and a few other little things. It may be exactly what a fiber does though? I'm thinking it is more like thread(heavy) > fiber(medium) > functional yield(light weight). -- | ||||
November 09, 2022 [Issue 16272] Yield like semantics for function execution | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16272 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |MOVED --- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> --- This would require a DIP, however I doubt that it is going to pass through. As pointed out, fibers do this exactly. I am going to close this. If you want to pursue it TeddyBear12311@gmail.com, please submit a DIP. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply