Hi termer,

I have looked multiple times at the API of cps and nim-sys. But it seems to me 
quite complex and unintuitive. I really can't figure how to do asyncio with it. 
It seems really a cool project. But if I'm not wrong, it implies to use 
Continuation everywhere, and can't be integrated easily with sync style code 
(just like the same problem with function coloring on std/asyncdispatch).

How can that kind of function be async `proc read(f: AsyncFile; b: ref string): 
int` in stackless coroutines without returning some kind of promises ?

Of course, stackless coroutines is more efficient on both memory usage and cpu 
cost, but only stackful coroutines allows to suspend and resume execution in 
arbitrary depthness if I am not wrong.

But I sincerely would like to understand CPS, I have read articles, look at the 
examples. It just can't get how it works.

Reply via email to