views:

409

answers:

4

I'm looking for a web host that will let me run a Haskell web application. VPS's seem attractive to me because you can run essentially anything you want. But some of the cloud hosts offer really nice scalability in terms of hard disk space and bandwidth.

Does anyone know of a host that will let me run exotic languages like Haskell but can also seamlessly scale up the hard disk space/RAM/bandwidth/CPU available to my host?

+5  A: 

If you just want very simple hosting with CGI, NearlyFreeSpeech.net supports Haskell and some other less common languages. I personally also like their overall nonsense-free approach and sensible pricing model (pre-pay metered charges, instead of the usual model of a fixed monthly charge, oversold server capacity, and absurd overage fees).

There are a few caveats however, mainly that they don't permit standalone servers or persistent daemons, only things invoked via CGI from Apache. This might be a problem for some Haskell web app frameworks.

camccann
One note about NFS: you can use whatever version of Haskell you want and whatever libs if you compile the binaries on your own machine (not on theirs). For that you'll need a setup of FreeBSD (probably a virtual one like in VirtualBox). only caveat is that afaik installing FreeBSD takes ~ a day of compilations.
yairchu
PCBSD is FreeBSD distro for the desktop no compiling required to get a desktop set up.
stonemetal
@stonemetal: 10x. I'll definitely look into that
yairchu
@yairchu @stonemeal: Those two snippets of information have made my day! I was always a bit down on the fact that NFSN didn't run the latest version of GHC.
Jacob Stanley
+1  A: 

In theory all you need is CGI/FastCGI support. I've had some luck playing around with Happstack on a very basic Dreamhost account by following these instructions:

While non-trivial to get running, this web experiment proves that it is at the very least possible to run Happstack applications on cheap hosting providers such as Dreamhost with little more than a shell account and CGI support.

I've only tried this with toy applications, and don't know how it would scale.

Travis Brown
+1  A: 

Apparently, it's possible to get ghc running on Webfaction. There are also threads about it in the Webfaction support forums, and the admins/techs are quite willing to try to make it work, though it'c clearly not something they'd do out of the box.

chryss
+1  A: 

Maybe this is obvious, but you can always use Amazon EC2. You'll have full control, and definitely meets your requirement for seamlessly scaling up.

dbyrne
Hmm, that's true. I know that they support seamless CPU scaling - do they also do the same with hard disk space or do I need to contract that out to S3?
Bill
Yes, you would use S3. You can send content from S3 to EC2 without incurring any data transfer charges for moving the data between the services.
dbyrne
Jason Dusek