[Haskell-cafe] Web application from the ground up

Marc Weber marco-oweber at gmx.de
Thu Oct 9 06:45:39 EDT 2008


Hi Arnaud Bailly,

Share the world? *g* is a bit vague..

Fast CGI differs from CGI in one point: your application keeps running.
Thus as long as the application is running you can use
IORefs (bad for multithreading)
MVars (thread safe)
STM etc to keep track of your "world" state
and of course you can share data on filesystem and in databases..
(you must lookup thread safety in the db lib documentations)

I'd like to point you to 
a) HAppS-State lib providing state with ACID guarantees (-> hackage or
happs.org or #happs on freenode) which already does a great job as long
as your global data fits within RAM.
b) You definitely should also have a look at WASH. This lib already has
solved many common problems. It's mainly based on CGI.
http://www.informatik.uni-freiburg.de/~thiemann/WASH/
But reading the examples should give an idea about how powerful web
developement can be.

I'm working on some topics as well. We also have a very low traffic
web-dev mailinglist (haskell.org -> mailinglist ..)

Have fun
Marc Weber


More information about the Haskell-Cafe mailing list