
27 Jul
2009
27 Jul
'09
5:10 p.m.
gue.schmidt:
Hi,
I'd like to retire forkIO and friends by using Delimited Continuations instead. Am I dead wrong here in my understanding of Delimited Continuations or can I pursue in this direction?
The most immediate use for this is actully GUI problems where I'd use del-conts in place of forkIO for long-running computations because once I forkIO the computation so as not to block the UI thread I cannot call GUI code from the end of that thread. Well I can but then the app crashes because of single threading issues.
Can you provide some examples of how you'd rewrite forkIO code to use del-conts? -- Don