Re: [web-devel] [yesod][newbie] Yesod applications on foreign architectures

Forgot to CC the list twice. Begin forwarded message:
From: Jack Henahan
Date: June 30, 2011 2:16:26 PM EDT To: Michael Snoyman Subject: Re: [web-devel] [yesod][newbie] Yesod applications on foreign architectures Hmm. I think it might just be simpler to buy some cheap hosting and get my university to direct my suffix to that IP. :D I'll definitely keep poking around for options in the meantime. I was just looking for any input before I did anything crazy on their servers. Thanks for all the help, Michael. If I find anything earth-shattering, I'll be sure to post it to the list.
On Jun 30, 2011, at 2:12 PM, Michael Snoyman wrote:
Doh, I didn't pay close enough attention to the link I sent you. GHC 6.4 definitely will not support Yesod, you need at least 6.12. Here are two really bad options that come to mind:
* Compile on Windows, and run via wine. (Never tried.) * Install a Linux virtual machine on the AIX machine.
MIchael
On Thu, Jun 30, 2011 at 9:07 PM, Jack Henahan
wrote: Shall do. I thought a VM or local build might be the only way, and I hope not much has changes in AIX from 4.1 to 5.1. Dependency chasing is going to be the hardest part, really. I'm not sure how compatible Yesod and ghc-6.4 will be with one another. Perhaps I'll make a project of it. The environment has most of the necessary build tools, as far as I can see, so I can probably pull it off as long as I play nicely. There wouldn't happen to be a way to get a gcc config/makefile combo out of a Yesod project, would there? :D
On Jun 30, 2011, at 1:53 PM, Michael Snoyman wrote:
It appears that there is GHC for AIX[1]. I think your best bet is to set up a local system or virtual machine running AIX, build your executables there and then distribute to the server. Though I'm not sure how easy it is to get a virtual machine set up with AIX. I'd be interested to hear how this goes, please keep us posted.
Michael
[1] http://www.haskell.org/ghc/download_ghc_64#powerpcaix
On Thu, Jun 30, 2011 at 8:23 PM, Jack Henahan
wrote: I'd like to put a small Yesod application on my university webspace, but they're on AIX 4.1, while I'm on OS X.6. Can I build for their architecture (it's gotta be PPC or i386, I think) from where I am, or am I going to need to look for some other way around the issue?
==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====
==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====

You can also get an instance from amazon for free for a year... after the year is up (assuming pricing hasnt changed) it'll be much cheaper to host via a VPS, but you can do that for probably 8$/month if you can build in a local VM (linking memory requirements are massive, so either you pay for a lot of memory that you only use when building, bring you server to a grinding halt as it hard swaps for 20 minutes, or build locally and deploy the binaries) On Jun 30, 2011, at 2:25 PM, Jack Henahan wrote:
Forgot to CC the list twice.
Begin forwarded message:
From: Jack Henahan
Date: June 30, 2011 2:16:26 PM EDT To: Michael Snoyman Subject: Re: [web-devel] [yesod][newbie] Yesod applications on foreign architectures Hmm. I think it might just be simpler to buy some cheap hosting and get my university to direct my suffix to that IP. :D I'll definitely keep poking around for options in the meantime. I was just looking for any input before I did anything crazy on their servers. Thanks for all the help, Michael. If I find anything earth-shattering, I'll be sure to post it to the list.
On Jun 30, 2011, at 2:12 PM, Michael Snoyman wrote:
Doh, I didn't pay close enough attention to the link I sent you. GHC 6.4 definitely will not support Yesod, you need at least 6.12. Here are two really bad options that come to mind:
* Compile on Windows, and run via wine. (Never tried.) * Install a Linux virtual machine on the AIX machine.
MIchael
On Thu, Jun 30, 2011 at 9:07 PM, Jack Henahan
wrote: Shall do. I thought a VM or local build might be the only way, and I hope not much has changes in AIX from 4.1 to 5.1. Dependency chasing is going to be the hardest part, really. I'm not sure how compatible Yesod and ghc-6.4 will be with one another. Perhaps I'll make a project of it. The environment has most of the necessary build tools, as far as I can see, so I can probably pull it off as long as I play nicely. There wouldn't happen to be a way to get a gcc config/makefile combo out of a Yesod project, would there? :D
On Jun 30, 2011, at 1:53 PM, Michael Snoyman wrote:
It appears that there is GHC for AIX[1]. I think your best bet is to set up a local system or virtual machine running AIX, build your executables there and then distribute to the server. Though I'm not sure how easy it is to get a virtual machine set up with AIX. I'd be interested to hear how this goes, please keep us posted.
Michael
[1] http://www.haskell.org/ghc/download_ghc_64#powerpcaix
On Thu, Jun 30, 2011 at 8:23 PM, Jack Henahan
wrote: I'd like to put a small Yesod application on my university webspace, but they're on AIX 4.1, while I'm on OS X.6. Can I build for their architecture (it's gotta be PPC or i386, I think) from where I am, or am I going to need to look for some other way around the issue?
==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====
==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====
<398E692F.asc>
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

