Re: [racket] Customize world window

2011-10-29 Thread Robby Findler
On Sat, Oct 29, 2011 at 4:24 PM, Matthias Felleisen wrote: > > It would have to be superclass that implements frame at least but yes, that's > doable. Why do you need to extend the frame class? > The question is how to provide access. Initially this thing was for > middle/high school > student

Re: [racket] Ryanc db.plt, Postgres and bytea []

2011-10-29 Thread Curtis Dutton
That was my mistake. I was using a bytea[] on my column definition and I only need to use was bytea. Thanks for the info and setting right. On Fri, Oct 28, 2011 at 2:18 PM, Ryan Culpepper wrote: > On 10/28/2011 06:21 AM, Curtis Dutton wrote: > >> I've been using db.plt package and it has been

Re: [racket] Customize world window

2011-10-29 Thread Matthias Felleisen
It would have to be superclass that implements frame at least but yes, that's doable. The question is how to provide access. Initially this thing was for middle/high school students and college freshman courses. But I can see the benefit -- Matthias On Oct 29, 2011, at 4:37 PM, Robby Fin

Re: [racket] Customize world window

2011-10-29 Thread Robby Findler
One possibility is to have big-bang accept an argument that is a frame (or a panel generally) and then people could fit them into their own frames and I guess that you could support this without too much work. I'd be happy to suggest how to do that with a diff if that would be useful. Robby On Sa

Re: [racket] arity of + versus <=

2011-10-29 Thread Neil Toronto
On 10/28/2011 12:39 PM, Eli Barzilay wrote: 40 minutes ago, Jay McCarthy wrote: I would expect (not (and (apply< x) (apply> x))) to be true for all x This, and many other points, were all part of a pretty big thread on the R6RS list a while ago. http://lists.r6rs.org/pipermail/r6rs-dis

Re: [racket] Customize world window

2011-10-29 Thread Matthias Felleisen
On Oct 28, 2011, at 4:22 AM, jvjul...@free.fr wrote: > Hello, > > Is it possibile to customize world window (2htdp/universe) ? > > For example, is it possible to change title window and add GUI controls > (sliders, text edit...) ? The title is determined by the name clause in big-bang, e.g.,

Re: [racket] Detecting 32/64-bit racket

2011-10-29 Thread Norman Gray
Matthew, hello. On 2011 Oct 29, at 17:43, Matthew Flatt wrote: > At Sat, 29 Oct 2011 16:19:53 +0200, Niklas Larsson wrote: >> 2011/10/29 Thomas Chust : >>> 2011/10/29 Norman Gray : [...] Is there a recommended way to detect whether racket is a 32- or 64-bit executable? [...]

Re: [racket] arity of + versus <=

2011-10-29 Thread Neil Toronto
On 10/28/2011 12:00 PM, Stephen Bloch wrote: On Oct 28, 2011, at 1:57 PM, Jay McCarthy wrote: I would expect (not (and (apply< x) (apply> x))) to be true for all x That's not at all obvious to me. That's like saying you expect (not (and (all-even? x) (all-odd? x))) to be true fo

Re: [racket] Memory and delimited continuations

2011-10-29 Thread nicolas.o...@gmail.com
The new master version got rid of my memory leak. Thank you so much for the quick patch. Best, Nicolas. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Detecting 32/64-bit racket

2011-10-29 Thread Robby Findler
On Sat, Oct 29, 2011 at 11:43 AM, Matthew Flatt wrote: > At Sat, 29 Oct 2011 16:19:53 +0200, Niklas Larsson wrote: >> 2011/10/29 Thomas Chust : >> > 2011/10/29 Norman Gray : >> >> [...] >> >> Is there a recommended way to detect whether racket is a 32- or >> >> 64-bit executable? >> >> [...] >> >

Re: [racket] Detecting 32/64-bit racket

2011-10-29 Thread Matthew Flatt
At Sat, 29 Oct 2011 16:19:53 +0200, Niklas Larsson wrote: > 2011/10/29 Thomas Chust : > > 2011/10/29 Norman Gray : > >> [...] > >> Is there a recommended way to detect whether racket is a 32- or > >> 64-bit executable? > >> [...] > > > > Hello Norman, > > > > while I don't know whether this strateg

Re: [racket] Memory and delimited continuations

