Re: [racket] a string-list or file-list that drops comments?

2013-04-01 Thread Laurent
Not sure I understand your question, because to me `file-list' does drop comments. You should be able to see its definition simply by typing `file-list' in a DrRacket definition window, right-clicking on it and selecting Go to definition. It's in collects/racket/file/file.rkt, around line 622.

[racket] (no subject)

2013-04-01 Thread deepak verma
for the following code : (define e (make-evaluator 'racket/base)) (let-values ([(i o) (tcp-accept (tcp-listen ))]) (parameterize ([current-input-port i] [current-output-port o] [current-error-port o] [current-eval e])

[racket] (no subject)

2013-04-01 Thread deepak verma
for the following code : (define e (make-evaluator 'racket/base)) (let-values ([(i o) (tcp-accept (tcp-listen ))]) (parameterize ([current-input-port i] [current-output-port o] [current-error-port o] [current-eval e])

Re: [racket] (no subject)

2013-04-01 Thread Danny Yoo
Side comment: you are missing the #lang line and requires, so technically the code you have above is ambiguous. Don't omit those next time. tcp-connect from another machine opens up a port, like the other port-opening functions for files. What issue are you encountering with tcp-connect? I

[racket] Parameterize current-seconds?

2013-04-01 Thread Scott Klarenbach
Hi there, Since current-seconds isn't a paramter, is there a way to parameterize it similar to the examples of overridding the current-error-port, etc? I can (make-parameter current-seconds) but naturally this doesn't affect any calls to (current-seconds) that happen in that scope. Thanks. --

Re: [racket] Racket 5.3.3 vs OpenBSD 5.3

2013-04-01 Thread Juan Francisco Cantero Hurtado
On 03/31/13 00:16, Juan Francisco Cantero Hurtado wrote: On 03/30/13 17:22, Alexander Shendi wrote: Hello I have problems compiling racket 5.3.3 under OpenBSD 5.3. The platform is i386. Configure flags are: --prefix=/usr/local --disable-docs I have 2 GB of RAM. The cairo version installed is

Re: [racket] Parameterize current-seconds?

2013-04-01 Thread Danny Yoo
Hmmm. Thinking... can you parameterize the sha1-hash constructor instead, since that's probably under your control? Racket Users list: http://lists.racket-lang.org/users

[racket] DrRacket extend-unit-frame augment on-tab-change not being called

2013-04-01 Thread Nick Main
I am writing a DrRacket plugin and want to react to tab changes. I am augmenting the on-tab-change method, as shown below, but this augmentation is not being invoked when tabs are changed. Is there anything obviously wrong with this approach ? I looked through the Racket source and noticed that

Re: [racket] Racket 5.3.3 vs OpenBSD 5.3

2013-04-01 Thread Matthew Flatt
Thanks for tracking this down! Just to make sure, does `--enable-libffi' work for you? It should be the default, actually. When I tried before, `configure' failed to use the installed libffi because `-pthread' is needed for linking, and it wasn't included in the result for `pkg-config libffi

Re: [racket] DrRacket extend-unit-frame augment on-tab-change not being called

2013-04-01 Thread Nick Main
I edited the source for the optimization coach and to comment out the define/augment on-tab-change and my augment is now working ! I will file a bug for this. On Mon, Apr 1, 2013 at 2:40 PM, Nick Main david.nick.m...@gmail.com wrote: I am writing a DrRacket plugin and want to react to tab

Re: [racket] DrRacket extend-unit-frame augment on-tab-change not being called

2013-04-01 Thread Vincent St-Amour
Which version of Racket are you using? The current (git) version of Optimization Coach[1] calls `inner' as it should. I fixed that bug some time ago. Sorry for the trouble. Vincent [1] Now a PLaneT2 package. Starting with the next Racket release, Optimization Coach will be distributed

Re: [racket] DrRacket extend-unit-frame augment on-tab-change not being called

2013-04-01 Thread Nick Main
I'm using v5.3.3 on OSX. I found that supplying #f to get/extend, as in - (drracket:get/extend:extend-unit-frame frame-mixin #f) works around the issue (which is odd since #f is the default according to the docs). Thanks for the response and fix. On Mon, Apr 1, 2013 at 3:58 PM, Vincent

Re: [racket] Parameterize current-seconds?

2013-04-01 Thread Scott Klarenbach
Let me play around, as I'm not super familiar with parameterization in racket. If I can parameterize arbitrary procedures like the sha1 constructor, then shouldn't I also be able to parameterize current-seconds? I think there's a gap in my understanding :). On Mon, Apr 1, 2013 at 2:40 PM,

Re: [racket] Parameterize current-seconds?

2013-04-01 Thread Danny Yoo
I mean, if you have a function f that's currently calling into the sha1 hash function, passing it the current time and secret key, can you adjust f so that it consults a parameterization that you own? Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Parameterize current-seconds?

2013-04-01 Thread Scott Klarenbach
Ya, could do something like that. Thanks. On Mon, Apr 1, 2013 at 4:33 PM, Danny Yoo d...@hashcollision.org wrote: I mean, if you have a function f that's currently calling into the sha1 hash function, passing it the current time and secret key, can you adjust f so that it consults a

Re: [racket] Racket 5.3.3 vs OpenBSD 5.3

2013-04-01 Thread Alexander Shendi (Web.de)
Hello Juan Francisco, Upgrading libffi to v3.0.9p2 (via ports) and using: CFLAGS=-pthread LDFLAGS=-pthreads ../configure --prefix=/usr/local --enable-ffi --disable-places --disable-futures --disable-docs did the trick for me. Thank you for your help! -- Alexander Juan Francisco Cantero

Re: [racket] DrRacket extend-unit-frame augment on-tab-change not being called

2013-04-01 Thread Robby Findler
Thanks; I've fixed the docs bug. FWIW, your code works as expected in the current git head. And I've been thinking about your earlier message (subject Developing DrRacket Extensions in the same process). I haven't had time to do anything with it yet, but I hope to at least make the situation a