Re: hws-wp and ghc-6.0.1

2003-11-04 Thread Jens Petersen
> "TLB" == Thomas L Bevan <[EMAIL PROTECTED]> writes: TLB> If anyone ports this to work with GHC6.0 please let TLB> us know. Tom The patch below allows me to build hws with ghc-6.0.1 and run it without plugins. However when trying to run it with loading modules I see: hws-wp% sudo

Re: Data types basics

2003-11-04 Thread Thomas L. Bevan
In Haskell, data types and contructors must be designated by names whose first letter is capitalised. So, > data currency = ... is illegal. Instead use, > data Currency = Dollar Double | Pound Double | Zloty Double | Euro Double Above are four data constructors and they can be used to contruct

Re: Expiring cached data?

2003-11-04 Thread Artie Gold
[EMAIL PROTECTED] wrote: G'day all. Tom Pledger wrote: How about adapting splay trees so that their pointers become weak after a certain depth? The advantage for caching is that the more frequently used elements move closer to the root, so you wouldn't have to add much code for tracking recent

Re: haskell httpd

2003-11-04 Thread Paul Graunke
Brian Demsky's master's thesis compares servers written in direct style (using a thread per connection) to event driven servers (which are supposedly oh so much faster.) He shows how you can CPS the thread per connection server and end up with the event driven server. That way you don't need to m

RE: Expiring cached data?

2003-11-04 Thread ajb
G'day all. Quoting Tom Pledger <[EMAIL PROTECTED]>: > It sounds like the term "splay tree" means different things to > different people. I was thinking in particular of one which, whenever > it finds a key it was looking for, does some rotation so that the > key's node's depth is reduced. The o

RE: Expiring cached data?

2003-11-04 Thread Tom Pledger
[EMAIL PROTECTED] writes: | G'day all. | | Tom Pledger wrote: | | > How about adapting splay trees so that their pointers become weak | > after a certain depth? The advantage for caching is that the more | > frequently used elements move closer to the root, so you wouldn't have | > to ad

RE: Expiring cached data?

2003-11-04 Thread ajb
G'day all. Tom Pledger wrote: > How about adapting splay trees so that their pointers become weak > after a certain depth? The advantage for caching is that the more > frequently used elements move closer to the root, so you wouldn't have > to add much code for tracking recent use, just a depth

Re: Expiring cached data?

2003-11-04 Thread ajb
G'day all. On Sun, 2 Nov 2003 22:58:41 -0300 (CLST) "andrew cooke" <[EMAIL PROTECTED]> wrote: > > What options do I have in Haskell? I'm interested both in general > > solutions (maybe some compilers do this anyway?) and in approaches > > to structuring the program so that I can control caching

ANN: Haskell tools from the Programatica project

2003-11-04 Thread Thomas Hallgren
Hi, For those who are curious about what we have been up to in the Programatica project (perhaps because you who saw the demo at the Haskell Workshop this year, or read the demo abstract), we now have a web page where you can * find out more about what the tools can be used for, * downlo

Re: haskell httpd

2003-11-04 Thread Thomas L. Bevan
If anyone ports this to work with GHC6.0 please let us know. Tom On Wed, 5 Nov 2003 09:58 am, Peter Simons wrote: > S Alexander Jacobson writes: > > Is there a reasonably efficient Haskell httpd > > implementation around that uses poll/select? > > There is a web server written in Haskell: HWS-W

Re: haskell httpd

2003-11-04 Thread Peter Simons
S Alexander Jacobson writes: > Is there a reasonably efficient Haskell httpd > implementation around that uses poll/select? There is a web server written in Haskell: HWS-WP -- or "Haskell Web Server with Plug-ins". You'll find it at: http://sourceforge.net/forum/forum.php?forum_id=253134

Re: Boilerplate revisited

2003-11-04 Thread Hal Daume III
Without looking too much at your code, my immediate guess is that you should use one of the boilerplate functions that can stop at a certain depth. One pitfall pointed out in the original boilerplate paper is that if you have some data type like: > data Foo = Foo Int String and you're looking

Boilerplate revisited

2003-11-04 Thread Markus . Schnell
Perhaps some remember the question I posted about avoiding boilerplate some time ago: (http://haskell.org/pipermail/haskell/2003-August/012479.html) After some experimentation I employed Hal's DynamicMap as well as the Generics library. This worked fine for a while, but after I started using my

haskell httpd

2003-11-04 Thread S. Alexander Jacobson
I've been working on a new project and evaluating the Twisted python framework which relies on asynchIO rather than threading to achieve speed. The resulting idioms feel like they would be much more elegant in Haskell. So my question at this point is: Is there a reasonably efficient Haskell http

WRLA 2004 - Second call for papers

2003-11-04 Thread alberto
[[ -- Apologies for multiple copies of this message -- ]] + + + + + WRLA'04 + + + + + SECOND CALL FOR PAPERS + + + + + WRLA'04 + + + + + +--+ | | | 5th