News for hackers. Stuff that matters.
Re:Luajit IO framework by espadrine on Thursday April 16, 2015 @11:58AM (#9388846)
The code features some extensive use of coroutines: https://github.com/kingluo/luajit.io/blob/master/lib/ljio/so...

I wonder how nice they are to use compared to threads, or even to node-style CPS.

Re:Luajit IO framework by adrusi on Thursday April 16, 2015 @12:06PM (#9388897)
It's basically the same as fibers in node. Also quite similar to goroutines running on just one cpu.
Re:Luajit IO framework by charliesome on Thursday April 16, 2015 @12:57PM (#9389206)
And also quite similar to kernel threads
Re:Luajit IO framework by felixgallo on Thursday April 16, 2015 @03:18PM (#9390186)
Not at all like kernel threads, which are preemptive and in kernel space.