|Common Lisp in the Cloud||Mike Travers||3/8/12 12:01 AM|
Deploying Lisp-based web applications has always been a bit of a pain. Well, it just got considerably easier -- I've put together a Heroku buildpack for Common Lisp. Thanks to Heroku, and QuickLisp, and a few of the other great tools out there, you can have a Lisp web server up and running in about five minutes.
Get started here:
Feedback welcome, by email or in the Github issue tracker.
mt (at) hyperphor.com
|Re: Common Lisp in the Cloud||fortunatus||3/8/12 6:33 AM|
Looks super cool!
It's not clear to me what CL environment is receiving the code on
Heroku - I didn't see in the GIT files anything that actually started
up the CL environment. Therefore I assume the Heroku "Cedar" is
recognizing the application as a CL load, and starts some CL
environment, which is then fed the files.
On the other hand Heroku's web site does not mention Common Lisp
support... it does mentions Clojure, Python, etc.
Can you give some details - what CL is Heroku kicking up, for instance?
|Re: Common Lisp in the Cloud||Mike Travers||3/8/12 8:18 AM|
It's using OpenMCL (Clozure) and Portable AllegorServe. Substituting different Lisps or web servers shouldn't be that hard.
The machinery and some documentation is in the buildpack itself:
Heroku supports a few languages that you mention, but it also provides this buildpack mechanism where others can add support for any language.
|Re: Common Lisp in the Cloud||daniel....@excite.com||3/8/12 8:45 AM|
Ah - now I see the stuff - so there are two GIT items: buildpack, and then example application... I see a bunch of stuff in the build pack 'bin' directory that is answering may questions...
|Re: Common Lisp in the Cloud||RG||3/9/12 1:21 PM|
Can you give a quick overview about how this works? According to the
Heroku web site, it is limited to Ruby, Node.js, Clojure, Java, Python,
and Scala. How do you add to that list? Is it possible to run (say) C
code on Heroku?
|Re: Common Lisp in the Cloud||Mike Travers||3/9/12 2:18 PM|
On Friday, March 9, 2012 1:21:13 PM UTC-8, RG wrote:Heroku's Cedar stack allows you to run arbitrary programs. This is done via a "buildpack", which is a language specific layer of glue that is responsible for assembling an application in a particular language (app, libraries, program interpreter, etc).
The buildpack itself is here: https://github.com/mtravers/heroku-buildpack-cl
I believe I saw a buildpack for C floating around on github.
|Re: Common Lisp in the Cloud||RG||3/9/12 2:54 PM|
|Re: Common Lisp in the Cloud||mck-||3/12/12 8:06 AM|
Do you mean that it is already supporting Hunchentoot? Or would it not be hard to add that support?
|Re: Common Lisp in the Cloud||Mike Travers||3/12/12 11:38 AM|
On Monday, March 12, 2012 8:06:24 AM UTC-7, mck- wrote:No, it's not currently supporting Hunchentoot, but it wouldn't be hard to add that.
|Re: Common Lisp in the Cloud||RG||3/12/12 6:31 PM|
I've run Hunchentoot on AWS. It's completely straightforward.
|Re: Common Lisp in the Cloud||José Santos||3/13/12 6:16 PM|
This is awsome. Thank you Mike :)
I've been playing around with this and added support for SBCL and Hunchentoot.
A bit rough around the edges but https://github.com/jsmpereira/heroku-buildpack-cl .
I'm also playing around with implementation and web server choice.
|Re: Common Lisp in the Cloud||Mike Travers||3/14/12 11:01 AM|
Cool! I was hoping someone would take that on.
|Re: Common Lisp in the Cloud||sfse...@gmail.com||4/1/12 6:05 PM|
Very exciting! I'm going to rewrite one of my for-fun projects using sbcl+hunchentoot+heroku :D
|Re: Common Lisp in the Cloud||mck-||5/15/12 11:08 PM|
I played around and wrote a little blog on the steps I took to build a db web-app, using sbcl, hunchentoot, postmodern and heroku.
It was a fun exercise, pretty basic for most of you, but perhaps it may be useful for some of you..
Thanks Mike and Jose for making this possible,
|Re: Common Lisp in the Cloud||mck-||5/15/12 11:02 PM|
I played around with it and wrote a blog on the 12 steps I took to
build and deploy a db web-app using sbcl, hunchentoot, heroku and
It was a fun exercise for me, it's pretty basic for most of you
probably, but hopefully some of you may find some stuff helpful..
|Re: Common Lisp in the Cloud||Simon Leinen||5/16/12 1:11 AM|
>> Very exciting! I'm going to rewrite one of my for-fun projects using sbcl+hunchentoot+heroku :DI somehow saw your blog entry before your USENET News message. It was
through the "Common Lisp" group in LinkedIn (of all places) that I had
found that page. (As a die-hard News user, I find this a little sad :-)
Sure, thanks for taking the time to write this up!
<aol>From me too,</aol> or as the kids now say <goog>+1</goog>
|Re: Common Lisp in the Cloud||avodo...@gmail.com||2/4/13 8:23 PM|
After studying Mike's example and Heroku I've realized it's easy to run any CL web application on any CL implementation at Heroku.
Heroku essentially gives you access to Unix environment. If you can run application on your local machine you can run it at Heroku too.
I did some refinements of the Mike's buildpack, to make it independent of particular web server. The changes are described at README here: https://github.com/avodonosov/heroku-buildpack-cl2
Hhere is a hunchentoot running on SBCL: http://rocky-island-7243.herokuapp.com/