Replies: 4 comments
-
We will certainly support adhoc cps blocks, but I'm not sure I understand the bit about dedicated procs. Once you're inside any cps proc, you're golden. You don't need to "cpsify" subsequent code. |
Beta Was this translation helpful? Give feedback.
-
Well, the cps-ification as in example 1 generates a new thread/task (how will we call these things?!) and pokes it on the scheduler with 'runLater' (whatever that may be) - how would you express creating a new flow in a cps block? Or is this where your |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
Also pending #20 |
Beta Was this translation helpful? Give feedback.
-
Just to start a discussion on this, not saying one is better then the other, or that they are exclusive.
With the current CPS procs, each cps 'thread' needs a dedicated proc, so for example doing tcp sockets, you get something like
the original paper however uses nestable blocks to spawn threads, which in Nim could look something like this, which also has a nice flow to it:
Beta Was this translation helpful? Give feedback.
All reactions