3 ms·
Other C coroutines https://github.com/hnes/libaco https://github.com/hnes/libaco https://github.com/baruch/libwire https://github.com/baruch/libwire https://
by ausjke 6y ago
Other C coroutines
https://github.com/hnes/libaco https://github.com/hnes/libaco
https://github.com/baruch/libwire https://github.com/baruch/libwire
https://swtch.com/libtask/ https://swtch.com/libtask/
https://github.com/halayli/lthread https://github.com/halayli/lthread
https://github.com/Tencent/libco https://github.com/Tencent/libco
https://byuu.org/library/libco/ https://byuu.org/library/libco/
- deepspace 6y agoPeople just love re-inventing the wheel. I created my own implementation, back in the early 90s in Borland Turbo C and used it to implement a multi-terminal POS system for a busy bar. Did not know what the technique was called at the time though. Then I joined a company in 96 and discovered that their software all ran on a custom in-house developed multitasking O/S (!). I immediately recognized the task switching mechanism and formally learned about coroutines. Now here we are in 2020 and the youngins are still rediscovering the same thing.
- winrid 6y agoAnd it will keep happening, because there are many more people starting programming each year than old people that can teach them.
- retSava 6y agoAnd it's a Good Thing, since it fosters a inventive way of thinking around a problem rather than just reading/hearing that X exists, download that and be done. It's part of learning and honing a skill. This doesn't mean that the implementation should then be used in practice, there are likely other solutions that are better suited, more mature, etc.
- winrid 6y agoI agree!