Fibers talk by Mikola Lysenko

bearophile bearophileHUGS at lycos.com
Sat Oct 4 05:14:19 PDT 2008


Mikola Lysenko:
> http://team0xf.com/conference/fibers.pdf

Very nice, few simple comments:
- In Python you have yield, but it can also take parameters, so the two coroutines can send messages to each other all the time. I presume this is possible with those fibers too.
- It's good to not have to change the language to implement them. But if you can change the language a little, what kind of syntactic sugar can you find useful for them?
- A few benchmarks to compare the performance of fibers compared to normal plain subroutines (and opApply) can be useful.
- If programmers start using fibers often, then can it become positive for the compiler to be aware of them, to optimize code better? (especially when they are used where they aren't necessary).

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list