2011-10-29 Thread Matthew Flatt
I've pushed a repair. Your earlier suspicion of a space-safety problem was correct, but the needlessly retained reference was in the core implementation of applying a composable continuation. (Perhaps ironically, the incorrectly held reference was to a meta-continuation as part of the code that im

Re: [racket] Detecting 32/64-bit racket

2011-10-29 Thread Norman Gray
Thomas and all, hello. On 2011 Oct 29, at 15:11, Thomas Chust wrote: > 2011/10/29 Norman Gray : >> I'm writing a racket extension to wrap a C library >> , and in the configure.ac, I >> want to be able to detect whether racket is a 32- or 64-bit >> executab

Re: [racket] Detecting 32/64-bit racket

2011-10-29 Thread Robby Findler
(oh, this might fail if we were to get a 128bit world, I suppose :) On Sat, Oct 29, 2011 at 9:31 AM, Robby Findler wrote: > Another not so great way, in Racket, to tell if the current racket is > built as a 64 bit or 32 bit executable (is that what you're wanting?) > >  ;; 64bit? : -> boolean >  

Re: [racket] Detecting 32/64-bit racket

2011-10-29 Thread Robby Findler
Another not so great way, in Racket, to tell if the current racket is built as a 64 bit or 32 bit executable (is that what you're wanting?) ;; 64bit? : -> boolean (define (64bit?) (eq? (expt 2 61) (expt 2 61))) I don't know if this is promised to always work going forwards, but it is hard for

Re: [racket] Detecting 32/64-bit racket

2011-10-29 Thread Niklas Larsson
2011/10/29 Thomas Chust : > 2011/10/29 Norman Gray : >> [...] >> Is there a recommended way to detect whether racket is a 32- or >> 64-bit executable? >> [...] > > Hello Norman, > > while I don't know whether this strategy is particularly > recommendable, I would suggest to use utilities from the F

Re: [racket] Memory and delimited continuations

2011-10-29 Thread nicolas.o...@gmail.com
Thank you very much. If I can help in any way, please ask. Best regards, Nicolas. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] Detecting 32/64-bit racket

2011-10-29 Thread Thomas Chust
2011/10/29 Norman Gray : > [...] > Is there a recommended way to detect whether racket is a 32- or > 64-bit executable? > [...] Hello Norman, while I don't know whether this strategy is particularly recommendable, I would suggest to use utilities from the FFI module: (require (only-in ffi/unsa

Re: [racket] Memory and delimited continuations

2011-10-29 Thread Matthew Flatt
Thanks for the example! I agree that there's a bug here, and I'm still investigating. At Thu, 27 Oct 2011 19:57:57 +0100, "nicolas.o...@gmail.com" wrote: > Dear all, > > Following on my memory leak problem, I managed to minimise my program. > And I still don't understand why it leaks. > > Here i

[racket] Detecting 32/64-bit racket

2011-10-29 Thread Norman Gray
Greetings. Is there a recommended way to detect whether racket is a 32- or 64-bit executable? I'm writing a racket extension to wrap a C library , and in the configure.ac, I want to be able to detect whether racket is a 32- or 64-bit executable, so I kn

Re: [racket] Just how to get and print a web page

2011-10-29 Thread Neil Van Dyke
Sam Tobin-Hochstadt wrote at 10/29/2011 07:15 AM: #lang racket (require net/url) (define (get url) (get-impure-port (string->url url))) (port->lines (get "http://www.google.com";)) Also, if you want to process the HTML of that page, you might wish to get the HTML into an SXML/xexp format li

Re: [racket] Just how to get and print a web page

2011-10-29 Thread Sam Tobin-Hochstadt
On Sat, Oct 29, 2011 at 4:27 AM, MingQian Zhang wrote: > Hi all: > I am a rookie to racket who used to write some ruby scripts. > Now I meet some problem about how to download a URL and print it or deal the > result as a String. > I write like this: > #lang racket > (require net/url) > (define (ge

[racket] Just how to get and print a web page

2011-10-29 Thread MingQian Zhang
Hi all: I am a rookie to racket who used to write some ruby scripts. Now I meet some problem about how to download a URL and print it or deal the result as a String. I write like this: #lang racket (require net/url) (define (get url) (get-impure-port (string->url url))) Then run: > (read (g