That could work nicely, I think. A local VM is no problem as long as the host uses a _normal_ platform. When I ran uname and saw AIX, I nearly did a spit take. :D Hopefully someday soon we'll have something like Heroku, and all these issues will be mostly meaningless. Maybe we can convince Y Combinator to fund such a project. On Jun 30, 2011, at 2:29 PM, Daniel Patterson wrote:
You can also get an instance from amazon for free for a year... after the year is up (assuming pricing hasnt changed) it'll be much cheaper to host via a VPS, but you can do that for probably 8$/month if you can build in a local VM (linking memory requirements are massive, so either you pay for a lot of memory that you only use when building, bring you server to a grinding halt as it hard swaps for 20 minutes, or build locally and deploy the binaries)
On Jun 30, 2011, at 2:25 PM, Jack Henahan wrote:
Forgot to CC the list twice.
Begin forwarded message:
From: Jack Henahan
Date: June 30, 2011 2:16:26 PM EDT To: Michael Snoyman Subject: Re: [web-devel] [yesod][newbie] Yesod applications on foreign architectures Hmm. I think it might just be simpler to buy some cheap hosting and get my university to direct my suffix to that IP. :D I'll definitely keep poking around for options in the meantime. I was just looking for any input before I did anything crazy on their servers. Thanks for all the help, Michael. If I find anything earth-shattering, I'll be sure to post it to the list.
On Jun 30, 2011, at 2:12 PM, Michael Snoyman wrote:
Doh, I didn't pay close enough attention to the link I sent you. GHC 6.4 definitely will not support Yesod, you need at least 6.12. Here are two really bad options that come to mind:
* Compile on Windows, and run via wine. (Never tried.) * Install a Linux virtual machine on the AIX machine.
MIchael
On Thu, Jun 30, 2011 at 9:07 PM, Jack Henahan
wrote: Shall do. I thought a VM or local build might be the only way, and I hope not much has changes in AIX from 4.1 to 5.1. Dependency chasing is going to be the hardest part, really. I'm not sure how compatible Yesod and ghc-6.4 will be with one another. Perhaps I'll make a project of it. The environment has most of the necessary build tools, as far as I can see, so I can probably pull it off as long as I play nicely. There wouldn't happen to be a way to get a gcc config/makefile combo out of a Yesod project, would there? :D
On Jun 30, 2011, at 1:53 PM, Michael Snoyman wrote:
It appears that there is GHC for AIX[1]. I think your best bet is to set up a local system or virtual machine running AIX, build your executables there and then distribute to the server. Though I'm not sure how easy it is to get a virtual machine set up with AIX. I'd be interested to hear how this goes, please keep us posted.
Michael
[1] http://www.haskell.org/ghc/download_ghc_64#powerpcaix
On Thu, Jun 30, 2011 at 8:23 PM, Jack Henahan
wrote: > I'd like to put a small Yesod application on my university webspace, but they're on AIX 4.1, while I'm on OS X.6. Can I build for their architecture (it's gotta be PPC or i386, I think) from where I am, or am I going to need to look for some other way around the issue? > > > ==== > "Computer Science is no more about computers than astronomy is about telescopes." > -- Edsger Dijkstra > ==== > > > > > > _______________________________________________ > web-devel mailing list > web-devel@haskell.org > http://www.haskell.org/mailman/listinfo/web-devel > > ==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====
==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====
<398E692F.asc>
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====

