3 ms·
I wish Google would open source / standardize their implementation of green threads ("fibers" as they're called internally). You basically write linear programs
by throwaway-1209 9y ago
I wish Google would open source / standardize their implementation of green threads ("fibers" as they're called internally). You basically write linear programs with those (with proper stack traces etc) and they're cooperatively concurrent in user space, possibly over a fixed size preemptively concurrent kernel thread pool. Very nifty and simplifies things a lot. Never seen anything like it on the outside.
- Johnny_Brahms 9y agoAndy Wingo's fibers for guile scheme is similar: https://github.com/wingo/fibers/wiki/Manual https://github.com/wingo/fibers/wiki/Manual Really neat, and the implementation is really a testament to the power of delimited continuations.
- anon78539737567 9y agoI assume that you are trolling. Anyway, be aware that performance of Go programs are still behind of C++, so it is not a real replacement
- throwaway-1209 9y agoI'm not talking about Go. Google fibers are C++.
- nick_ 9y agoThank you for mentioning this! I've been pondering this kind of fiber+thread design for a few days and it's nice to have some validation of the idea since I didn't know of any similar designs.