Reputation: 71
I haven't done anything networkish in haskell, so I'm giving that a try now. I'm using Oleg's ZFS as a template how to do that.
IIRC he wasn't using threads but was using "delimited continuations" instead so I wonder if a heavier load server app could principally also be written without using forkIO threads.
Günther
Upvotes: 7
Views: 350
Reputation: 137947
This is really a research question. Oleg's zipperFS didn't use any of Haskell's fine concurrency mechanisms under the hood, so it wouldn't scale to many concurrent users, I'm quite certain.
I'm intrigued that you can write a web server using a zipper. Publish!
But why not just write a regular server using massive concurrency in the classic style -- one forkIO per accept?
Upvotes: 2