[racket] ranking items by their appearance in sets

2014-09-23 Thread David T. Pierson
Hi all, Given a list of sets of symbols, I want to rank the symbols based on how many sets they appear in. I prefer to be completely functional. Below are 2 different implementations I came up with, with tests. I'm looking for criticism in any aspect, but most importantly I'm wondering whether

Re: [racket] Exception decorator. is it possible?

2014-09-23 Thread Gustavo Massaccesi
This code works, but it needs a lot more of error checking. It uses that all the built-in exceptions are transparent and that all of them inherit from exn, so the first field is the message. ;--- #lang racket (define (copy-struct/new-first str first) (define-values (str-struct-info _) (struct-

Re: [racket] web server: module servlets

2014-09-23 Thread Jay McCarthy
On Tue, Sep 23, 2014 at 9:19 PM, George Neuner wrote: > Hi Jay, > > On 9/23/2014 6:04 PM, Jay McCarthy wrote: > > On Tue, Sep 23, 2014 at 4:42 PM, George Neuner wrote: >> >> 1) Is there any way to speed up initial [module] servlet loading? > > This is why I recommend that new users use serve/serv

Re: [racket] web server: module servlets

2014-09-23 Thread George Neuner
Hi Jay, On 9/23/2014 6:04 PM, Jay McCarthy wrote: On Tue, Sep 23, 2014 at 4:42 PM, George Neuner wrote: > > 1) Is there any way to speed up initial [module] servlet loading? This is why I recommend that new users use serve/servlet, which is much faster because it does not use namespaces or liv

Re: [racket] Hosting the try-racket REPL.

2014-09-23 Thread Steve Graham
Thanks. From: J Arcane To: Steve Graham Cc: Racket Users Sent: Monday, September 22, 2014 9:35 PM Subject: Re: [racket] Hosting the try-racket REPL. It's a known issue. Alex Knauth has submitted a rough solution to my fork of it; I'll get it merged and

Re: [racket] web server: module servlets

2014-09-23 Thread Jay McCarthy
On Tue, Sep 23, 2014 at 4:42 PM, George Neuner wrote: > Hi, > > I'm using 6.0.1 and I have a couple of questions regarding module > servlets. I'm new to the server side of Racket so please be gentle. > > > 1) Is there any way to speed up initial servlet loading? Even for a > very simple servlet

[racket] web server: module servlets

2014-09-23 Thread George Neuner
Hi, I'm using 6.0.1 and I have a couple of questions regarding module servlets. I'm new to the server side of Racket so please be gentle. 1) Is there any way to speed up initial servlet loading? Even for a very simple servlet (does nothing, canned response for testing) several seconds elapse