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
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With