Nice talk about what is under the hood of llvm cor...
# coroutines
g
Nice talk about what is under the hood of llvm coroutines:

https://www.youtube.com/watch?v=Ztr8QvMhqmQ

v
Very interesting. AFAIKT, they never even considered stackless coroutines (what kotlin does)
My guess is that Kotlin woun't need the LLVM support because they are in the compiler
g
@voddan Their implementation is stackless (compile time)
v
@gildor Why they need the LLVM support then?
g
@voddan I’m not a familiar with LLVM, I just watched this talk and coroutines in their implementation is stackless and it works on llvm level - http://llvm.org/docs/Coroutines.html
d
@voddan LLVM support is required if you want coroutines to be as optimized as regular code. Note that (skipping details related to compiler internals) in the end the suspend calls are inlined, and it "feels" just like regular imperative code.
👍 2
v
Thanks, i'll rewatch those parts!