Is this just about deploying for free? Amazon & Heroku both offer free deployment of a small instance. There is actually nothing stopping you from deploying haskell to Heroku now- just use their recently released Cedar stack. You will have to read a few docs, but should be much easier than deploying to AIX :) I would use Heroku now if I wasn't already on Amazon. Let us know if you go that route so we can document how to deploy there and make it easier. Greg Weber

Oh, no, it's not strictly about deploying for free, though free is always preferable, of course. I hadn't actually heard about the Cedar stack. Perhaps I'll dig into their docs and see what I can do. Thanks for the pointer. I'll put something together locally and then give that a shot, documenting my steps obsessively, if need be. :D On Jun 30, 2011, at 2:54 PM, Greg Weber wrote:
Is this just about deploying for free? Amazon & Heroku both offer free deployment of a small instance. There is actually nothing stopping you from deploying haskell to Heroku now- just use their recently released Cedar stack. You will have to read a few docs, but should be much easier than deploying to AIX :) I would use Heroku now if I wasn't already on Amazon. Let us know if you go that route so we can document how to deploy there and make it easier.
Greg Weber
==== "Computer Science is no more about computers than astronomy is about telescopes." -- Edsger Dijkstra ====

Does Heroku really support Haskell? My impression was that with Cedar they were opening the doors for more language / framework support (and examples of Clojure and Python apps have popped up), but it seemed like each one was detected as such by Heroku, which would mean they explicitly added support for it (even if it wasn't "officially" supported like rails and node.js). If so, that would be very exciting indeed... having a dead-simple way to deploy applications would both make my life easier and would make selling haskell web development to clients MUCH easier. On Jun 30, 2011, at 2:54 PM, Greg Weber wrote:
Is this just about deploying for free? Amazon & Heroku both offer free deployment of a small instance. There is actually nothing stopping you from deploying haskell to Heroku now- just use their recently released Cedar stack. You will have to read a few docs, but should be much easier than deploying to AIX :) I would use Heroku now if I wasn't already on Amazon. Let us know if you go that route so we can document how to deploy there and make it easier.
Greg Weber

I think Heroku has to officially support anything you need installed. So if
you can just deploy a binary you should be good. So restrictions are
probably compiling it on the same architecture elsewhere with static
linking.
On Thu, Jun 30, 2011 at 12:09 PM, Daniel Patterson
Does Heroku really support Haskell? My impression was that with Cedar they were opening the doors for more language / framework support (and examples of Clojure and Python apps have popped up), but it seemed like each one was detected as such by Heroku, which would mean they explicitly added support for it (even if it wasn't "officially" supported like rails and node.js).
If so, that would be very exciting indeed... having a dead-simple way to deploy applications would both make my life easier and would make selling haskell web development to clients MUCH easier.
On Jun 30, 2011, at 2:54 PM, Greg Weber wrote:
Is this just about deploying for free? Amazon & Heroku both offer free deployment of a small instance. There is actually nothing stopping you from deploying haskell to Heroku now- just use their recently released Cedar stack. You will have to read a few docs, but should be much easier than deploying to AIX :) I would use Heroku now if I wasn't already on Amazon. Let us know if you go that route so we can document how to deploy there and make it easier.
Greg Weber
participants (3)
-
Daniel Patterson
-
Greg Weber
-
Jack Henahan