Hi Don,

no I can't, I have no clue how to do that. :)

There is Olegs ZFS and he has written all his code without any use of forkIO, so I know it's possible, I just haven't been able to translate it to my problem.

Günther


Am 27.07.2009, 19:10 Uhr, schrieb Don Stewart <d...@galois.com>:

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


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to