Re: [racket] Challenge: in 140 chars or less

2012-02-24 Thread Robby Findler
This is pretty boring too. :) > "" "" On Fri, Feb 24, 2012 at 7:30 PM, Neil Toronto wrote: > I dunno. It might work better if we require quines to produce themselves in > quoted form. Then the empty program isn't one. > > Neil > > > On 02/24/2012 06:28 PM, Robby Findler wrote: >> >> Doesn't wor

Re: [racket] Challenge: in 140 chars or less

2012-02-24 Thread Neil Toronto
I dunno. It might work better if we require quines to produce themselves in quoted form. Then the empty program isn't one. Neil On 02/24/2012 06:28 PM, Robby Findler wrote: Doesn't work as well in Racket as in Scheme, that one! Robby On Fri, Feb 24, 2012 at 7:09 PM, Eduardo Bellani wrote:

Re: [racket] Challenge: in 140 chars or less

2012-02-24 Thread Robby Findler
Doesn't work as well in Racket as in Scheme, that one! Robby On Fri, Feb 24, 2012 at 7:09 PM, Eduardo Bellani wrote: > Does this count? > > ((λ (x) (list x (list 'quote x))) '(λ (x) (list x (list 'quote x > > On 02/23/2012 04:52 PM, Gary Baumgartner wrote: >> On Thu, Feb 23, 2012 at 12:04:50

Re: [racket] Challenge: in 140 chars or less

2012-02-24 Thread Eduardo Bellani
Does this count? ((λ (x) (list x (list 'quote x))) '(λ (x) (list x (list 'quote x On 02/23/2012 04:52 PM, Gary Baumgartner wrote: > On Thu, Feb 23, 2012 at 12:04:50PM -0600, Robby Findler wrote: > [...] >> What is this thing? It seems coolly symmetric in this view: > [...] > http://en.wikiped

Re: [racket] About DB and events

2012-02-24 Thread Ryan Culpepper
I don't think it's possible to do this strictly on the Racket side. Your best bet is to see if you can write a PostgreSQL procedure that blocks/sleeps until rows are available (or until it hits some timeout) and then returns them. PostgreSQL has pg_sleep, LISTEN, NOTIFY, and LOCK---some combina

Re: [racket] TR: Making recursive types as subtypes of non-recursive types

2012-02-24 Thread Neil Toronto
On 02/23/2012 03:16 PM, Sam Tobin-Hochstadt wrote: On Thu, Feb 23, 2012 at 1:30 PM, Neil Toronto wrote: (: set-id (All (a) ((Set a) -> (Set a (define (set-id A) A) (: set-id* (All (a) ((Set* a) -> (Set* a (define (set-id* A) ((inst set-id (U a (Set* a))) A)) Using `inst' makes th

Re: [racket] comparing structure types through contracts

2012-02-24 Thread Robby Findler
This is fixed now. Thanks, Robby On Tue, Feb 7, 2012 at 1:19 AM, John Clements wrote: > I'm working with Dave Herman's JavaScript package. I've found a problem and a > workaround, but I want to make sure there's not an easier workaround before I > convert a bunch of code.  The following progra

Re: [racket] Problem with default-indices files in Web-Server

2012-02-24 Thread Jay McCarthy
On Thu, Feb 23, 2012 at 3:24 PM, Gustavo Massaccesi wrote: > Thanks for the answer. I prefer to use the standard plt-web-server > executable, because I'm working in a small internal project for a few > hundreds users. I solved my problem using a refresh in the index.html > file to redirect the use

[racket] About DB and events

2012-02-24 Thread Eduardo Bellani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello list. I am building a deamon here that pings a postgres database to send some messages. A bit like the following code: (let check-loop ([unsent-messages (get-unsent-messages)]) ;; get messages from DB (for-each (? (message) (do-it! messag