[Haskell-cafe] Retiring forkIO

Günther Schmidt gue.schmidt at web.de
Mon Jul 27 13:19:32 EDT 2009

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.


Am 27.07.2009, 19:10 Uhr, schrieb Don Stewart <dons at 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

More information about the Haskell-Cafe mailing list