[racket-dev] match for polymorphic types in typed racket

2010-11-23 Thread David Darais
I'm trying to use polymorphic types in a match pattern and cannot get certain type constructions to work. Here are examples. match will work for the polymorphic type (Some a) (from the typed racket guide): (struct: None ()) (struct: (a) Some ([v : a])) (define-type (Opt a) (U None (Some a)))

Re: [racket-dev] ffi crash on callback during GC

2010-11-23 Thread John Clements
On Nov 22, 2010, at 3:12 PM, Matthew Flatt wrote: > At Mon, 22 Nov 2010 15:00:01 -0800, John Clements wrote: >> Taking a look at the crash report, I see that the crash appears to >> happen when the callback is called by a C thread while Racket is >> collecting garbage, [...] >> >> So: is racket

Re: [racket-dev] TR -> no source locations?

2010-11-23 Thread Robby Findler
I've pushed a fix for the example below, at least. Robby On Tue, Nov 23, 2010 at 12:18 PM, Sam Tobin-Hochstadt wrote: > On Tue, Nov 23, 2010 at 1:04 PM, John Clements > wrote: >> >> On Nov 20, 2010, at 8:19 PM, Sam Tobin-Hochstadt wrote: >> >>> There are a lot of things you could mean by "Typed

Re: [racket-dev] Racking your brain

2010-11-23 Thread Shriram Krishnamurthi
Along the lines of useless email with silly content, I should give props to Dave Herman, who took one look at P4P and asked why I didn't instead call it "Bracket". _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] TR -> no source locations?

2010-11-23 Thread Sam Tobin-Hochstadt
On Tue, Nov 23, 2010 at 1:04 PM, John Clements wrote: > > On Nov 20, 2010, at 8:19 PM, Sam Tobin-Hochstadt wrote: > >> There are a lot of things you could mean by "Typed Racket doesn't >> preserve source locations".  Some of them TR definitely preserves >> source locations, and some are hard cases

[racket-dev] Racking your brain

2010-11-23 Thread John Clements
... p.s.: anyone who uses the terrible pun "Racking Your Brain" in a paper title must now treat me to a "rack" of lamb. Unless that paper's already written. John smime.p7s Description: S/MIME cryptographic signature _ For list-related adminis

Re: [racket-dev] TR -> no source locations?

2010-11-23 Thread John Clements
On Nov 20, 2010, at 8:19 PM, Sam Tobin-Hochstadt wrote: > There are a lot of things you could mean by "Typed Racket doesn't > preserve source locations". Some of them TR definitely preserves > source locations, and some are hard cases where TR tries but doesn't > always succeed. So I am also in