开发者

Writing a sample server app - is forkIO unavoidable?

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 wa开发者_StackOverflows 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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