Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Eli Barzilay
5 hours ago, Asumu Takikawa wrote: > On 2012-09-14 04:34:21 +0800, Yin Wang wrote: > > I'm developing a tool for "diffing" program by parse trees and not > > text. It is written in Racket and can process Lisp family > > languages, C++, JavaScript and Python. It has a JavaScript based > > interactiv

Re: [racket] Finding a GUI containee at x,y within a container

2012-09-13 Thread Kieron Hardy
In case it is useful to others, here is what I came up with, based on (and thanks for) the info from Matthew. By the way, I probably would not be able to make a mouse-event% work for what I need, but thanks for the idea Laurent. In the code below, get-containee is passed a container to search, an

Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Yin Wang
Hi folks, For a non-technical problem, I'm afraid that I have to replace the earlier Emacs Lisp example with other ones: Scheme: http://www.cs.indiana.edu/~yw21/demos/mk-mk-c.html C++: http://www.cs.indiana.edu/~yw21/demos/d8-3404-d8-8424.html Thanks to Neil Van Dyke for noticing this pro

Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Eduardo Bellani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Truly it would be a great addition to drracket. On 09/13/2012 06:06 PM, Asumu Takikawa wrote: > On 2012-09-14 04:34:21 +0800, Yin Wang wrote: >> I'm developing a tool for "diffing" program by parse trees and >> not text. It is written in Racket and c

Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Vincent St-Amour
At Thu, 13 Sep 2012 17:06:35 -0400, Asumu Takikawa wrote: > > On 2012-09-14 04:34:21 +0800, Yin Wang wrote: > > I'm developing a tool for "diffing" program by parse trees and not > > text. It is written in Racket and can process Lisp family languages, > > C++, JavaScript and Python. It has a JavaS

Re: [racket] structural program comparison tool in Racket

2012-09-13 Thread Asumu Takikawa
On 2012-09-14 04:34:21 +0800, Yin Wang wrote: > I'm developing a tool for "diffing" program by parse trees and not > text. It is written in Racket and can process Lisp family languages, > C++, JavaScript and Python. It has a JavaScript based interactive UI > for browsing the diff results. > > You c

[racket] structural program comparison tool in Racket

2012-09-13 Thread Yin Wang
Hello, I'm developing a tool for "diffing" program by parse trees and not text. It is written in Racket and can process Lisp family languages, C++, JavaScript and Python. It has a JavaScript based interactive UI for browsing the diff results. You can find a demo of it (diffing two Emacs Lisp prog

Re: [racket] How to wait for tcp-accpt-evt unless the listener is or has been closed?

2012-09-13 Thread Erich Rast
> > A simpler possibility is to use a custodian I've tried a custodian and it worked fine. But then I've figured out that a simple exception handler also works, and in this case it has the advantage that the finalize-proc called at the end of my file transfer will terminate gracefully. (def

Re: [racket] How to wait for tcp-accpt-evt unless the listener is or has been closed?

2012-09-13 Thread Matthew Flatt
My first thought was * We should add `tcp-listener-closed?'. * The documentation should clarify that a listener becomes ready (e.g., `sync' on a listener would return) when the listener is closed as well as when it is ready to accept. * You could combine a `sync' and a `tcp-listener-clo

[racket] How to wait for tcp-accpt-evt unless the listener is or has been closed?

2012-09-13 Thread Erich Rast
Hi all, I have a question about tcp-listener. I've implemented a simple filetransfer protocol whose main listener loop is this: (define (start-listen local-port save-path from-ip progress-proc final-proc [timeout 60.0] [file-table (make-hash)]) (define listener (tcp-listen

Re: [racket] Cube

2012-09-13 Thread Raoul Duke
consider ((lambda (x y) (+ x y)) 1 2) try it in http://www.wescheme.org/openEditor Racket Users list: http://lists.racket-lang.org/users

Re: [racket] Cube

2012-09-13 Thread John Clements
On Sep 13, 2012, at 10:28 AM, Ashley Fowler wrote: > > > > From: John Clements [cleme...@brinckerhoff.org] > Sent: Thursday, September 13, 2012 1:26 PM > To: Ashley Fowler > Cc: users@racket-lang.org > Subject: Re: [racket] Cube > > On Sep 13, 2012, at

Re: [racket] Cube

2012-09-13 Thread Ashley Fowler
From: John Clements [cleme...@brinckerhoff.org] Sent: Thursday, September 13, 2012 1:26 PM To: Ashley Fowler Cc: users@racket-lang.org Subject: Re: [racket] Cube On Sep 13, 2012, at 10:22 AM, Ashley Fowler wrote: > I have to write a procedure (cube-two X

Re: [racket] Cube

2012-09-13 Thread John Clements
On Sep 13, 2012, at 10:22 AM, Ashley Fowler wrote: > I have to write a procedure (cube-two X Y) that takes two numeric arguments > and returns a list of their cubes. > > So far I have... > > (define cube(lambda(x)(* x x x)))...which takes ONE numeric > arguments...example below... > > (cu

[racket] Cube

2012-09-13 Thread Ashley Fowler
I have to write a procedure (cube-two X Y) that takes two numeric arguments and returns a list of their cubes. So far I have... (define cube(lambda(x)(* x x x)))...which takes ONE numeric arguments...example below... (cube 3) ==> ( 27) How could I make it to take two numeric arguments?

Re: [racket] Using *.ico files

2012-09-13 Thread Matthew Flatt
At Mon, 10 Sep 2012 13:00:55 -0700, Danny Yoo wrote: > Hmm. Something VERY strange is happening with the alphas being > produced by ico->argb vs the alphas expected by the bitmap functions. > They seem... flipped! The problem seems to be in `argb->bitmap' from `mrlib/cache-image-snip'. That funct