Re: [racket] extract polygon information from an image is it silly thinking?

2010-10-11 Thread Stephen Bloch
On Oct 10, 2010, at 9:28 AM, 김태윤 wrote: extract polygon information from an image is it silly thinking? hello I was told that when it comes to compare with polygon and image rotating, polygon is much faster. and an obviously simple idea come across my mind. then why don't I change image into

Re: [racket] Can I get a jaymccarthy/gl-world's example?

2010-10-11 Thread Jay McCarthy
Here's the simplest example I have on hand: http://github.com/jeapostrophe/pyramidstack/blob/master/gl-pyramidstack.ss (It's a planet package too, pyramidstack) But it also uses the Chipmunk physics library, so it may not be very convenient to run Jay On Mon, Oct 11, 2010 at 7:21 PM, 장유현 wrot

Re: [racket] Freeing FFI resources

2010-10-11 Thread Eli Barzilay
20 minutes ago, Neil Toronto wrote: > Eli Barzilay wrote: > > 5 hours ago, Neil Toronto wrote: > >> I'd be wary of the bytes/free example: I'd free the bytes ASAP > >> instead of using a finalizer. > > > > That shouldn't be a problem. > > Not for correctness, no. How about for time or memory effi

Re: [racket] a little macro exercise

2010-10-11 Thread Jay McCarthy
Everett has written a lot of code in it. I've encouraged him to send a mail about his experience... hopefully he will soon ;) Jay On Mon, Oct 11, 2010 at 6:05 PM, Shriram Krishnamurthi wrote: > Good of you to dogfood.  I didn't really get turned on by alt-exp from > your previous post, but it's

Re: [racket] a little macro exercise

2010-10-11 Thread Shriram Krishnamurthi
Good of you to dogfood. I didn't really get turned on by alt-exp from your previous post, but it's cool that you can express this! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Freeing FFI resources

2010-10-11 Thread Neil Toronto
Eli Barzilay wrote: 5 hours ago, Neil Toronto wrote: I'd be wary of the bytes/free example: I'd free the bytes ASAP instead of using a finalizer. That shouldn't be a problem. Not for correctness, no. How about for time or memory efficiency? I confused the crap out of Racket's GC by keeping

[racket] a little macro exercise

2010-10-11 Thread Everett Morse
Here's mine, probably not a very good way to implement this, but it works and it uses the alt-exp syntax I've been playing with recently. #lang alt-exp #| Spec: define a case construct syntactically just like that of Racket. In terms of semantics: - each branch automatically falls through to

Re: [racket] Freeing FFI resources

2010-10-11 Thread Eli Barzilay
5 hours ago, Neil Toronto wrote: > > I'd be wary of the bytes/free example: I'd free the bytes ASAP instead > of using a finalizer. That shouldn't be a problem. > I confused the crap out of Racket's GC by keeping externally-managed > memory around that was pointed at by Racket-owned objects wi

Re: [racket] Servlets and forms

2010-10-11 Thread Markku Rontu
On Mon, Oct 11, 2010 at 9:59 PM, Jay McCarthy wrote: > I anticipate we'd want some wrapper around formlets that check if the > code passes some predicate and it would be nice to have a predicate > language that could be compiled to JS for client-side validation and > ui updating. > > Jay Indeed,

Re: [racket] Freeing FFI resources

2010-10-11 Thread Jon Zeppieri
On Mon, Oct 11, 2010 at 2:02 PM, Neil Toronto wrote: > Eric Dobson wrote: >> >> I am dealing with a foreign library that has functions that return >> error messages in a char** input argument. These need to be explicitly >> freed by calling another function. I figured out how to get them into >> r

Re: [racket] Servlets and forms

2010-10-11 Thread Jay McCarthy
I anticipate we'd want some wrapper around formlets that check if the code passes some predicate and it would be nice to have a predicate language that could be compiled to JS for client-side validation and ui updating. Jay On Mon, Oct 11, 2010 at 12:40 PM, Markku Rontu wrote: > Hey, > > On Sun,

Re: [racket] Racket web servlets, doctype and planet libraries

2010-10-11 Thread Markku Rontu
On Tue, Oct 5, 2010 at 12:59 AM, Jay McCarthy wrote: > On Sat, Oct 2, 2010 at 3:20 PM, Markku Rontu wrote: > > Hello everybody, > > > > I was trying to make some servlets recently and ran into two problems. > First > > it was not clear in the documentation how the doctype should be declared > for

Re: [racket] Servlets and forms

2010-10-11 Thread Markku Rontu
Hey, On Sun, Oct 10, 2010 at 1:12 AM, Jay McCarthy wrote: > On Sat, Oct 9, 2010 at 12:35 PM, Markku Rontu wrote: > > Hello, > > > > I've been experimenting with the web servlets lately and I'm not sure how > I > > should be handling forms. The documentation guides me to use formlets > > instead

Re: [racket] Freeing FFI resources

2010-10-11 Thread Neil Toronto
Eric Dobson wrote: I am dealing with a foreign library that has functions that return error messages in a char** input argument. These need to be explicitly freed by calling another function. I figured out how to get them into racket strings by using the _ptr and the _string ctype. But I didn't s

[racket] Seeking examples of Scribble "4.5 In-Source Documentation" for Racket (typed/racket ?) source files

2010-10-11 Thread Scott McLoughlin
I've read the docs a few times, but either I must have some odd "Scribble-blind-spot" or something, or this is much more involved than I imagine it really is. I'm hoping a few illustrative source examples would help get me started, and maybe a just a bare bones, simplified "how to" to get me goi