Skip to content

Comment on Beating the Arc Challenge in Haskell

Comments

I'm not sure haskell won here. I think maybe programming with monads won.

No, really. Web programming and continuation monads seem to have really it it off together. When you add them to another language, you get similar results (e.g., http://intensivesystems.net/tutorials/web_sessions.html).

I'd be interested to hear if anyone has solved the problem of embedding a series of pages inside of another (in the sense of Seaside) in a pure functional way. In other words, here's my challenge: write http://www.seaside.st/about/examples/multicounter using the same monadic style.

For pure shortness, I think HTML + JavaScript won here:

http://arclanguage.org/item?id=979

The Haskell example is interesting, though, because it shows a working webapp in Haskell, and it's not even that scary.

Except that these two code examples do two very different things. The Haskell version actually uses a continuation to run multiple requests The Javascript version modifies local mutable state. The Haskell version does it via server interaction, which makes it much more useful to modern web apps.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.