[racket] focus-follows-mouse in DrRacket

2012-12-16 Thread Mag. Dr. Nikolaus Klepp
Hi! Is there a way to make DrRacket use the "focus-follows-mouse" model? i.e. I do not want to click the mouse button when I change from REPL to editor and vice versa, I just want to move the mouse over. Nik -- Mag. Dr. Nikolaus Klepp Einnehmerstraße 14 A-4810 Gmunden Tel.: +43 650 82 11 724

Re: [racket] distributed places - throwing dcgm-type contract violation on *channel-get

2012-12-16 Thread Matthew Eric Bassett
Kevin, Thanks again for your time looking into this - hope the dissertation edits are going well. :) Some clarification after I tried it this morning: Invoking racket (with "-W debug", thanks for the tip!) on your hello-world-place.rkt hangs at the following: SPAWNED-PROCESS:2865 (/usr/bi

Re: [racket] SIGCHLD handler called in stderr

2012-12-16 Thread Matthew Flatt
At Fri, 14 Dec 2012 22:09:11 +0400, Sergey Khorev wrote: > > I think this isn't exactly the problem you're looking for. You get > > > > "waitpid: No child pocesses" because Racket (with places enabled) > > creates its own thread to reap child processes. > > > > Is it possible to make Racket not to

Re: [racket] Registry renaming keys

2012-12-16 Thread Matthew Flatt
As far as I know, these operations have not been implemented. We'd welcome additions to `file/resource', though. At Fri, 14 Dec 2012 10:42:33 -0500, Clement Erik Ferguson wrote: > I'm also interested in this, along with deleting keys. It'd be so nice to > do this kind of stuff in Racket! > > On F

Re: [racket] Passing info from reader level

2012-12-16 Thread Matthew Flatt
At Sat, 15 Dec 2012 13:12:50 -0800, Rajah Mahsohn Omega wrote: > So from what I'm gathering the only way to share data with the reader and > expander layer is to add the reader as a submodue in the main.rkt file. No, I don't think that works. It might work under some circumstances, but I think you

[racket] [PATCH] Speeding up set-argb-pixels

2012-12-16 Thread Michael Wilber
TL;DR: About ~2.8x speedup from using local variables and unsafe functions. Copying each bitmap row could bring speedup to ~20x, but it doesn't quite work and I need your help. Pull request at https://github.com/plt/racket/pull/199 Hey there! I'm writing some FFmpeg bindings for Racket. It's fast

Re: [racket] distributed places - throwing dcgm-type contract violation on *channel-get

2012-12-16 Thread Michael Wilber
This is just a shot in the dark, but do you have your SSH keys set up? If you get a password prompt when you 'ssh remote-node-name', I think it might not work. (From the looks of things, since you're spawning a node on localhost, I think you might have to get 'ssh localhost' working the same way.

Re: [racket] Passing info from reader level

2012-12-16 Thread Rajah Mahsohn Omega
Thanks Matthew for all your help, it would have been tough figuring this out on my own. you said: >I think you should imagine that a program is read and compiled on a >different machine where it is run, and so you can't directly share >state between the reader and run-time code. Ok, I'm starting

Re: [racket] distributed places - throwing dcgm-type contract violation on *channel-get

2012-12-16 Thread Matthew Eric Bassett
Thanks, but ssh is set up correctly. If not, racket typically complains that it cannot connect to the remote node, rather than throwing the contract violation. In fact, with both the remote and the localhost, I can see the new spawned racket process running. I get the error on *channel-get a

Re: [racket] distributed places - throwing dcgm-type contract violation on *channel-get

2012-12-16 Thread Kevin Tew
I use localhost to simplify the setup and tests. I think the remote node may not be able to find the "hello-world-place.rkt" module. I've added some better error reporting to git head that may help you determine if this is the case. Here is another advanced debugging technique: In a terminal

Re: [racket] Registry renaming keys

2012-12-16 Thread heraklea
Hello, I write a rename-resource function. I do not claim to any correctness. It may be very quick and dirty. I write it to my best knowledge and belief, so feel free to correct me cause I am a racket beginner. [Code_Begin] #lang racket (require ffi/com ffi/unsafe ffi/unsafe/

Re: [racket] distributed places - throwing dcgm-type contract violation on *channel-get

2012-12-16 Thread Matthew Eric Bassett
On 12/16/2012 04:57 PM, Kevin Tew wrote: I think the remote node may not be able to find the "hello-world-place.rkt" module. I've added some better error reporting to git head that may help you determine if this is the case. I think this is it! I ran the spawn command via ssh myself, like you

Re: [racket] SIGCHLD handler called in stderr

2012-12-16 Thread Sergey Khorev
In non-places mode, Racket avoids calling waitpid() if no subprocesses > have been started. We could improve the implementation for places so > that the thread created to call sigwait() similarly avoids doing > anything when the are no pending subprocesses. Would that be good > enough? > I think

[racket] off-by-1 pixel error in 2htdp/image

2012-12-16 Thread D Herring
Hi all, First off, please forgive my coding style -- that is something to clean up after the functionality is working. Also, please let me know if there's a better way to attach code or screenshots. I was writing a bit of code to generate a diagram, and bumped into an off-by-one error. Not