Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Continuation-based programming on top of Happstack
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Eidhof  
View profile  
 More options Dec 19 2009, 10:47 am
From: Chris Eidhof <ch...@eidhof.nl>
Date: Sat, 19 Dec 2009 16:47:33 +0100
Local: Sat, Dec 19 2009 10:47 am
Subject: Continuation-based programming on top of Happstack
Hey Happstackers,

I've written a little sample program that shows how you can do  
continuation-based web programming in Haskell. It currently runs on  
top of Happstack (it could easily be adapted to other platforms). I am  
quite interested in your thoughts on this. I've put a self-contained  
example online at http://gist.github.com/260052

Although there are some limitations to this approach, this is how I  
would like to write my websites in Haskell. I'm currently  
investigating other approaches as well (e.g. an arrow-based approach),  
but just I thought I'd share it.

-chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colin Adams  
View profile   Translate to Translated (View Original)
 More options Dec 20 2009, 12:02 pm
From: Colin Adams <colinpaulad...@googlemail.com>
Date: Sun, 20 Dec 2009 17:02:48 +0000
Local: Sun, Dec 20 2009 12:02 pm
Subject: Re: Continuation-based programming on top of Happstack
2009/12/19 Chris Eidhof <ch...@eidhof.nl>:

> Hey Happstackers,

> I've written a little sample program that shows how you can do
> continuation-based web programming in Haskell. It currently runs on
> top of Happstack (it could easily be adapted to other platforms). I am
> quite interested in your thoughts on this.

I find it not easy to read because of the choice of names.
E.g. You call a web continuation a Web. Why not Continuation or
WebContinuation? Similarly runWeb. Does this mean runWebContinuation?
And runPage for a function that ignores the request. No doubt there's
logic in that, but if it were called ignoreRequest, I might find it
easier to read the example.

Anyway, it looks very interesting. I might try converting my current
effort for an image gallery to that style, and see if it reads easier.
--
Colin Adams
Preston,
Lancashire,
ENGLAND


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John MacFarlane  
View profile  
 More options Dec 20 2009, 12:56 pm
From: John MacFarlane <fiddlosop...@gmail.com>
Date: Sun, 20 Dec 2009 09:56:17 -0800
Local: Sun, Dec 20 2009 12:56 pm
Subject: Re: Continuation-based programming on top of Happstack
+++ Chris Eidhof [Dec 19 09 16:47 ]:

> Hey Happstackers,

> I've written a little sample program that shows how you can do  
> continuation-based web programming in Haskell. It currently runs on  
> top of Happstack (it could easily be adapted to other platforms). I am  
> quite interested in your thoughts on this. I've put a self-contained  
> example online at http://gist.github.com/260052

That's really neat.  How about a link to this on the happstack.com
tutorials page?

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Shaw  
View profile  
 More options Dec 20 2009, 2:34 pm
From: Jeremy Shaw <jer...@n-heptane.com>
Date: Sun, 20 Dec 2009 13:34:26 -0600
Local: Sun, Dec 20 2009 2:34 pm
Subject: Re: Continuation-based programming on top of Happstack
I have not had time to understand how this works yet. But now that 0.4  
is out, I hopefully can!

How is it similar to or different from WASH/CGI ?

- jeremy

On Dec 19, 2009, at 9:47 AM, Chris Eidhof wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Eidhof  
View profile  
 More options Dec 21 2009, 4:09 am
From: Chris Eidhof <ch...@eidhof.nl>
Date: Mon, 21 Dec 2009 10:09:46 +0100
Local: Mon, Dec 21 2009 4:09 am
Subject: Re: Continuation-based programming on top of Happstack
Well, this is different in a couple of ways. First of all, it is  
unfinished. The basic idea works, but it's impossible to serialize  
continuations, which is a serious problem, as I'm pretty sure it can't  
be fixed. So this doesn't scale to multiple servers or run on CGI.  
Wash works by reconstructing a log for the state, whereas this  
approach keeps the continuation in an MVar (one per application, which  
should be one per session).

I think it could be altered and extended to be serializable and work  
for multiple users. I have some ideas for that which I'll be testing  
(hopefully somewhere in the next couple of weeks).

I just wanted to share this as inspiration, you should definitely not  
yet use this for real-world things...

-chris

On 20 dec 2009, at 20:34, Jeremy Shaw wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Michael  
View profile  
 More options Dec 25 2009, 3:17 pm
From: Simon Michael <si...@joyful.com>
Date: Fri, 25 Dec 2009 20:17:10 +0000
Local: Fri, Dec 25 2009 3:17 pm
Subject: Re: Continuation-based programming on top of Happstack
That was a pretty cool paste. PLT Scheme's webserver has some kind of serializable continuations, might be a source of
ideas.

http://docs.plt-scheme.org/web-server/stateless.html#(part._.Serializ...)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »