Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: John Meacham <john-Xpmz+KwqpqvR7s880joybQ <at> public.gmane.org>
Subject: state threads
Newsgroups: gmane.comp.lang.haskell.prime
Date: Monday 3rd April 2006 06:08:02 UTC (over 11 years ago)
In case anyone was wondering what this state-threads thing I keep
talking about is, here is a sample implementation (in C) as well as a
lot of documentation and FAQs that apply to haskell as well.

http://state-threads.sourceforge.net/

it should be noted that the chief disadvantage of state threads in C is
not an issue for haskell (requiring an alternate IO library)


A form of state threads can be implemented in pure haskell using the Poor
Man's
Concurrency monad described here:
http://citeseer.ist.psu.edu/claessen99functional.html
assuming you have the ability to use an 'epoll' or 'select' mechanism.
However, this is probably not a suitable implementation method for high
performance haskell implementations and does not address foreign
concurrent calls.

        John
-- 
John Meacham - ⑆repetae.net⑆john⑈
 
CD: 3ms