[Haskell] select(2) or poll(2)-like function?
Johan Tibell
johan.tibell at gmail.com
Mon Apr 18 10:54:19 CEST 2011
On Mon, Apr 18, 2011 at 10:06 AM, Svein Ove Aas <svein.ove at aas.no> wrote:
> And I've often wanted a select-equivalent in Haskell. It'd be simple,
> it'd help, so why not?
>
> But good luck using multiple cores like that. The one paradigm that
> makes no sense in Haskell is worker threads (since the RTS does that
> for us); instead of fetching a worker, just forkIO instead.
>
> Unless you're trying for LIFO or similar for overload handling, in
> which case.. umh. Right. Can we have select, please?
>
> ..I'm sure I started this off trying to explain why you don't need it.
>
If you really want an event-driven programming model, use GHC.Event
-- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell/attachments/20110418/5335ef10/attachment.htm>
More information about the Haskell
mailing list