Re: [racket] reparent gui object

2011-01-21 Thread Matthew Flatt
I've added `reparent' as a method of `subwindow<%>'s. The original and new parents have to be in the same eventspace. My initial reaction to Jon's request was that it was too much trouble to add `reparent', but sometimes I underestimate how much easier things have become with the `racket/gui' rewr

[racket] First meaningful experiment.

2011-01-21 Thread Alexandre Moreira
Disclaimer: This is not a question per se. Mostly intended for those with free time who want to help one with the "The Path of Scheme" :) Hello, everyone. I've been studying scheme for some time now and I decided to start writing meaningful, simple, applications with racket to experiment and get s

Re: [racket] Autotest like tool help

2011-01-21 Thread Matthias Felleisen
Eduardo, I believe you want something like this, though you should probably ensure that the path to the module somehow includes test-dir (say via a regexp match or something like that): #lang racket ;; run as racket -t auto-test.rkt -m (provide start) ;; run all the tests on the system (

Re: [racket] reparent gui object

2011-01-21 Thread Jon Rafkind
Can you say more about the serialization required? I found that I could add a `deep-copy' method that to my gui objects that accepted the new parent so each object could instantiate itself as needed. Maybe all the gui objects in racket could implement some deep-copy<%> interface? On 01/21/2011 08

[racket] memory profiling?

2011-01-21 Thread Danny Yoo
Are there tools to do memory profiling in Racket? I have a program that's generating an enormous amount of garbage, but I don't quite know how to pinpoint it yet. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/user

Re: [racket] Planet down?

2011-01-21 Thread Robby Findler
Yes, our apologies. There are lots of problems with our web infrastructure at the moment. Please stay tuned. Robby On Fri, Jan 21, 2011 at 9:24 AM, Fred G. Martin wrote: > Hi all, can't connect to http://planet.racket-lang.org/ ... this is where > user libraries live right? > > Fred > >

[racket] Planet down?

2011-01-21 Thread Fred G. Martin
Hi all, can't connect to http://planet.racket-lang.org/ ... this is where user libraries live right? Fred _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] reparent gui object

2011-01-21 Thread Laurent
Unless it has changed, you have to recreate copies all children under the new parent, and remove the old ones. MrEd Designer uses that extensively, but this requires a kind of serialization of the gui objects. Laurent On Fri, Jan 21, 2011 at 13:09, Robby Findler wrote: > No, it isn't possible wi

Re: [racket] [racket-dev] server availability

2011-01-21 Thread Stefan Schmiedl
Racketeers, how much effort would it be to keep a rsync'ed copy of the files relevant for the end-user on another machine? Then you could make (require (planet...)) a bit smarter to check a list of server (mirrors) for the packages and the impact on racket users would be minimized. s. ___

Re: [racket] [racket-dev] server availability

2011-01-21 Thread Matthias Felleisen
Apologies. For whatever reason, Eli didn't inform us until a while into the disaster and when he did tell me, he may have assumed I'd inform people and I definitely assumed he'd inform people. He implied that we'd be up this morning or even last night (US ET). I have no clue what happened but w

Re: [racket] This is not a solution! Re: A puzzle

2011-01-21 Thread Mark Engelberg
On Wed, Jan 19, 2011 at 5:29 PM, Hendrik Boom wrote: > I see a lot of code, but what's the puzzle.  Presumably there's some > kind of question that has to be answered about it? > > -- hendrik The program is a multithreaded program that crashes unless the executions of the threads are interleaved

Re: [racket] reparent gui object

2011-01-21 Thread Robby Findler
No, it isn't possible with the current GUI toolkit to do that. Robby On Thu, Jan 20, 2011 at 12:34 PM, Jon Rafkind wrote: > Is there a way to change the parent of a gui object? (anything from the > framework collection) > _ >  For list-related admi

[racket] Autotest like tool help

2011-01-21 Thread Eduardo Bellani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello list. I am trying to build something like autotest[1] for a racket project I am working on. It is a tool that I like very much on my rails development and I am trying to patch together one for racket. I did manage to get one working, but on my o

[racket] is racket-lang still down?

2011-01-21 Thread Danny Yoo
I'm still having trouble connecting to the racket-lang web site. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

[racket] reparent gui object

2011-01-21 Thread Jon Rafkind
Is there a way to change the parent of a gui object? (anything from the framework collection) _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] cp-write: error writing (Socket is not connected; errno=57)

2011-01-21 Thread Niitsuma Hirotaka
>Try adding a delay to the loop. I added (sleep 5) after http-get But same err was caused - #lang racket (require net/url) (define (http-get url-as-string) (let* ([out (open-output-string)] [in (get-pure-port (string->url url-as-string))]) (copy-port in out) (close-in

[racket] unsafe/ops, fixnum and future: great

2011-01-21 Thread Jos Koot
It was great fun to play with: (require racket/unsafe/ops) (require racket/fixnum) (require racket/future) I wondered whether or not two processes can parallelly unsafe-fxvector-set! to the same fxvector. I tried and it works. Great! Of course I made sure that the two processes do not unsafe-fx